azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2016-04-01/redis Index | Files | Directories

package redis

import "github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2016-04-01/redis"

Package redis implements the Azure ARM Redis service API version 2016-04-01.

REST API for Azure Redis Cache Service.

Index

Package Files

client.go firewallrule.go firewallrules.go models.go operations.go patchschedules.go redis.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Redis
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type AccessKeys Uses

type AccessKeys struct {
    autorest.Response `json:"-"`
    // PrimaryKey - READ-ONLY; The current primary key that clients can use to authenticate with Redis cache.
    PrimaryKey *string `json:"primaryKey,omitempty"`
    // SecondaryKey - READ-ONLY; The current secondary key that clients can use to authenticate with Redis cache.
    SecondaryKey *string `json:"secondaryKey,omitempty"`
}

AccessKeys redis cache access keys.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI        string
    SubscriptionID string
}

BaseClient is the base client for Redis.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type Client Uses

type Client struct {
    BaseClient
}

Client is the REST API for Azure Redis Cache Service.

func NewClient Uses

func NewClient(subscriptionID string) Client

NewClient creates an instance of the Client client.

func NewClientWithBaseURI Uses

func NewClientWithBaseURI(baseURI string, subscriptionID string) Client

NewClientWithBaseURI creates an instance of the Client client.

func (Client) Create Uses

func (client Client) Create(ctx context.Context, resourceGroupName string, name string, parameters CreateParameters) (result CreateFuture, err error)

Create create or replace (overwrite/recreate, with potential downtime) an existing Redis cache. Parameters: resourceGroupName - the name of the resource group. name - the name of the Redis cache. parameters - parameters supplied to the Create Redis operation.

func (Client) CreatePreparer Uses

