Documentation ¶
Overview ¶
Package redis implements the Azure ARM Redis service API version 2016-04-01.
REST API for Azure Redis Cache Service
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type AccessKeys
- type Client
- func (client Client) Create(resourceGroupName string, name string, parameters CreateParameters, ...) (result autorest.Response, err error)
- func (client Client) CreatePreparer(resourceGroupName string, name string, parameters CreateParameters, ...) (*http.Request, error)
- func (client Client) CreateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) CreateSender(req *http.Request) (*http.Response, error)
- func (client Client) Delete(resourceGroupName string, name string, cancel <-chan struct{}) (result autorest.Response, err error)
- func (client Client) DeletePreparer(resourceGroupName string, name string, cancel <-chan struct{}) (*http.Request, error)
- func (client Client) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) DeleteSender(req *http.Request) (*http.Response, error)
- func (client Client) ExportData(resourceGroupName string, name string, parameters ExportRDBParameters, ...) (result autorest.Response, err error)
- func (client Client) ExportDataPreparer(resourceGroupName string, name string, parameters ExportRDBParameters, ...) (*http.Request, error)
- func (client Client) ExportDataResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) ExportDataSender(req *http.Request) (*http.Response, error)
- func (client Client) ForceReboot(resourceGroupName string, name string, parameters RebootParameters) (result autorest.Response, err error)
- func (client Client) ForceRebootPreparer(resourceGroupName string, name string, parameters RebootParameters) (*http.Request, error)
- func (client Client) ForceRebootResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) ForceRebootSender(req *http.Request) (*http.Response, error)
- func (client Client) Get(resourceGroupName string, name string) (result ResourceType, err error)
- func (client Client) GetPreparer(resourceGroupName string, name string) (*http.Request, error)
- func (client Client) GetResponder(resp *http.Response) (result ResourceType, err error)
- func (client Client) GetSender(req *http.Request) (*http.Response, error)
- func (client Client) ImportData(resourceGroupName string, name string, parameters ImportRDBParameters, ...) (result autorest.Response, err error)
- func (client Client) ImportDataPreparer(resourceGroupName string, name string, parameters ImportRDBParameters, ...) (*http.Request, error)
- func (client Client) ImportDataResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) ImportDataSender(req *http.Request) (*http.Response, error)
- func (client Client) List() (result ListResult, err error)
- func (client Client) ListByResourceGroup(resourceGroupName string) (result ListResult, err error)
- func (client Client) ListByResourceGroupNextResults(lastResults ListResult) (result ListResult, err error)
- func (client Client) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
- func (client Client) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error)
- func (client Client) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client Client) ListKeys(resourceGroupName string, name string) (result AccessKeys, err error)
- func (client Client) ListKeysPreparer(resourceGroupName string, name string) (*http.Request, error)
- func (client Client) ListKeysResponder(resp *http.Response) (result AccessKeys, err error)
- func (client Client) ListKeysSender(req *http.Request) (*http.Response, error)
- func (client Client) ListNextResults(lastResults ListResult) (result ListResult, err error)
- func (client Client) ListPreparer() (*http.Request, error)
- func (client Client) ListResponder(resp *http.Response) (result ListResult, err error)
- func (client Client) ListSender(req *http.Request) (*http.Response, error)
- func (client Client) RegenerateKey(resourceGroupName string, name string, parameters RegenerateKeyParameters) (result AccessKeys, err error)
- func (client Client) RegenerateKeyPreparer(resourceGroupName string, name string, parameters RegenerateKeyParameters) (*http.Request, error)
- func (client Client) RegenerateKeyResponder(resp *http.Response) (result AccessKeys, err error)
- func (client Client) RegenerateKeySender(req *http.Request) (*http.Response, error)
- func (client Client) Update(resourceGroupName string, name string, parameters UpdateParameters, ...) (result autorest.Response, err error)
- func (client Client) UpdatePreparer(resourceGroupName string, name string, parameters UpdateParameters, ...) (*http.Request, error)
- func (client Client) UpdateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) UpdateSender(req *http.Request) (*http.Response, error)
- type CreateParameters
- type CreateProperties
- type DayOfWeek
- type ExportRDBParameters
- type ImportRDBParameters
- type KeyType
- type ListResult
- type ManagementClient
- type PatchSchedule
- type PatchSchedulesClient
- func (client PatchSchedulesClient) CreateOrUpdate(resourceGroupName string, name string, parameters PatchSchedule) (result PatchSchedule, err error)
- func (client PatchSchedulesClient) CreateOrUpdatePreparer(resourceGroupName string, name string, parameters PatchSchedule) (*http.Request, error)
- func (client PatchSchedulesClient) CreateOrUpdateResponder(resp *http.Response) (result PatchSchedule, err error)
- func (client PatchSchedulesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client PatchSchedulesClient) Delete(resourceGroupName string, name string) (result autorest.Response, err error)
- func (client PatchSchedulesClient) DeletePreparer(resourceGroupName string, name string) (*http.Request, error)
- func (client PatchSchedulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client PatchSchedulesClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client PatchSchedulesClient) Get(resourceGroupName string, name string) (result PatchSchedule, err error)
- func (client PatchSchedulesClient) GetPreparer(resourceGroupName string, name string) (*http.Request, error)
- func (client PatchSchedulesClient) GetResponder(resp *http.Response) (result PatchSchedule, err error)
- func (client PatchSchedulesClient) GetSender(req *http.Request) (*http.Response, error)
- type Properties
- type RebootParameters
- type RebootType
- type RegenerateKeyParameters
- type Resource
- type ResourceProperties
- type ResourceType
- type ScheduleEntries
- type ScheduleEntry
- type Sku
- type SkuFamily
- type SkuName
- type UpdateParameters
- type UpdateProperties
Constants ¶
const ( // APIVersion is the version of the Redis APIVersion = "2016-04-01" // 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 { autorest.Response `json:"-"` PrimaryKey *string `json:"primaryKey,omitempty"` SecondaryKey *string `json:"secondaryKey,omitempty"` }
AccessKeys is redis cache access keys.
type Client ¶
type Client struct {
ManagementClient
}
Client is the rEST API for Azure Redis Cache Service
func NewClientWithBaseURI ¶
NewClientWithBaseURI creates an instance of the Client client.
func (Client) Create ¶
func (client Client) Create(resourceGroupName string, name string, parameters CreateParameters, cancel <-chan struct{}) (result autorest.Response, err error)
Create create or replace (overwrite/recreate, with potential downtime) an existing redis cache This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
resourceGroupName is the name of the resource group. name is the name of the redis cache. parameters is parameters supplied to the Create redis operation.
func (Client) CreatePreparer ¶
func (client Client) CreatePreparer(resourceGroupName string, name string, parameters CreateParameters, cancel <-chan struct{}) (*http.Request, error)
CreatePreparer prepares the Create request.
func (Client) CreateResponder ¶
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (Client) CreateSender ¶
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (Client) Delete ¶
func (client Client) Delete(resourceGroupName string, name string, cancel <-chan struct{}) (result autorest.Response, err error)
Delete deletes a redis cache. This operation takes a while to complete. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
resourceGroupName is the name of the resource group. name is the name of the redis cache.
func (Client) DeletePreparer ¶
func (client Client) DeletePreparer(resourceGroupName string, name string, cancel <-chan struct{}) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (Client) DeleteResponder ¶
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (Client) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (Client) ExportData ¶
func (client Client) ExportData(resourceGroupName string, name string, parameters ExportRDBParameters, cancel <-chan struct{}) (result autorest.Response, err error)
ExportData import data into redis cache. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
resourceGroupName is the name of the resource group. name is the name of the redis cache. parameters is parameters for redis export operation.
func (Client) ExportDataPreparer ¶
func (client Client) ExportDataPreparer(resourceGroupName string, name string, parameters ExportRDBParameters, cancel <-chan struct{}) (*http.Request, error)
ExportDataPreparer prepares the ExportData request.
func (Client) ExportDataResponder ¶
ExportDataResponder handles the response to the ExportData request. The method always closes the http.Response Body.
func (Client) ExportDataSender ¶
ExportDataSender sends the ExportData request. The method will close the http.Response Body if it receives an error.
func (Client) ForceReboot ¶
func (client Client) 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 (Client) ForceRebootPreparer ¶
func (client Client) ForceRebootPreparer(resourceGroupName string, name string, parameters RebootParameters) (*http.Request, error)
ForceRebootPreparer prepares the ForceReboot request.
func (Client) ForceRebootResponder ¶
func (client Client) 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 (Client) ForceRebootSender ¶
ForceRebootSender sends the ForceReboot request. The method will close the http.Response Body if it receives an error.
func (Client) Get ¶
func (client Client) 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 (Client) GetPreparer ¶
GetPreparer prepares the Get request.
func (Client) GetResponder ¶
func (client Client) 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 (Client) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (Client) ImportData ¶
func (client Client) ImportData(resourceGroupName string, name string, parameters ImportRDBParameters, cancel <-chan struct{}) (result autorest.Response, err error)
ImportData import data into redis cache. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
resourceGroupName is the name of the resource group. name is the name of the redis cache. parameters is parameters for redis import operation.
func (Client) ImportDataPreparer ¶
func (client Client) ImportDataPreparer(resourceGroupName string, name string, parameters ImportRDBParameters, cancel <-chan struct{}) (*http.Request, error)
ImportDataPreparer prepares the ImportData request.
func (Client) ImportDataResponder ¶
ImportDataResponder handles the response to the ImportData request. The method always closes the http.Response Body.
func (Client) ImportDataSender ¶
ImportDataSender sends the ImportData request. The method will close the http.Response Body if it receives an error.
func (Client) List ¶
func (client Client) List() (result ListResult, err error)
List gets all redis caches in the specified subscription.
func (Client) ListByResourceGroup ¶
func (client Client) 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 (Client) ListByResourceGroupNextResults ¶
func (client Client) ListByResourceGroupNextResults(lastResults ListResult) (result ListResult, err error)
ListByResourceGroupNextResults retrieves the next set of results, if any.
func (Client) ListByResourceGroupPreparer ¶
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (Client) ListByResourceGroupResponder ¶
func (client Client) 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 (Client) ListByResourceGroupSender ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (Client) ListKeys ¶
func (client Client) ListKeys(resourceGroupName string, name string) (result AccessKeys, 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 (Client) ListKeysPreparer ¶
ListKeysPreparer prepares the ListKeys request.
func (Client) ListKeysResponder ¶
func (client Client) ListKeysResponder(resp *http.Response) (result AccessKeys, err error)
ListKeysResponder handles the response to the ListKeys request. The method always closes the http.Response Body.
func (Client) ListKeysSender ¶
ListKeysSender sends the ListKeys request. The method will close the http.Response Body if it receives an error.
func (Client) ListNextResults ¶
func (client Client) ListNextResults(lastResults ListResult) (result ListResult, err error)
ListNextResults retrieves the next set of results, if any.
func (Client) ListPreparer ¶
ListPreparer prepares the List request.
func (Client) ListResponder ¶
func (client Client) 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 (Client) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (Client) RegenerateKey ¶
func (client Client) RegenerateKey(resourceGroupName string, name string, parameters RegenerateKeyParameters) (result AccessKeys, err error)
RegenerateKey regenerate 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. parameters is specifies which key to reset.
func (Client) RegenerateKeyPreparer ¶
func (client Client) RegenerateKeyPreparer(resourceGroupName string, name string, parameters RegenerateKeyParameters) (*http.Request, error)
RegenerateKeyPreparer prepares the RegenerateKey request.
func (Client) RegenerateKeyResponder ¶
func (client Client) RegenerateKeyResponder(resp *http.Response) (result AccessKeys, err error)
RegenerateKeyResponder handles the response to the RegenerateKey request. The method always closes the http.Response Body.
func (Client) RegenerateKeySender ¶
RegenerateKeySender sends the RegenerateKey request. The method will close the http.Response Body if it receives an error.
func (Client) Update ¶
func (client Client) Update(resourceGroupName string, name string, parameters UpdateParameters, cancel <-chan struct{}) (result autorest.Response, err error)
Update update an existing Redis cache This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
resourceGroupName is the name of the resource group. name is the name of the redis cache. parameters is parameters supplied to the Update redis operation.
func (Client) UpdatePreparer ¶
func (client Client) UpdatePreparer(resourceGroupName string, name string, parameters UpdateParameters, cancel <-chan struct{}) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (Client) UpdateResponder ¶
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
type CreateParameters ¶
type CreateParameters 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 *CreateProperties `json:"properties,omitempty"` }
CreateParameters is parameters supplied to the Create Redis operation.
type CreateProperties ¶
type CreateProperties struct { RedisConfiguration *map[string]*string `json:"redisConfiguration,omitempty"` EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"` TenantSettings *map[string]*string `json:"tenantSettings,omitempty"` ShardCount *int32 `json:"shardCount,omitempty"` SubnetID *string `json:"subnetId,omitempty"` StaticIP *string `json:"staticIP,omitempty"` Sku *Sku `json:"sku,omitempty"` }
CreateProperties is properties supplied to Create redis operation.
type DayOfWeek ¶
type DayOfWeek string
DayOfWeek enumerates the values for day of week.
const ( // Friday specifies the friday state for day of week. Friday DayOfWeek = "Friday" // Monday specifies the monday state for day of week. Monday DayOfWeek = "Monday" // Saturday specifies the saturday state for day of week. Saturday DayOfWeek = "Saturday" // Sunday specifies the sunday state for day of week. Sunday DayOfWeek = "Sunday" // Thursday specifies the thursday state for day of week. Thursday DayOfWeek = "Thursday" // Tuesday specifies the tuesday state for day of week. Tuesday DayOfWeek = "Tuesday" // Wednesday specifies the wednesday state for day of week. Wednesday DayOfWeek = "Wednesday" )
type ExportRDBParameters ¶
type ExportRDBParameters struct { Format *string `json:"format,omitempty"` Prefix *string `json:"prefix,omitempty"` Container *string `json:"container,omitempty"` }
ExportRDBParameters is parameters for redis export operation.
type ImportRDBParameters ¶
type ImportRDBParameters struct { Format *string `json:"format,omitempty"` Files *[]string `json:"files,omitempty"` }
ImportRDBParameters is parameters for redis import 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 ¶
type ManagementClient struct { autorest.Client BaseURI string APIVersion string SubscriptionID string }
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 PatchSchedule ¶
type PatchSchedule struct { autorest.Response `json:"-"` ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` Location *string `json:"location,omitempty"` Properties *ScheduleEntries `json:"properties,omitempty"` }
PatchSchedule is response to put/get patch schedules for redis cache.
type PatchSchedulesClient ¶
type PatchSchedulesClient struct {
ManagementClient
}
PatchSchedulesClient is the rEST API for Azure Redis Cache Service
func NewPatchSchedulesClient ¶
func NewPatchSchedulesClient(subscriptionID string) PatchSchedulesClient
NewPatchSchedulesClient creates an instance of the PatchSchedulesClient client.
func NewPatchSchedulesClientWithBaseURI ¶
func NewPatchSchedulesClientWithBaseURI(baseURI string, subscriptionID string) PatchSchedulesClient
NewPatchSchedulesClientWithBaseURI creates an instance of the PatchSchedulesClient client.
func (PatchSchedulesClient) CreateOrUpdate ¶
func (client PatchSchedulesClient) CreateOrUpdate(resourceGroupName string, name string, parameters PatchSchedule) (result PatchSchedule, err error)
CreateOrUpdate create or replace the patching schedule for redis cache.
resourceGroupName is the name of the resource group. name is the name of the redis cache. parameters is parameters to set patch schedules for redis cache.
func (PatchSchedulesClient) CreateOrUpdatePreparer ¶
func (client PatchSchedulesClient) CreateOrUpdatePreparer(resourceGroupName string, name string, parameters PatchSchedule) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (PatchSchedulesClient) CreateOrUpdateResponder ¶
func (client PatchSchedulesClient) CreateOrUpdateResponder(resp *http.Response) (result PatchSchedule, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (PatchSchedulesClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (PatchSchedulesClient) Delete ¶
func (client PatchSchedulesClient) Delete(resourceGroupName string, name string) (result autorest.Response, err error)
Delete deletes the patching schedule for redis cache.
resourceGroupName is the name of the resource group. name is the name of the redis cache.
func (PatchSchedulesClient) DeletePreparer ¶
func (client PatchSchedulesClient) DeletePreparer(resourceGroupName string, name string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (PatchSchedulesClient) DeleteResponder ¶
func (client PatchSchedulesClient) 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 (PatchSchedulesClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (PatchSchedulesClient) Get ¶
func (client PatchSchedulesClient) Get(resourceGroupName string, name string) (result PatchSchedule, err error)
Get gets the patching schedule for redis cache.
resourceGroupName is the name of the resource group. name is the name of the redis cache.
func (PatchSchedulesClient) GetPreparer ¶
func (client PatchSchedulesClient) GetPreparer(resourceGroupName string, name string) (*http.Request, error)
GetPreparer prepares the Get request.
func (PatchSchedulesClient) GetResponder ¶
func (client PatchSchedulesClient) GetResponder(resp *http.Response) (result PatchSchedule, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
type Properties ¶
type Properties struct { RedisConfiguration *map[string]*string `json:"redisConfiguration,omitempty"` EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"` TenantSettings *map[string]*string `json:"tenantSettings,omitempty"` ShardCount *int32 `json:"shardCount,omitempty"` SubnetID *string `json:"subnetId,omitempty"` StaticIP *string `json:"staticIP,omitempty"` }
Properties is properties supplied to Create Or Update 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 the Resource definition.
type ResourceProperties ¶
type ResourceProperties struct { RedisVersion *string `json:"redisVersion,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` HostName *string `json:"hostName,omitempty"` Port *int32 `json:"port,omitempty"` SslPort *int32 `json:"sslPort,omitempty"` Properties *CreateProperties `json:"properties,omitempty"` }
ResourceProperties is parameters describing a redis instance
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"` Properties *ResourceProperties `json:"properties,omitempty"` }
ResourceType is a single redis item in List or Get Operation.
type ScheduleEntries ¶
type ScheduleEntries struct {
ScheduleEntriesProperty *[]ScheduleEntry `json:"scheduleEntries,omitempty"`
}
ScheduleEntries is list of patch schedules for redis cache.
type ScheduleEntry ¶
type ScheduleEntry struct { DayOfWeek DayOfWeek `json:"dayOfWeek,omitempty"` StartHourUtc *int32 `json:"startHourUtc,omitempty"` MaintenanceWindow *string `json:"maintenanceWindow,omitempty"` }
ScheduleEntry is patch schedule entry for Premium Redis Cache.
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.
type UpdateParameters ¶
type UpdateParameters struct {
Properties *UpdateProperties `json:"properties,omitempty"`
}
UpdateParameters is parameters supplied to the Update Redis operation.
type UpdateProperties ¶
type UpdateProperties struct { RedisConfiguration *map[string]*string `json:"redisConfiguration,omitempty"` EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"` TenantSettings *map[string]*string `json:"tenantSettings,omitempty"` ShardCount *int32 `json:"shardCount,omitempty"` SubnetID *string `json:"subnetId,omitempty"` StaticIP *string `json:"staticIP,omitempty"` Sku *Sku `json:"sku,omitempty"` Tags *map[string]*string `json:"tags,omitempty"` }
UpdateProperties is properties supplied to Update redis operation.