Documentation ¶
Overview ¶
Package redis implements the Azure ARM Redis service API version 2015-08-01.
REST API for Azure Redis Cache Service.
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type AccessKeys
- type CreateOrUpdateParameters
- type GroupClient
- func (client GroupClient) CreateOrUpdate(resourceGroupName string, name string, parameters CreateOrUpdateParameters) (result ResourceWithAccessKey, err error)
- func (client GroupClient) CreateOrUpdatePreparer(resourceGroupName string, name string, parameters CreateOrUpdateParameters) (*http.Request, error)
- func (client GroupClient) CreateOrUpdateResponder(resp *http.Response) (result ResourceWithAccessKey, err error)
- func (client GroupClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client GroupClient) Delete(resourceGroupName string, name string) (result autorest.Response, err error)
- func (client GroupClient) DeletePreparer(resourceGroupName string, name string) (*http.Request, error)
- func (client GroupClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client GroupClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client GroupClient) ForceReboot(resourceGroupName string, name string, parameters RebootParameters) (result autorest.Response, err error)
- func (client GroupClient) ForceRebootPreparer(resourceGroupName string, name string, parameters RebootParameters) (*http.Request, error)
- func (client GroupClient) ForceRebootResponder(resp *http.Response) (result autorest.Response, err error)
- func (client GroupClient) ForceRebootSender(req *http.Request) (*http.Response, error)
- func (client GroupClient) Get(resourceGroupName string, name string) (result ResourceType, err error)
- func (client GroupClient) GetPreparer(resourceGroupName string, name string) (*http.Request, error)
- func (client GroupClient) GetResponder(resp *http.Response) (result ResourceType, err error)
- func (client GroupClient) GetSender(req *http.Request) (*http.Response, error)
- func (client GroupClient) List() (result ListResult, err error)
- func (client GroupClient) ListByResourceGroup(resourceGroupName string) (result ListResult, err error)
- func (client GroupClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan ResourceType, <-chan error)
- func (client GroupClient) ListByResourceGroupNextResults(lastResults ListResult) (result ListResult, err error)
- func (client GroupClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
- func (client GroupClient) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error)
- func (client GroupClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client GroupClient) ListComplete(cancel <-chan struct{}) (<-chan ResourceType, <-chan error)
- func (client GroupClient) ListKeys(resourceGroupName string, name string) (result ListKeysResult, err error)
- func (client GroupClient) ListKeysPreparer(resourceGroupName string, name string) (*http.Request, error)
- func (client GroupClient) ListKeysResponder(resp *http.Response) (result ListKeysResult, err error)
- func (client GroupClient) ListKeysSender(req *http.Request) (*http.Response, error)
- func (client GroupClient) ListNextResults(lastResults ListResult) (result ListResult, err error)
- func (client GroupClient) ListPreparer() (*http.Request, error)
- func (client GroupClient) ListResponder(resp *http.Response) (result ListResult, err error)
- func (client GroupClient) ListSender(req *http.Request) (*http.Response, error)
- func (client GroupClient) RegenerateKey(resourceGroupName string, name string, parameters RegenerateKeyParameters) (result ListKeysResult, err error)
- func (client GroupClient) RegenerateKeyPreparer(resourceGroupName string, name string, parameters RegenerateKeyParameters) (*http.Request, error)
- func (client GroupClient) RegenerateKeyResponder(resp *http.Response) (result ListKeysResult, err error)
- func (client GroupClient) RegenerateKeySender(req *http.Request) (*http.Response, error)
- type KeyType
- type ListKeysResult
- type ListResult
- type ManagementClient
- type Properties
- type ReadableProperties
- type ReadablePropertiesWithAccessKey
- type RebootParameters
- type RebootType
- type RegenerateKeyParameters
- type Resource
- type ResourceType
- type ResourceWithAccessKey
- type Sku
- type SkuFamily
- type SkuName
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Redis
DefaultBaseURI = "https://management.azure.com"
)
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type AccessKeys ¶
type AccessKeys struct { PrimaryKey *string `json:"primaryKey,omitempty"` SecondaryKey *string `json:"secondaryKey,omitempty"` }
AccessKeys is redis cache access keys.
type CreateOrUpdateParameters ¶
type CreateOrUpdateParameters struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` Location *string `json:"location,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` *Properties `json:"properties,omitempty"` }
CreateOrUpdateParameters is parameters supplied to the CreateOrUpdate Redis operation.
type GroupClient ¶
type GroupClient struct {
ManagementClient
}
GroupClient is the REST API for Azure Redis Cache Service.
func NewGroupClient ¶
func NewGroupClient(subscriptionID string) GroupClient
NewGroupClient creates an instance of the GroupClient client.
func NewGroupClientWithBaseURI ¶
func NewGroupClientWithBaseURI(baseURI string, subscriptionID string) GroupClient
NewGroupClientWithBaseURI creates an instance of the GroupClient client.
func (GroupClient) CreateOrUpdate ¶
func (client GroupClient) CreateOrUpdate(resourceGroupName string, name string, parameters CreateOrUpdateParameters) (result ResourceWithAccessKey, err error)
CreateOrUpdate create a Redis cache, or replace (overwrite/recreate, with potential downtime) an existing cache.
resourceGroupName is the name of the resource group. name is the name of the Redis cache. parameters is parameters supplied to the CreateOrUpdate Redis operation.
func (GroupClient) CreateOrUpdatePreparer ¶
func (client GroupClient) CreateOrUpdatePreparer(resourceGroupName string, name string, parameters CreateOrUpdateParameters) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (GroupClient) CreateOrUpdateResponder ¶
func (client GroupClient) CreateOrUpdateResponder(resp *http.Response) (result ResourceWithAccessKey, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (GroupClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (GroupClient) Delete ¶
func (client GroupClient) Delete(resourceGroupName string, name string) (result autorest.Response, err error)
Delete deletes a Redis cache.
resourceGroupName is the name of the resource group. name is the name of the Redis cache.
func (GroupClient) DeletePreparer ¶
func (client GroupClient) DeletePreparer(resourceGroupName string, name string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (GroupClient) DeleteResponder ¶
func (client GroupClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (GroupClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (GroupClient) ForceReboot ¶
func (client GroupClient) ForceReboot(resourceGroupName string, name string, parameters RebootParameters) (result autorest.Response, err error)
ForceReboot reboot specified Redis node(s). This operation requires write permission to the cache resource. There can be potential data loss.
resourceGroupName is the name of the resource group. name is the name of the Redis cache. parameters is specifies which Redis node(s) to reboot.
func (GroupClient) ForceRebootPreparer ¶
func (client GroupClient) ForceRebootPreparer(resourceGroupName string, name string, parameters RebootParameters) (*http.Request, error)
ForceRebootPreparer prepares the ForceReboot request.
func (GroupClient) ForceRebootResponder ¶
func (client GroupClient) ForceRebootResponder(resp *http.Response) (result autorest.Response, err error)
ForceRebootResponder handles the response to the ForceReboot request. The method always closes the http.Response Body.
func (GroupClient) ForceRebootSender ¶
ForceRebootSender sends the ForceReboot request. The method will close the http.Response Body if it receives an error.
func (GroupClient) Get ¶
func (client GroupClient) Get(resourceGroupName string, name string) (result ResourceType, err error)
Get gets a Redis cache (resource description).
resourceGroupName is the name of the resource group. name is the name of the Redis cache.
func (GroupClient) GetPreparer ¶
GetPreparer prepares the Get request.
func (GroupClient) GetResponder ¶
func (client GroupClient) GetResponder(resp *http.Response) (result ResourceType, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (GroupClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (GroupClient) List ¶
func (client GroupClient) List() (result ListResult, err error)
List gets all Redis caches in the specified subscription.
func (GroupClient) ListByResourceGroup ¶
func (client GroupClient) ListByResourceGroup(resourceGroupName string) (result ListResult, err error)
ListByResourceGroup gets all Redis caches in a resource group.
resourceGroupName is the name of the resource group.
func (GroupClient) ListByResourceGroupComplete ¶
func (client GroupClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan ResourceType, <-chan error)
ListByResourceGroupComplete gets all elements from the list without paging.
func (GroupClient) ListByResourceGroupNextResults ¶
func (client GroupClient) ListByResourceGroupNextResults(lastResults ListResult) (result ListResult, err error)
ListByResourceGroupNextResults retrieves the next set of results, if any.
func (GroupClient) ListByResourceGroupPreparer ¶
func (client GroupClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (GroupClient) ListByResourceGroupResponder ¶
func (client GroupClient) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (GroupClient) ListByResourceGroupSender ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (GroupClient) ListComplete ¶
func (client GroupClient) ListComplete(cancel <-chan struct{}) (<-chan ResourceType, <-chan error)
ListComplete gets all elements from the list without paging.
func (GroupClient) ListKeys ¶
func (client GroupClient) ListKeys(resourceGroupName string, name string) (result ListKeysResult, err error)
ListKeys retrieve a Redis cache's access keys. This operation requires write permission to the cache resource.
resourceGroupName is the name of the resource group. name is the name of the Redis cache.
func (GroupClient) ListKeysPreparer ¶
func (client GroupClient) ListKeysPreparer(resourceGroupName string, name string) (*http.Request, error)
ListKeysPreparer prepares the ListKeys request.
func (GroupClient) ListKeysResponder ¶
func (client GroupClient) ListKeysResponder(resp *http.Response) (result ListKeysResult, err error)
ListKeysResponder handles the response to the ListKeys request. The method always closes the http.Response Body.
func (GroupClient) ListKeysSender ¶
ListKeysSender sends the ListKeys request. The method will close the http.Response Body if it receives an error.
func (GroupClient) ListNextResults ¶
func (client GroupClient) ListNextResults(lastResults ListResult) (result ListResult, err error)
ListNextResults retrieves the next set of results, if any.
func (GroupClient) ListPreparer ¶
func (client GroupClient) ListPreparer() (*http.Request, error)
ListPreparer prepares the List request.
func (GroupClient) ListResponder ¶
func (client GroupClient) ListResponder(resp *http.Response) (result ListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (GroupClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (GroupClient) RegenerateKey ¶
func (client GroupClient) RegenerateKey(resourceGroupName string, name string, parameters RegenerateKeyParameters) (result ListKeysResult, err error)
RegenerateKey regenerate the access keys for a Redis cache. This operation requires write permission to the cache resource.
resourceGroupName is the name of the resource group. name is the name of the Redis cache. parameters is specifies which key to reset.
func (GroupClient) RegenerateKeyPreparer ¶
func (client GroupClient) RegenerateKeyPreparer(resourceGroupName string, name string, parameters RegenerateKeyParameters) (*http.Request, error)
RegenerateKeyPreparer prepares the RegenerateKey request.
func (GroupClient) RegenerateKeyResponder ¶
func (client GroupClient) RegenerateKeyResponder(resp *http.Response) (result ListKeysResult, err error)
RegenerateKeyResponder handles the response to the RegenerateKey request. The method always closes the http.Response Body.
func (GroupClient) RegenerateKeySender ¶
RegenerateKeySender sends the RegenerateKey request. The method will close the http.Response Body if it receives an error.
type ListKeysResult ¶
type ListKeysResult struct { autorest.Response `json:"-"` PrimaryKey *string `json:"primaryKey,omitempty"` SecondaryKey *string `json:"secondaryKey,omitempty"` }
ListKeysResult is the response of Redis list keys operation.
type ListResult ¶
type ListResult struct { autorest.Response `json:"-"` Value *[]ResourceType `json:"value,omitempty"` NextLink *string `json:"nextLink,omitempty"` }
ListResult is the response of list Redis operation.
func (ListResult) ListResultPreparer ¶
func (client ListResult) ListResultPreparer() (*http.Request, error)
ListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.
type ManagementClient ¶
ManagementClient is the base client for Redis.
func New ¶
func New(subscriptionID string) ManagementClient
New creates an instance of the ManagementClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient
NewWithBaseURI creates an instance of the ManagementClient client.
type Properties ¶
type Properties struct { RedisVersion *string `json:"redisVersion,omitempty"` Sku *Sku `json:"sku,omitempty"` RedisConfiguration *map[string]*string `json:"redisConfiguration,omitempty"` EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"` TenantSettings *map[string]*string `json:"tenantSettings,omitempty"` ShardCount *int32 `json:"shardCount,omitempty"` VirtualNetwork *string `json:"virtualNetwork,omitempty"` Subnet *string `json:"subnet,omitempty"` StaticIP *string `json:"staticIP,omitempty"` }
Properties is parameters supplied to CreateOrUpdate Redis operation.
type ReadableProperties ¶
type ReadableProperties struct { RedisVersion *string `json:"redisVersion,omitempty"` Sku *Sku `json:"sku,omitempty"` RedisConfiguration *map[string]*string `json:"redisConfiguration,omitempty"` EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"` TenantSettings *map[string]*string `json:"tenantSettings,omitempty"` ShardCount *int32 `json:"shardCount,omitempty"` VirtualNetwork *string `json:"virtualNetwork,omitempty"` Subnet *string `json:"subnet,omitempty"` StaticIP *string `json:"staticIP,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` HostName *string `json:"hostName,omitempty"` Port *int32 `json:"port,omitempty"` SslPort *int32 `json:"sslPort,omitempty"` }
ReadableProperties is parameters describing a Redis instance
type ReadablePropertiesWithAccessKey ¶
type ReadablePropertiesWithAccessKey struct { RedisVersion *string `json:"redisVersion,omitempty"` Sku *Sku `json:"sku,omitempty"` RedisConfiguration *map[string]*string `json:"redisConfiguration,omitempty"` EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"` TenantSettings *map[string]*string `json:"tenantSettings,omitempty"` ShardCount *int32 `json:"shardCount,omitempty"` VirtualNetwork *string `json:"virtualNetwork,omitempty"` Subnet *string `json:"subnet,omitempty"` StaticIP *string `json:"staticIP,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` HostName *string `json:"hostName,omitempty"` Port *int32 `json:"port,omitempty"` SslPort *int32 `json:"sslPort,omitempty"` AccessKeys *AccessKeys `json:"accessKeys,omitempty"` }
ReadablePropertiesWithAccessKey is properties generated only in response to CreateOrUpdate Redis operation.
type RebootParameters ¶
type RebootParameters struct { RebootType RebootType `json:"rebootType,omitempty"` ShardID *int32 `json:"shardId,omitempty"` }
RebootParameters is specifies which Redis node(s) to reboot.
type RebootType ¶
type RebootType string
RebootType enumerates the values for reboot type.
const ( // AllNodes specifies the all nodes state for reboot type. AllNodes RebootType = "AllNodes" // PrimaryNode specifies the primary node state for reboot type. PrimaryNode RebootType = "PrimaryNode" // SecondaryNode specifies the secondary node state for reboot type. SecondaryNode RebootType = "SecondaryNode" )
type RegenerateKeyParameters ¶
type RegenerateKeyParameters struct {
KeyType KeyType `json:"keyType,omitempty"`
}
RegenerateKeyParameters is specifies which Redis access keys to reset.
type Resource ¶
type Resource struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` Location *string `json:"location,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` }
Resource is
type ResourceType ¶
type ResourceType struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` Location *string `json:"location,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` *ReadableProperties `json:"properties,omitempty"` }
ResourceType is a single Redis item in List or Get Operation.
type ResourceWithAccessKey ¶
type ResourceWithAccessKey struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` Location *string `json:"location,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` *ReadablePropertiesWithAccessKey `json:"properties,omitempty"` }
ResourceWithAccessKey is a Redis item in CreateOrUpdate Operation response.
type Sku ¶
type Sku struct { Name SkuName `json:"name,omitempty"` Family SkuFamily `json:"family,omitempty"` Capacity *int32 `json:"capacity,omitempty"` }
Sku is SKU parameters supplied to the create Redis operation.