func (client Client) CreatePreparer(ctx context.Context, resourceGroupName string, name string, parameters CreateParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (Client) CreateResponder Uses

func (client Client) CreateResponder(resp *http.Response) (result ResourceType, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (Client) CreateSender Uses

func (client Client) CreateSender(req *http.Request) (future CreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (Client) Delete Uses

func (client Client) Delete(ctx context.Context, resourceGroupName string, name string) (result DeleteFuture, err error)

Delete deletes a Redis cache. Parameters: resourceGroupName - the name of the resource group. name - the name of the Redis cache.

func (Client) DeletePreparer Uses

func (client Client) DeletePreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (Client) DeleteResponder Uses

func (client Client) 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 (Client) DeleteSender Uses

func (client Client) DeleteSender(req *http.Request) (future DeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (Client) ExportData Uses

func (client Client) ExportData(ctx context.Context, resourceGroupName string, name string, parameters ExportRDBParameters) (result ExportDataFuture, err error)

ExportData export data from the redis cache to blobs in a container. Parameters: resourceGroupName - the name of the resource group. name - the name of the Redis cache. parameters - parameters for Redis export operation.

func (Client) ExportDataPreparer Uses

func (client Client) ExportDataPreparer(ctx context.Context, resourceGroupName string, name string, parameters ExportRDBParameters) (*http.Request, error)

ExportDataPreparer prepares the ExportData request.

func (Client) ExportDataResponder Uses

func (client Client) ExportDataResponder(resp *http.Response) (result autorest.Response, err error)

ExportDataResponder handles the response to the ExportData request. The method always closes the http.Response Body.

func (Client) ExportDataSender Uses

func (client Client) ExportDataSender(req *http.Request) (future ExportDataFuture, err error)

ExportDataSender sends the ExportData request. The method will close the http.Response Body if it receives an error.

func (Client) ForceReboot Uses

func (client Client) ForceReboot(ctx context.Context, resourceGroupName string, name string, parameters RebootParameters) (result ForceRebootResponse, err error)

ForceReboot reboot specified Redis node(s). This operation requires write permission to the cache resource. There can be potential data loss. Parameters: resourceGroupName - the name of the resource group. name - the name of the Redis cache. parameters - specifies which Redis node(s) to reboot.

func (Client) ForceRebootPreparer Uses

func (client Client) ForceRebootPreparer(ctx context.Context, resourceGroupName string, name string, parameters RebootParameters) (*http.Request, error)

ForceRebootPreparer prepares the ForceReboot request.

func (Client) ForceRebootResponder Uses

func (client Client) ForceRebootResponder(resp *http.Response) (result ForceRebootResponse, err error)

ForceRebootResponder handles the response to the ForceReboot request. The method always closes the http.Response Body.

func (Client) ForceRebootSender Uses

func (client Client) ForceRebootSender(req *http.Request) (*http.Response, error)

ForceRebootSender sends the ForceReboot request. The method will close the http.Response Body if it receives an error.

func (Client) Get Uses

func (client Client) Get(ctx context.Context, resourceGroupName string, name string) (result ResourceType, err error)

Get gets a Redis cache (resource description). Parameters: resourceGroupName - the name of the resource group. name - the name of the Redis cache.

func (Client) GetPreparer Uses

func (client Client) GetPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error)

GetPreparer prepares the Get request.

func (Client) GetResponder Uses

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 Uses

func (client Client) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (Client) ImportData Uses

func (client Client) ImportData(ctx context.Context, resourceGroupName string, name string, parameters ImportRDBParameters) (result ImportDataFuture, err error)

ImportData import data into Redis cache. Parameters: resourceGroupName - the name of the resource group. name - the name of the Redis cache. parameters - parameters for Redis import operation.

func (Client) ImportDataPreparer Uses

func (client Client) ImportDataPreparer(ctx context.Context, resourceGroupName string, name string, parameters ImportRDBParameters) (*http.Request, error)

ImportDataPreparer prepares the ImportData request.

func (Client) ImportDataResponder Uses

func (client Client) ImportDataResponder(resp *http.Response) (result autorest.Response, err error)

ImportDataResponder handles the response to the ImportData request. The method always closes the http.Response Body.

func (Client) ImportDataSender Uses

func (client Client) ImportDataSender(req *http.Request) (future ImportDataFuture, err error)

ImportDataSender sends the ImportData request. The method will close the http.Response Body if it receives an error.

func (Client) List Uses

func (client Client) List(ctx context.Context) (result ListResultPage, err error)

List gets all Redis caches in the specified subscription.

func (Client) ListByResourceGroup Uses

func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListResultPage, err error)

ListByResourceGroup lists all Redis caches in a resource group. Parameters: resourceGroupName - the name of the resource group.

func (Client) ListByResourceGroupComplete Uses

func (client Client) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListResultIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (Client) ListByResourceGroupPreparer Uses

func (client Client) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (Client) ListByResourceGroupResponder Uses

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 Uses

func (client Client) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (Client) ListComplete Uses

func (client Client) ListComplete(ctx context.Context) (result ListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (Client) ListKeys Uses

func (client Client) ListKeys(ctx context.Context, 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. Parameters: resourceGroupName - the name of the resource group. name - the name of the Redis cache.

func (Client) ListKeysPreparer Uses

func (client Client) ListKeysPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error)

ListKeysPreparer prepares the ListKeys request.

func (Client) ListKeysResponder Uses

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 Uses

func (client Client) ListKeysSender(req *http.Request) (*http.Response, error)

ListKeysSender sends the ListKeys request. The method will close the http.Response Body if it receives an error.

func (Client) ListPreparer Uses

func (client Client) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (Client) ListResponder Uses

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 Uses

func (client Client) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (Client) RegenerateKey Uses

func (client Client) RegenerateKey(ctx context.Context, 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. Parameters: resourceGroupName - the name of the resource group. name - the name of the Redis cache. parameters - specifies which key to regenerate.

func (Client) RegenerateKeyPreparer Uses

func (client Client) RegenerateKeyPreparer(ctx context.Context, resourceGroupName string, name string, parameters RegenerateKeyParameters) (*http.Request, error)

RegenerateKeyPreparer prepares the RegenerateKey request.

func (Client) RegenerateKeyResponder Uses

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 Uses

func (client Client) RegenerateKeySender(req *http.Request) (*http.Response, error)

RegenerateKeySender sends the RegenerateKey request. The method will close the http.Response Body if it receives an error.

func (Client) Update Uses

func (client Client) Update(ctx context.Context, resourceGroupName string, name string, parameters UpdateParameters) (result ResourceType, err error)

Update update an existing Redis cache. Parameters: resourceGroupName - the name of the resource group. name - the name of the Redis cache. parameters - parameters supplied to the Update Redis operation.

func (Client) UpdatePreparer Uses

func (client Client) UpdatePreparer(ctx context.Context, resourceGroupName string, name string, parameters UpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (Client) UpdateResponder Uses

func (client Client) UpdateResponder(resp *http.Response) (result ResourceType, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (Client) UpdateSender Uses

func (client Client) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type CreateFuture Uses

type CreateFuture struct {
    azure.Future
}

CreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*CreateFuture) Result Uses

func (future *CreateFuture) Result(client Client) (rt ResourceType, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type CreateParameters Uses

type CreateParameters struct {
    // CreateProperties - Redis cache properties.
    *CreateProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
    // Location - Resource location.
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
}

CreateParameters parameters supplied to the Create Redis operation.

func (CreateParameters) MarshalJSON Uses

func (cp CreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CreateParameters.

func (*CreateParameters) UnmarshalJSON Uses

func (cp *CreateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CreateParameters struct.

type CreateProperties Uses

type CreateProperties struct {
    // Sku - The SKU of the Redis cache to deploy.
    Sku *Sku `json:"sku,omitempty"`
    // RedisConfiguration - All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc.
    RedisConfiguration map[string]*string `json:"redisConfiguration"`
    // EnableNonSslPort - Specifies whether the non-ssl Redis server port (6379) is enabled.
    EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"`
    // TenantSettings - tenantSettings
    TenantSettings map[string]*string `json:"tenantSettings"`
    // ShardCount - The number of shards to be created on a Premium Cluster Cache.
    ShardCount *int32 `json:"shardCount,omitempty"`
    // SubnetID - The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
    SubnetID *string `json:"subnetId,omitempty"`
    // StaticIP - Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual Network.
    StaticIP *string `json:"staticIP,omitempty"`
}

CreateProperties properties supplied to Create Redis operation.

func (CreateProperties) MarshalJSON Uses

func (cp CreateProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CreateProperties.

type DayOfWeek Uses

type DayOfWeek string

DayOfWeek enumerates the values for day of week.

const (
    // Everyday ...
    Everyday DayOfWeek = "Everyday"
    // Friday ...
    Friday DayOfWeek = "Friday"
    // Monday ...
    Monday DayOfWeek = "Monday"
    // Saturday ...
    Saturday DayOfWeek = "Saturday"
    // Sunday ...
    Sunday DayOfWeek = "Sunday"
    // Thursday ...
    Thursday DayOfWeek = "Thursday"
    // Tuesday ...
    Tuesday DayOfWeek = "Tuesday"
    // Wednesday ...
    Wednesday DayOfWeek = "Wednesday"
    // Weekend ...
    Weekend DayOfWeek = "Weekend"
)

func PossibleDayOfWeekValues Uses

func PossibleDayOfWeekValues() []DayOfWeek

PossibleDayOfWeekValues returns an array of possible values for the DayOfWeek const type.

type DeleteFuture Uses

type DeleteFuture struct {
    azure.Future
}

DeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DeleteFuture) Result Uses

func (future *DeleteFuture) Result(client Client) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ExportDataFuture Uses

type ExportDataFuture struct {
    azure.Future
}

ExportDataFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ExportDataFuture) Result Uses

func (future *ExportDataFuture) Result(client Client) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ExportRDBParameters Uses

type ExportRDBParameters struct {
    // Format - File format.
    Format *string `json:"format,omitempty"`
    // Prefix - Prefix to use for exported files.
    Prefix *string `json:"prefix,omitempty"`
    // Container - Container name to export to.
    Container *string `json:"container,omitempty"`
}

ExportRDBParameters parameters for Redis export operation.

type FirewallRule Uses

type FirewallRule struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; resource ID (of the firewall rule)
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; name of the firewall rule
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; type (of the firewall rule resource = 'Microsoft.Cache/redis/firewallRule')
    Type *string `json:"type,omitempty"`
    // FirewallRuleProperties - redis cache firewall rule properties
    *FirewallRuleProperties `json:"properties,omitempty"`
}

FirewallRule a firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted to connect

func (FirewallRule) MarshalJSON Uses

func (fr FirewallRule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FirewallRule.

func (*FirewallRule) UnmarshalJSON Uses

func (fr *FirewallRule) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for FirewallRule struct.

type FirewallRuleClient Uses

type FirewallRuleClient struct {
    BaseClient
}

FirewallRuleClient is the REST API for Azure Redis Cache Service.

func NewFirewallRuleClient Uses

func NewFirewallRuleClient(subscriptionID string) FirewallRuleClient

NewFirewallRuleClient creates an instance of the FirewallRuleClient client.

func NewFirewallRuleClientWithBaseURI Uses

func NewFirewallRuleClientWithBaseURI(baseURI string, subscriptionID string) FirewallRuleClient

NewFirewallRuleClientWithBaseURI creates an instance of the FirewallRuleClient client.

func (FirewallRuleClient) CreateOrUpdate Uses

func (client FirewallRuleClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, cacheName string, ruleName string, parameters FirewallRule) (result FirewallRule, err error)

CreateOrUpdate create or update a redis cache firewall rule Parameters: resourceGroupName - the name of the resource group. cacheName - the name of the Redis cache. ruleName - the name of the firewall rule. parameters - parameters supplied to the create or update redis firewall rule operation.

func (FirewallRuleClient) CreateOrUpdatePreparer Uses

func (client FirewallRuleClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, cacheName string, ruleName string, parameters FirewallRule) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (FirewallRuleClient) CreateOrUpdateResponder Uses

func (client FirewallRuleClient) CreateOrUpdateResponder(resp *http.Response) (result FirewallRule, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (FirewallRuleClient) CreateOrUpdateSender Uses

func (client FirewallRuleClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (FirewallRuleClient) Delete Uses

func (client FirewallRuleClient) Delete(ctx context.Context, resourceGroupName string, cacheName string, ruleName string) (result autorest.Response, err error)

Delete deletes a single firewall rule in a specified redis cache. Parameters: resourceGroupName - the name of the resource group. cacheName - the name of the Redis cache. ruleName - the name of the firewall rule.

func (FirewallRuleClient) DeletePreparer Uses

func (client FirewallRuleClient) DeletePreparer(ctx context.Context, resourceGroupName string, cacheName string, ruleName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (FirewallRuleClient) DeleteResponder Uses

func (client FirewallRuleClient) 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 (FirewallRuleClient) DeleteSender Uses

func (client FirewallRuleClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (FirewallRuleClient) Get Uses

func (client FirewallRuleClient) Get(ctx context.Context, resourceGroupName string, cacheName string, ruleName string) (result FirewallRule, err error)

Get gets a single firewall rule in a specified redis cache. Parameters: resourceGroupName - the name of the resource group. cacheName - the name of the Redis cache. ruleName - the name of the firewall rule.

func (FirewallRuleClient) GetPreparer Uses

func (client FirewallRuleClient) GetPreparer(ctx context.Context, resourceGroupName string, cacheName string, ruleName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (FirewallRuleClient) GetResponder Uses

func (client FirewallRuleClient) GetResponder(resp *http.Response) (result FirewallRule, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (FirewallRuleClient) GetSender Uses

func (client FirewallRuleClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type FirewallRuleListResult Uses

type FirewallRuleListResult struct {
    autorest.Response `json:"-"`
    // Value - Results of the list firewall rules operation.
    Value *[]FirewallRule `json:"value,omitempty"`
    // NextLink - Link for next set of locations.
    NextLink *string `json:"nextLink,omitempty"`
}

FirewallRuleListResult the response of list firewall rules Redis operation.

func (FirewallRuleListResult) IsEmpty Uses

func (frlr FirewallRuleListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type FirewallRuleListResultIterator Uses

type FirewallRuleListResultIterator struct {
    // contains filtered or unexported fields
}

FirewallRuleListResultIterator provides access to a complete listing of FirewallRule values.

func NewFirewallRuleListResultIterator Uses

func NewFirewallRuleListResultIterator(page FirewallRuleListResultPage) FirewallRuleListResultIterator

Creates a new instance of the FirewallRuleListResultIterator type.

func (*FirewallRuleListResultIterator) Next Uses

func (iter *FirewallRuleListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*FirewallRuleListResultIterator) NextWithContext Uses

func (iter *FirewallRuleListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (FirewallRuleListResultIterator) NotDone Uses

func (iter FirewallRuleListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (FirewallRuleListResultIterator) Response Uses

func (iter FirewallRuleListResultIterator) Response() FirewallRuleListResult

Response returns the raw server response from the last page request.

func (FirewallRuleListResultIterator) Value Uses

func (iter FirewallRuleListResultIterator) Value() FirewallRule

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type FirewallRuleListResultPage Uses

type FirewallRuleListResultPage struct {
    // contains filtered or unexported fields
}

FirewallRuleListResultPage contains a page of FirewallRule values.

func NewFirewallRuleListResultPage Uses

func NewFirewallRuleListResultPage(getNextPage func(context.Context, FirewallRuleListResult) (FirewallRuleListResult, error)) FirewallRuleListResultPage

Creates a new instance of the FirewallRuleListResultPage type.

func (*FirewallRuleListResultPage) Next Uses

func (page *FirewallRuleListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*FirewallRuleListResultPage) NextWithContext Uses

func (page *FirewallRuleListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (FirewallRuleListResultPage) NotDone Uses

func (page FirewallRuleListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (FirewallRuleListResultPage) Response Uses

func (page FirewallRuleListResultPage) Response() FirewallRuleListResult

Response returns the raw server response from the last page request.

func (FirewallRuleListResultPage) Values Uses

func (page FirewallRuleListResultPage) Values() []FirewallRule

Values returns the slice of values for the current page or nil if there are no values.

type FirewallRuleProperties Uses

type FirewallRuleProperties struct {
    // StartIP - lowest IP address included in the range
    StartIP *string `json:"startIP,omitempty"`
    // EndIP - highest IP address included in the range
    EndIP *string `json:"endIP,omitempty"`
}

FirewallRuleProperties specifies a range of IP addresses permitted to connect to the cache

type FirewallRulesClient Uses

type FirewallRulesClient struct {
    BaseClient
}

FirewallRulesClient is the REST API for Azure Redis Cache Service.

func NewFirewallRulesClient Uses

func NewFirewallRulesClient(subscriptionID string) FirewallRulesClient

NewFirewallRulesClient creates an instance of the FirewallRulesClient client.

func NewFirewallRulesClientWithBaseURI Uses

func NewFirewallRulesClientWithBaseURI(baseURI string, subscriptionID string) FirewallRulesClient

NewFirewallRulesClientWithBaseURI creates an instance of the FirewallRulesClient client.

func (FirewallRulesClient) List Uses

func (client FirewallRulesClient) List(ctx context.Context, resourceGroupName string, cacheName string) (result FirewallRuleListResultPage, err error)

List gets all firewall rules in the specified redis cache. Parameters: resourceGroupName - the name of the resource group. cacheName - the name of the Redis cache.

func (FirewallRulesClient) ListComplete Uses

func (client FirewallRulesClient) ListComplete(ctx context.Context, resourceGroupName string, cacheName string) (result FirewallRuleListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (FirewallRulesClient) ListPreparer Uses

func (client FirewallRulesClient) ListPreparer(ctx context.Context, resourceGroupName string, cacheName string) (*http.Request, error)

ListPreparer prepares the List request.

func (FirewallRulesClient) ListResponder Uses

func (client FirewallRulesClient) ListResponder(resp *http.Response) (result FirewallRuleListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (FirewallRulesClient) ListSender Uses

func (client FirewallRulesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ForceRebootResponse Uses

type ForceRebootResponse struct {
    autorest.Response `json:"-"`
    // Message - READ-ONLY; Status message
    Message *string `json:"Message,omitempty"`
}

ForceRebootResponse response to force reboot for Redis cache.

type ImportDataFuture Uses

type ImportDataFuture struct {
    azure.Future
}

ImportDataFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ImportDataFuture) Result Uses

func (future *ImportDataFuture) Result(client Client) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ImportRDBParameters Uses

type ImportRDBParameters struct {
    // Format - File format.
    Format *string `json:"format,omitempty"`
    // Files - files to import.
    Files *[]string `json:"files,omitempty"`
}

ImportRDBParameters parameters for Redis import operation.

type KeyType Uses

type KeyType string

KeyType enumerates the values for key type.

const (
    // Primary ...
    Primary KeyType = "Primary"
    // Secondary ...
    Secondary KeyType = "Secondary"
)

func PossibleKeyTypeValues Uses

func PossibleKeyTypeValues() []KeyType

PossibleKeyTypeValues returns an array of possible values for the KeyType const type.

type ListResult Uses

type ListResult struct {
    autorest.Response `json:"-"`
    // Value - List of Redis cache instances.
    Value *[]ResourceType `json:"value,omitempty"`
    // NextLink - Link for next set of locations.
    NextLink *string `json:"nextLink,omitempty"`
}

ListResult the response of list Redis operation.

func (ListResult) IsEmpty Uses

func (lr ListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ListResultIterator Uses

type ListResultIterator struct {
    // contains filtered or unexported fields
}

ListResultIterator provides access to a complete listing of ResourceType values.

func NewListResultIterator Uses

func NewListResultIterator(page ListResultPage) ListResultIterator

Creates a new instance of the ListResultIterator type.

func (*ListResultIterator) Next Uses

func (iter *ListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ListResultIterator) NextWithContext Uses

func (iter *ListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ListResultIterator) NotDone Uses

func (iter ListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ListResultIterator) Response Uses

func (iter ListResultIterator) Response() ListResult

Response returns the raw server response from the last page request.

func (ListResultIterator) Value Uses

func (iter ListResultIterator) Value() ResourceType

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ListResultPage Uses

type ListResultPage struct {
    // contains filtered or unexported fields
}

ListResultPage contains a page of ResourceType values.

func NewListResultPage Uses

func NewListResultPage(getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage

Creates a new instance of the ListResultPage type.

func (*ListResultPage) Next Uses

func (page *ListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ListResultPage) NextWithContext Uses

func (page *ListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ListResultPage) NotDone Uses

func (page ListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ListResultPage) Response Uses

func (page ListResultPage) Response() ListResult

Response returns the raw server response from the last page request.

func (ListResultPage) Values Uses

func (page ListResultPage) Values() []ResourceType

Values returns the slice of values for the current page or nil if there are no values.

type Operation Uses

type Operation struct {
    // Name - Operation name: {provider}/{resource}/{operation}
    Name *string `json:"name,omitempty"`
    // Display - The object that describes the operation.
    Display *OperationDisplay `json:"display,omitempty"`
}

Operation REST API operation

type OperationDisplay Uses

type OperationDisplay struct {
    // Provider - Friendly name of the resource provider
    Provider *string `json:"provider,omitempty"`
    // Operation - Operation type: read, write, delete, listKeys/action, etc.
    Operation *string `json:"operation,omitempty"`
    // Resource - Resource type on which the operation is performed.
    Resource *string `json:"resource,omitempty"`
    // Description - Friendly name of the operation
    Description *string `json:"description,omitempty"`
}

OperationDisplay the object that describes the operation.

type OperationListResult Uses

type OperationListResult struct {
    autorest.Response `json:"-"`
    // Value - List of operations supported by the resource provider.
    Value *[]Operation `json:"value,omitempty"`
    // NextLink - URL to get the next set of operation list results if there are any.
    NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results.

func (OperationListResult) IsEmpty Uses

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator Uses

type OperationListResultIterator struct {
    // contains filtered or unexported fields
}

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator Uses

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next Uses

func (iter *OperationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultIterator) NextWithContext Uses

func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationListResultIterator) NotDone Uses

func (iter OperationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListResultIterator) Response Uses

func (iter OperationListResultIterator) Response() OperationListResult

Response returns the raw server response from the last page request.

func (OperationListResultIterator) Value Uses

func (iter OperationListResultIterator) Value() Operation

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListResultPage Uses

type OperationListResultPage struct {
    // contains filtered or unexported fields
}

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage Uses

func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next Uses

func (page *OperationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultPage) NextWithContext Uses

func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationListResultPage) NotDone Uses

func (page OperationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListResultPage) Response Uses

func (page OperationListResultPage) Response() OperationListResult

Response returns the raw server response from the last page request.

func (OperationListResultPage) Values Uses

func (page OperationListResultPage) Values() []Operation

Values returns the slice of values for the current page or nil if there are no values.

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the REST API for Azure Redis Cache Service.

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)

List lists all of the available REST API operations of the Microsoft.Cache provider.

func (OperationsClient) ListComplete Uses

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer Uses

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender Uses

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type PatchSchedule Uses

type PatchSchedule struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
    // Location - READ-ONLY; Resource location.
    Location *string `json:"location,omitempty"`
    // ScheduleEntries - List of patch schedules for a Redis cache.
    *ScheduleEntries `json:"properties,omitempty"`
}

PatchSchedule response to put/get patch schedules for Redis cache.

func (PatchSchedule) MarshalJSON Uses

func (ps PatchSchedule) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PatchSchedule.

func (*PatchSchedule) UnmarshalJSON Uses

func (ps *PatchSchedule) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PatchSchedule struct.

type PatchSchedulesClient Uses

type PatchSchedulesClient struct {
    BaseClient
}

PatchSchedulesClient is the REST API for Azure Redis Cache Service.

func NewPatchSchedulesClient Uses

func NewPatchSchedulesClient(subscriptionID string) PatchSchedulesClient

NewPatchSchedulesClient creates an instance of the PatchSchedulesClient client.

func NewPatchSchedulesClientWithBaseURI Uses

func NewPatchSchedulesClientWithBaseURI(baseURI string, subscriptionID string) PatchSchedulesClient

NewPatchSchedulesClientWithBaseURI creates an instance of the PatchSchedulesClient client.

func (PatchSchedulesClient) CreateOrUpdate Uses

func (client PatchSchedulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, name string, parameters PatchSchedule) (result PatchSchedule, err error)

CreateOrUpdate create or replace the patching schedule for Redis cache (requires Premium SKU). Parameters: resourceGroupName - the name of the resource group. name - the name of the Redis cache. parameters - parameters to set the patching schedule for Redis cache.

func (PatchSchedulesClient) CreateOrUpdatePreparer Uses

func (client PatchSchedulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, name string, parameters PatchSchedule) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (PatchSchedulesClient) CreateOrUpdateResponder Uses

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 Uses

func (client PatchSchedulesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (PatchSchedulesClient) Delete Uses

func (client PatchSchedulesClient) Delete(ctx context.Context, resourceGroupName string, name string) (result autorest.Response, err error)

Delete deletes the patching schedule of a redis cache (requires Premium SKU). Parameters: resourceGroupName - the name of the resource group. name - the name of the redis cache.

func (PatchSchedulesClient) DeletePreparer Uses

func (client PatchSchedulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (PatchSchedulesClient) DeleteResponder Uses

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 Uses

func (client PatchSchedulesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (PatchSchedulesClient) Get Uses

func (client PatchSchedulesClient) Get(ctx context.Context, resourceGroupName string, name string) (result PatchSchedule, err error)

Get gets the patching schedule of a redis cache (requires Premium SKU). Parameters: resourceGroupName - the name of the resource group. name - the name of the redis cache.

func (PatchSchedulesClient) GetPreparer Uses

func (client PatchSchedulesClient) GetPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error)

GetPreparer prepares the Get request.

func (PatchSchedulesClient) GetResponder Uses

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.

func (PatchSchedulesClient) GetSender Uses

func (client PatchSchedulesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type Properties Uses

type Properties struct {
    // RedisConfiguration - All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc.
    RedisConfiguration map[string]*string `json:"redisConfiguration"`
    // EnableNonSslPort - Specifies whether the non-ssl Redis server port (6379) is enabled.
    EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"`
    // TenantSettings - tenantSettings
    TenantSettings map[string]*string `json:"tenantSettings"`
    // ShardCount - The number of shards to be created on a Premium Cluster Cache.
    ShardCount *int32 `json:"shardCount,omitempty"`
    // SubnetID - The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
    SubnetID *string `json:"subnetId,omitempty"`
    // StaticIP - Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual Network.
    StaticIP *string `json:"staticIP,omitempty"`
}

Properties properties supplied to Create or Update Redis operation.

func (Properties) MarshalJSON Uses

func (p Properties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Properties.

type RebootParameters Uses

type RebootParameters struct {
    // RebootType - Which Redis node(s) to reboot. Depending on this value data loss is possible. Possible values include: 'PrimaryNode', 'SecondaryNode', 'AllNodes'
    RebootType RebootType `json:"rebootType,omitempty"`
    // ShardID - If clustering is enabled, the ID of the shard to be rebooted.
    ShardID *int32 `json:"shardId,omitempty"`
}

RebootParameters specifies which Redis node(s) to reboot.

type RebootType Uses

type RebootType string

RebootType enumerates the values for reboot type.

const (
    // AllNodes ...
    AllNodes RebootType = "AllNodes"
    // PrimaryNode ...
    PrimaryNode RebootType = "PrimaryNode"
    // SecondaryNode ...
    SecondaryNode RebootType = "SecondaryNode"
)

func PossibleRebootTypeValues Uses

func PossibleRebootTypeValues() []RebootType

PossibleRebootTypeValues returns an array of possible values for the RebootType const type.

type RegenerateKeyParameters Uses

type RegenerateKeyParameters struct {
    // KeyType - The Redis access key to regenerate. Possible values include: 'Primary', 'Secondary'
    KeyType KeyType `json:"keyType,omitempty"`
}

RegenerateKeyParameters specifies which Redis access keys to reset.

type Resource Uses

type Resource struct {
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
    // Location - Resource location.
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
}

Resource the Resource definition.

func (Resource) MarshalJSON Uses

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type ResourceProperties Uses

type ResourceProperties struct {
    // Sku - The SKU of the Redis cache to deploy.
    Sku *Sku `json:"sku,omitempty"`
    // RedisVersion - READ-ONLY; Redis version.
    RedisVersion *string `json:"redisVersion,omitempty"`
    // ProvisioningState - READ-ONLY; Redis instance provisioning status.
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // HostName - READ-ONLY; Redis host name.
    HostName *string `json:"hostName,omitempty"`
    // Port - READ-ONLY; Redis non-SSL port.
    Port *int32 `json:"port,omitempty"`
    // SslPort - READ-ONLY; Redis SSL port.
    SslPort *int32 `json:"sslPort,omitempty"`
    // AccessKeys - READ-ONLY; The keys of the Redis cache - not set if this object is not the response to Create or Update redis cache
    AccessKeys *AccessKeys `json:"accessKeys,omitempty"`
    // RedisConfiguration - All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc.
    RedisConfiguration map[string]*string `json:"redisConfiguration"`
    // EnableNonSslPort - Specifies whether the non-ssl Redis server port (6379) is enabled.
    EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"`
    // TenantSettings - tenantSettings
    TenantSettings map[string]*string `json:"tenantSettings"`
    // ShardCount - The number of shards to be created on a Premium Cluster Cache.
    ShardCount *int32 `json:"shardCount,omitempty"`
    // SubnetID - The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
    SubnetID *string `json:"subnetId,omitempty"`
    // StaticIP - Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual Network.
    StaticIP *string `json:"staticIP,omitempty"`
}

ResourceProperties parameters describing a Redis instance.

func (ResourceProperties) MarshalJSON Uses

func (rp ResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceProperties.

type ResourceType Uses

type ResourceType struct {
    autorest.Response `json:"-"`
    // ResourceProperties - Redis cache properties.
    *ResourceProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Resource ID.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Resource type.
    Type *string `json:"type,omitempty"`
    // Location - Resource location.
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
}

ResourceType a single Redis item in List or Get Operation.

func (ResourceType) MarshalJSON Uses

func (rt ResourceType) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceType.

func (*ResourceType) UnmarshalJSON Uses

func (rt *ResourceType) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ResourceType struct.

type ScheduleEntries Uses

type ScheduleEntries struct {
    // ScheduleEntries - List of patch schedules for a Redis cache.
    ScheduleEntries *[]ScheduleEntry `json:"scheduleEntries,omitempty"`
}

ScheduleEntries list of patch schedules for a Redis cache.

type ScheduleEntry Uses

type ScheduleEntry struct {
    // DayOfWeek - Day of the week when a cache can be patched. Possible values include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday', 'Everyday', 'Weekend'
    DayOfWeek DayOfWeek `json:"dayOfWeek,omitempty"`
    // StartHourUtc - Start hour after which cache patching can start.
    StartHourUtc *int32 `json:"startHourUtc,omitempty"`
    // MaintenanceWindow - ISO8601 timespan specifying how much time cache patching can take.
    MaintenanceWindow *string `json:"maintenanceWindow,omitempty"`
}

ScheduleEntry patch schedule entry for a Premium Redis Cache.

type Sku Uses

type Sku struct {
    // Name - The type of Redis cache to deploy. Valid values: (Basic, Standard, Premium). Possible values include: 'Basic', 'Standard', 'Premium'
    Name SkuName `json:"name,omitempty"`
    // Family - The SKU family to use. Valid values: (C, P). (C = Basic/Standard, P = Premium). Possible values include: 'C', 'P'
    Family SkuFamily `json:"family,omitempty"`
    // Capacity - The size of the Redis cache to deploy. Valid values: for C (Basic/Standard) family (0, 1, 2, 3, 4, 5, 6), for P (Premium) family (1, 2, 3, 4).
    Capacity *int32 `json:"capacity,omitempty"`
}

Sku SKU parameters supplied to the create Redis operation.

type SkuFamily Uses

type SkuFamily string

SkuFamily enumerates the values for sku family.

const (
    // C ...
    C   SkuFamily = "C"
    // P ...
    P   SkuFamily = "P"
)

func PossibleSkuFamilyValues Uses

func PossibleSkuFamilyValues() []SkuFamily

PossibleSkuFamilyValues returns an array of possible values for the SkuFamily const type.

type SkuName Uses

type SkuName string

SkuName enumerates the values for sku name.

const (
    // Basic ...
    Basic SkuName = "Basic"
    // Premium ...
    Premium SkuName = "Premium"
    // Standard ...
    Standard SkuName = "Standard"
)

func PossibleSkuNameValues Uses

func PossibleSkuNameValues() []SkuName

PossibleSkuNameValues returns an array of possible values for the SkuName const type.

type UpdateParameters Uses

type UpdateParameters struct {
    // UpdateProperties - Redis cache properties.
    *UpdateProperties `json:"properties,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
}

UpdateParameters parameters supplied to the Update Redis operation.

func (UpdateParameters) MarshalJSON Uses

func (up UpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UpdateParameters.

func (*UpdateParameters) UnmarshalJSON Uses

func (up *UpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for UpdateParameters struct.

type UpdateProperties Uses

type UpdateProperties struct {
    // Sku - The SKU of the Redis cache to deploy.
    Sku *Sku `json:"sku,omitempty"`
    // RedisConfiguration - All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value etc.
    RedisConfiguration map[string]*string `json:"redisConfiguration"`
    // EnableNonSslPort - Specifies whether the non-ssl Redis server port (6379) is enabled.
    EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"`
    // TenantSettings - tenantSettings
    TenantSettings map[string]*string `json:"tenantSettings"`
    // ShardCount - The number of shards to be created on a Premium Cluster Cache.
    ShardCount *int32 `json:"shardCount,omitempty"`
    // SubnetID - The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
    SubnetID *string `json:"subnetId,omitempty"`
    // StaticIP - Static IP address. Required when deploying a Redis cache inside an existing Azure Virtual Network.
    StaticIP *string `json:"staticIP,omitempty"`
}

UpdateProperties properties supplied to Update Redis operation.

func (UpdateProperties) MarshalJSON Uses

func (up UpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UpdateProperties.

Directories

PathSynopsis
redisapi

Package redis imports 9 packages (graph) and is imported by 3 packages. Updated 2019-08-02. Refresh now. Tools for package owners.