...

Package redis

import "github.com/Azure/azure-sdk-for-go/services/redis/mgmt/2020-12-01/redis"
Overview
Index
Subdirectories

Overview ▾

Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.

Package redis implements the Azure ARM Redis service API version 2020-12-01.

REST API for Azure Redis Cache Service.

Index ▾

Constants
func UserAgent() string
func Version() string
type AccessKeys
    func (ak AccessKeys) MarshalJSON() ([]byte, error)
type AzureEntityResource
    func (aer AzureEntityResource) MarshalJSON() ([]byte, error)
type BaseClient
    func New(subscriptionID string) BaseClient
    func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
type CheckNameAvailabilityParameters
type Client
    func NewClient(subscriptionID string) Client
    func NewClientWithBaseURI(baseURI string, subscriptionID string) Client
    func (client Client) CheckNameAvailability(ctx context.Context, parameters CheckNameAvailabilityParameters) (result autorest.Response, err error)
    func (client Client) CheckNameAvailabilityPreparer(ctx context.Context, parameters CheckNameAvailabilityParameters) (*http.Request, error)
    func (client Client) CheckNameAvailabilityResponder(resp *http.Response) (result autorest.Response, err error)
    func (client Client) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)
    func (client Client) Create(ctx context.Context, resourceGroupName string, name string, parameters CreateParameters) (result CreateFuture, err error)
    func (client Client) CreatePreparer(ctx context.Context, resourceGroupName string, name string, parameters CreateParameters) (*http.Request, error)
    func (client Client) CreateResponder(resp *http.Response) (result ResourceType, err error)
    func (client Client) CreateSender(req *http.Request) (future CreateFuture, err error)
    func (client Client) Delete(ctx context.Context, resourceGroupName string, name string) (result DeleteFuture, err error)
    func (client Client) DeletePreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error)
    func (client Client) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client Client) DeleteSender(req *http.Request) (future DeleteFuture, err error)
    func (client Client) ExportData(ctx context.Context, resourceGroupName string, name string, parameters ExportRDBParameters) (result ExportDataFuture, err error)
    func (client Client) ExportDataPreparer(ctx context.Context, 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) (future ExportDataFuture, err error)
    func (client Client) ForceReboot(ctx context.Context, resourceGroupName string, name string, parameters RebootParameters) (result ForceRebootResponse, err error)
    func (client Client) ForceRebootPreparer(ctx context.Context, resourceGroupName string, name string, parameters RebootParameters) (*http.Request, error)
    func (client Client) ForceRebootResponder(resp *http.Response) (result ForceRebootResponse, err error)
    func (client Client) ForceRebootSender(req *http.Request) (*http.Response, error)
    func (client Client) Get(ctx context.Context, resourceGroupName string, name string) (result ResourceType, err error)
    func (client Client) GetPreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, name string, parameters ImportRDBParameters) (result ImportDataFuture, err error)
    func (client Client) ImportDataPreparer(ctx context.Context, 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) (future ImportDataFuture, err error)
    func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListResultPage, err error)
    func (client Client) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListResultIterator, err error)
    func (client Client) ListByResourceGroupPreparer(ctx context.Context, 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) ListBySubscription(ctx context.Context) (result ListResultPage, err error)
    func (client Client) ListBySubscriptionComplete(ctx context.Context) (result ListResultIterator, err error)
    func (client Client) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
    func (client Client) ListBySubscriptionResponder(resp *http.Response) (result ListResult, err error)
    func (client Client) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
    func (client Client) ListKeys(ctx context.Context, resourceGroupName string, name string) (result AccessKeys, err error)
    func (client Client) ListKeysPreparer(ctx context.Context, 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) ListUpgradeNotifications(ctx context.Context, resourceGroupName string, name string, history float64) (result NotificationListResponsePage, err error)
    func (client Client) ListUpgradeNotificationsComplete(ctx context.Context, resourceGroupName string, name string, history float64) (result NotificationListResponseIterator, err error)
    func (client Client) ListUpgradeNotificationsPreparer(ctx context.Context, resourceGroupName string, name string, history float64) (*http.Request, error)
    func (client Client) ListUpgradeNotificationsResponder(resp *http.Response) (result NotificationListResponse, err error)
    func (client Client) ListUpgradeNotificationsSender(req *http.Request) (*http.Response, error)
    func (client Client) RegenerateKey(ctx context.Context, resourceGroupName string, name string, parameters RegenerateKeyParameters) (result AccessKeys, err error)
    func (client Client) RegenerateKeyPreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, name string, parameters UpdateParameters) (result ResourceType, err error)
    func (client Client) UpdatePreparer(ctx context.Context, resourceGroupName string, name string, parameters UpdateParameters) (*http.Request, error)
    func (client Client) UpdateResponder(resp *http.Response) (result ResourceType, err error)
    func (client Client) UpdateSender(req *http.Request) (*http.Response, error)
type CommonProperties
    func (cp CommonProperties) MarshalJSON() ([]byte, error)
type CreateFuture
    func (future *CreateFuture) UnmarshalJSON(body []byte) error
type CreateParameters
    func (cp CreateParameters) MarshalJSON() ([]byte, error)
    func (cp *CreateParameters) UnmarshalJSON(body []byte) error
type CreateProperties
    func (cp CreateProperties) MarshalJSON() ([]byte, error)
type DayOfWeek
    func PossibleDayOfWeekValues() []DayOfWeek
type DeleteFuture
    func (future *DeleteFuture) UnmarshalJSON(body []byte) error
type ErrorAdditionalInfo
    func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
type ErrorDetail
    func (ed ErrorDetail) MarshalJSON() ([]byte, error)
type ErrorResponse
type ExportDataFuture
    func (future *ExportDataFuture) UnmarshalJSON(body []byte) error
type ExportRDBParameters
type FirewallRule
    func (fr FirewallRule) MarshalJSON() ([]byte, error)
    func (fr *FirewallRule) UnmarshalJSON(body []byte) error
type FirewallRuleCreateParameters
    func (frcp FirewallRuleCreateParameters) MarshalJSON() ([]byte, error)
    func (frcp *FirewallRuleCreateParameters) UnmarshalJSON(body []byte) error
type FirewallRuleListResult
    func (frlr FirewallRuleListResult) IsEmpty() bool
    func (frlr FirewallRuleListResult) MarshalJSON() ([]byte, error)
type FirewallRuleListResultIterator
    func NewFirewallRuleListResultIterator(page FirewallRuleListResultPage) FirewallRuleListResultIterator
    func (iter *FirewallRuleListResultIterator) Next() error
    func (iter *FirewallRuleListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter FirewallRuleListResultIterator) NotDone() bool
    func (iter FirewallRuleListResultIterator) Response() FirewallRuleListResult
    func (iter FirewallRuleListResultIterator) Value() FirewallRule
type FirewallRuleListResultPage
    func NewFirewallRuleListResultPage(cur FirewallRuleListResult, getNextPage func(context.Context, FirewallRuleListResult) (FirewallRuleListResult, error)) FirewallRuleListResultPage
    func (page *FirewallRuleListResultPage) Next() error
    func (page *FirewallRuleListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page FirewallRuleListResultPage) NotDone() bool
    func (page FirewallRuleListResultPage) Response() FirewallRuleListResult
    func (page FirewallRuleListResultPage) Values() []FirewallRule
type FirewallRuleProperties
type FirewallRulesClient
    func NewFirewallRulesClient(subscriptionID string) FirewallRulesClient
    func NewFirewallRulesClientWithBaseURI(baseURI string, subscriptionID string) FirewallRulesClient
    func (client FirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, cacheName string, ruleName string, parameters FirewallRule) (result FirewallRule, err error)
    func (client FirewallRulesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, cacheName string, ruleName string, parameters FirewallRule) (*http.Request, error)
    func (client FirewallRulesClient) CreateOrUpdateResponder(resp *http.Response) (result FirewallRule, err error)
    func (client FirewallRulesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
    func (client FirewallRulesClient) Delete(ctx context.Context, resourceGroupName string, cacheName string, ruleName string) (result autorest.Response, err error)
    func (client FirewallRulesClient) DeletePreparer(ctx context.Context, resourceGroupName string, cacheName string, ruleName string) (*http.Request, error)
    func (client FirewallRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client FirewallRulesClient) DeleteSender(req *http.Request) (*http.Response, error)
    func (client FirewallRulesClient) Get(ctx context.Context, resourceGroupName string, cacheName string, ruleName string) (result FirewallRule, err error)
    func (client FirewallRulesClient) GetPreparer(ctx context.Context, resourceGroupName string, cacheName string, ruleName string) (*http.Request, error)
    func (client FirewallRulesClient) GetResponder(resp *http.Response) (result FirewallRule, err error)
    func (client FirewallRulesClient) GetSender(req *http.Request) (*http.Response, error)
    func (client FirewallRulesClient) List(ctx context.Context, resourceGroupName string, cacheName string) (result FirewallRuleListResultPage, err error)
    func (client FirewallRulesClient) ListComplete(ctx context.Context, resourceGroupName string, cacheName string) (result FirewallRuleListResultIterator, err error)
    func (client FirewallRulesClient) ListPreparer(ctx context.Context, resourceGroupName string, cacheName string) (*http.Request, error)
    func (client FirewallRulesClient) ListResponder(resp *http.Response) (result FirewallRuleListResult, err error)
    func (client FirewallRulesClient) ListSender(req *http.Request) (*http.Response, error)
type ForceRebootResponse
    func (frr ForceRebootResponse) MarshalJSON() ([]byte, error)
type ImportDataFuture
    func (future *ImportDataFuture) UnmarshalJSON(body []byte) error
type ImportRDBParameters
type InstanceDetails
    func (ID InstanceDetails) MarshalJSON() ([]byte, error)
type KeyType
    func PossibleKeyTypeValues() []KeyType
type LinkedServer
    func (ls LinkedServer) MarshalJSON() ([]byte, error)
type LinkedServerClient
    func NewLinkedServerClient(subscriptionID string) LinkedServerClient
    func NewLinkedServerClientWithBaseURI(baseURI string, subscriptionID string) LinkedServerClient
    func (client LinkedServerClient) Create(ctx context.Context, resourceGroupName string, name string, linkedServerName string, parameters LinkedServerCreateParameters) (result LinkedServerCreateFuture, err error)
    func (client LinkedServerClient) CreatePreparer(ctx context.Context, resourceGroupName string, name string, linkedServerName string, parameters LinkedServerCreateParameters) (*http.Request, error)
    func (client LinkedServerClient) CreateResponder(resp *http.Response) (result LinkedServerWithProperties, err error)
    func (client LinkedServerClient) CreateSender(req *http.Request) (future LinkedServerCreateFuture, err error)
    func (client LinkedServerClient) Delete(ctx context.Context, resourceGroupName string, name string, linkedServerName string) (result autorest.Response, err error)
    func (client LinkedServerClient) DeletePreparer(ctx context.Context, resourceGroupName string, name string, linkedServerName string) (*http.Request, error)
    func (client LinkedServerClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client LinkedServerClient) DeleteSender(req *http.Request) (*http.Response, error)
    func (client LinkedServerClient) Get(ctx context.Context, resourceGroupName string, name string, linkedServerName string) (result LinkedServerWithProperties, err error)
    func (client LinkedServerClient) GetPreparer(ctx context.Context, resourceGroupName string, name string, linkedServerName string) (*http.Request, error)
    func (client LinkedServerClient) GetResponder(resp *http.Response) (result LinkedServerWithProperties, err error)
    func (client LinkedServerClient) GetSender(req *http.Request) (*http.Response, error)
    func (client LinkedServerClient) List(ctx context.Context, resourceGroupName string, name string) (result LinkedServerWithPropertiesListPage, err error)
    func (client LinkedServerClient) ListComplete(ctx context.Context, resourceGroupName string, name string) (result LinkedServerWithPropertiesListIterator, err error)
    func (client LinkedServerClient) ListPreparer(ctx context.Context, resourceGroupName string, name string) (*http.Request, error)
    func (client LinkedServerClient) ListResponder(resp *http.Response) (result LinkedServerWithPropertiesList, err error)
    func (client LinkedServerClient) ListSender(req *http.Request) (*http.Response, error)
type LinkedServerCreateFuture
    func (future *LinkedServerCreateFuture) UnmarshalJSON(body []byte) error
type LinkedServerCreateParameters
    func (lscp LinkedServerCreateParameters) MarshalJSON() ([]byte, error)
    func (lscp *LinkedServerCreateParameters) UnmarshalJSON(body []byte) error
type LinkedServerCreateProperties
type LinkedServerProperties
    func (lsp LinkedServerProperties) MarshalJSON() ([]byte, error)
type LinkedServerWithProperties
    func (lswp LinkedServerWithProperties) MarshalJSON() ([]byte, error)
    func (lswp *LinkedServerWithProperties) UnmarshalJSON(body []byte) error
type LinkedServerWithPropertiesList
    func (lswpl LinkedServerWithPropertiesList) IsEmpty() bool
    func (lswpl LinkedServerWithPropertiesList) MarshalJSON() ([]byte, error)
type LinkedServerWithPropertiesListIterator
    func NewLinkedServerWithPropertiesListIterator(page LinkedServerWithPropertiesListPage) LinkedServerWithPropertiesListIterator
    func (iter *LinkedServerWithPropertiesListIterator) Next() error
    func (iter *LinkedServerWithPropertiesListIterator) NextWithContext(ctx context.Context) (err error)
    func (iter LinkedServerWithPropertiesListIterator) NotDone() bool
    func (iter LinkedServerWithPropertiesListIterator) Response() LinkedServerWithPropertiesList
    func (iter LinkedServerWithPropertiesListIterator) Value() LinkedServerWithProperties
type LinkedServerWithPropertiesListPage
    func NewLinkedServerWithPropertiesListPage(cur LinkedServerWithPropertiesList, getNextPage func(context.Context, LinkedServerWithPropertiesList) (LinkedServerWithPropertiesList, error)) LinkedServerWithPropertiesListPage
    func (page *LinkedServerWithPropertiesListPage) Next() error
    func (page *LinkedServerWithPropertiesListPage) NextWithContext(ctx context.Context) (err error)
    func (page LinkedServerWithPropertiesListPage) NotDone() bool
    func (page LinkedServerWithPropertiesListPage) Response() LinkedServerWithPropertiesList
    func (page LinkedServerWithPropertiesListPage) Values() []LinkedServerWithProperties
type ListResult
    func (lr ListResult) IsEmpty() bool
    func (lr ListResult) MarshalJSON() ([]byte, error)
type ListResultIterator
    func NewListResultIterator(page ListResultPage) ListResultIterator
    func (iter *ListResultIterator) Next() error
    func (iter *ListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter ListResultIterator) NotDone() bool
    func (iter ListResultIterator) Response() ListResult
    func (iter ListResultIterator) Value() ResourceType
type ListResultPage
    func NewListResultPage(cur ListResult, getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage
    func (page *ListResultPage) Next() error
    func (page *ListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page ListResultPage) NotDone() bool
    func (page ListResultPage) Response() ListResult
    func (page ListResultPage) Values() []ResourceType
type NotificationListResponse
    func (nlr NotificationListResponse) IsEmpty() bool
    func (nlr NotificationListResponse) MarshalJSON() ([]byte, error)
type NotificationListResponseIterator
    func NewNotificationListResponseIterator(page NotificationListResponsePage) NotificationListResponseIterator
    func (iter *NotificationListResponseIterator) Next() error
    func (iter *NotificationListResponseIterator) NextWithContext(ctx context.Context) (err error)
    func (iter NotificationListResponseIterator) NotDone() bool
    func (iter NotificationListResponseIterator) Response() NotificationListResponse
    func (iter NotificationListResponseIterator) Value() UpgradeNotification
type NotificationListResponsePage
    func NewNotificationListResponsePage(cur NotificationListResponse, getNextPage func(context.Context, NotificationListResponse) (NotificationListResponse, error)) NotificationListResponsePage
    func (page *NotificationListResponsePage) Next() error
    func (page *NotificationListResponsePage) NextWithContext(ctx context.Context) (err error)
    func (page NotificationListResponsePage) NotDone() bool
    func (page NotificationListResponsePage) Response() NotificationListResponse
    func (page NotificationListResponsePage) Values() []UpgradeNotification
type Operation
type OperationDisplay
type OperationListResult
    func (olr OperationListResult) IsEmpty() bool
    func (olr OperationListResult) MarshalJSON() ([]byte, error)
type OperationListResultIterator
    func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator
    func (iter *OperationListResultIterator) Next() error
    func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter OperationListResultIterator) NotDone() bool
    func (iter OperationListResultIterator) Response() OperationListResult
    func (iter OperationListResultIterator) Value() Operation
type OperationListResultPage
    func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage
    func (page *OperationListResultPage) Next() error
    func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page OperationListResultPage) NotDone() bool
    func (page OperationListResultPage) Response() OperationListResult
    func (page OperationListResultPage) Values() []Operation
type OperationsClient
    func NewOperationsClient(subscriptionID string) OperationsClient
    func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
    func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
    func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
    func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
    func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
    func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
type PatchSchedule
    func (ps PatchSchedule) MarshalJSON() ([]byte, error)
    func (ps *PatchSchedule) UnmarshalJSON(body []byte) error
type PatchScheduleListResult
    func (pslr PatchScheduleListResult) IsEmpty() bool
    func (pslr PatchScheduleListResult) MarshalJSON() ([]byte, error)
type PatchScheduleListResultIterator
    func NewPatchScheduleListResultIterator(page PatchScheduleListResultPage) PatchScheduleListResultIterator
    func (iter *PatchScheduleListResultIterator) Next() error
    func (iter *PatchScheduleListResultIterator) NextWithContext(ctx context.Context) (err error)
    func (iter PatchScheduleListResultIterator) NotDone() bool
    func (iter PatchScheduleListResultIterator) Response() PatchScheduleListResult
    func (iter PatchScheduleListResultIterator) Value() PatchSchedule
type PatchScheduleListResultPage
    func NewPatchScheduleListResultPage(cur PatchScheduleListResult, getNextPage func(context.Context, PatchScheduleListResult) (PatchScheduleListResult, error)) PatchScheduleListResultPage
    func (page *PatchScheduleListResultPage) Next() error
    func (page *PatchScheduleListResultPage) NextWithContext(ctx context.Context) (err error)
    func (page PatchScheduleListResultPage) NotDone() bool
    func (page PatchScheduleListResultPage) Response() PatchScheduleListResult
    func (page PatchScheduleListResultPage) Values() []PatchSchedule
type PatchSchedulesClient
    func NewPatchSchedulesClient(subscriptionID string) PatchSchedulesClient
    func NewPatchSchedulesClientWithBaseURI(baseURI string, subscriptionID string) PatchSchedulesClient
    func (client PatchSchedulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, name string, parameters PatchSchedule) (result PatchSchedule, err error)
    func (client PatchSchedulesClient) CreateOrUpdatePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, name string) (result autorest.Response, err error)
    func (client PatchSchedulesClient) DeletePreparer(ctx context.Context, 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(ctx context.Context, resourceGroupName string, name string) (result PatchSchedule, err error)
    func (client PatchSchedulesClient) GetPreparer(ctx context.Context, 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)
    func (client PatchSchedulesClient) ListByRedisResource(ctx context.Context, resourceGroupName string, cacheName string) (result PatchScheduleListResultPage, err error)
    func (client PatchSchedulesClient) ListByRedisResourceComplete(ctx context.Context, resourceGroupName string, cacheName string) (result PatchScheduleListResultIterator, err error)
    func (client PatchSchedulesClient) ListByRedisResourcePreparer(ctx context.Context, resourceGroupName string, cacheName string) (*http.Request, error)
    func (client PatchSchedulesClient) ListByRedisResourceResponder(resp *http.Response) (result PatchScheduleListResult, err error)
    func (client PatchSchedulesClient) ListByRedisResourceSender(req *http.Request) (*http.Response, error)
type PrivateEndpoint
    func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error)
type PrivateEndpointConnection
    func (pec PrivateEndpointConnection) MarshalJSON() ([]byte, error)
    func (pec *PrivateEndpointConnection) UnmarshalJSON(body []byte) error
type PrivateEndpointConnectionListResult
type PrivateEndpointConnectionProperties
type PrivateEndpointConnectionProvisioningState
    func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState
type PrivateEndpointConnectionsClient
    func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient
    func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient
    func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string) (result autorest.Response, err error)
    func (client PrivateEndpointConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string) (*http.Request, error)
    func (client PrivateEndpointConnectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
    func (client PrivateEndpointConnectionsClient) DeleteSender(req *http.Request) (*http.Response, error)
    func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string) (result PrivateEndpointConnection, err error)
    func (client PrivateEndpointConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string) (*http.Request, error)
    func (client PrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result PrivateEndpointConnection, err error)
    func (client PrivateEndpointConnectionsClient) GetSender(req *http.Request) (*http.Response, error)
    func (client PrivateEndpointConnectionsClient) List(ctx context.Context, resourceGroupName string, cacheName string) (result PrivateEndpointConnectionListResult, err error)
    func (client PrivateEndpointConnectionsClient) ListPreparer(ctx context.Context, resourceGroupName string, cacheName string) (*http.Request, error)
    func (client PrivateEndpointConnectionsClient) ListResponder(resp *http.Response) (result PrivateEndpointConnectionListResult, err error)
    func (client PrivateEndpointConnectionsClient) ListSender(req *http.Request) (*http.Response, error)
    func (client PrivateEndpointConnectionsClient) Put(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string, properties PrivateEndpointConnection) (result PrivateEndpointConnectionsPutFuture, err error)
    func (client PrivateEndpointConnectionsClient) PutPreparer(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string, properties PrivateEndpointConnection) (*http.Request, error)
    func (client PrivateEndpointConnectionsClient) PutResponder(resp *http.Response) (result PrivateEndpointConnection, err error)
    func (client PrivateEndpointConnectionsClient) PutSender(req *http.Request) (future PrivateEndpointConnectionsPutFuture, err error)
type PrivateEndpointConnectionsPutFuture
    func (future *PrivateEndpointConnectionsPutFuture) UnmarshalJSON(body []byte) error
type PrivateEndpointServiceConnectionStatus
    func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus
type PrivateLinkResource
    func (plr PrivateLinkResource) MarshalJSON() ([]byte, error)
    func (plr *PrivateLinkResource) UnmarshalJSON(body []byte) error
type PrivateLinkResourceListResult
type PrivateLinkResourceProperties
    func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)
type PrivateLinkResourcesClient
    func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient
    func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient
    func (client PrivateLinkResourcesClient) ListByRedisCache(ctx context.Context, resourceGroupName string, cacheName string) (result PrivateLinkResourceListResult, err error)
    func (client PrivateLinkResourcesClient) ListByRedisCachePreparer(ctx context.Context, resourceGroupName string, cacheName string) (*http.Request, error)
    func (client PrivateLinkResourcesClient) ListByRedisCacheResponder(resp *http.Response) (result PrivateLinkResourceListResult, err error)
    func (client PrivateLinkResourcesClient) ListByRedisCacheSender(req *http.Request) (*http.Response, error)
type PrivateLinkServiceConnectionState
type Properties
    func (p Properties) MarshalJSON() ([]byte, error)
type ProvisioningState
    func PossibleProvisioningStateValues() []ProvisioningState
type ProxyResource
    func (pr ProxyResource) MarshalJSON() ([]byte, error)
type PublicNetworkAccess
    func PossiblePublicNetworkAccessValues() []PublicNetworkAccess
type RebootParameters
type RebootType
    func PossibleRebootTypeValues() []RebootType
type RegenerateKeyParameters
type ReplicationRole
    func PossibleReplicationRoleValues() []ReplicationRole
type Resource
    func (r Resource) MarshalJSON() ([]byte, error)
type ResourceType
    func (rt ResourceType) MarshalJSON() ([]byte, error)
    func (rt *ResourceType) UnmarshalJSON(body []byte) error
type ScheduleEntries
type ScheduleEntry
type Sku
type SkuFamily
    func PossibleSkuFamilyValues() []SkuFamily
type SkuName
    func PossibleSkuNameValues() []SkuName
type TLSVersion
    func PossibleTLSVersionValues() []TLSVersion
type TrackedResource
    func (tr TrackedResource) MarshalJSON() ([]byte, error)
type UpdateParameters
    func (up UpdateParameters) MarshalJSON() ([]byte, error)
    func (up *UpdateParameters) UnmarshalJSON(body []byte) error
type UpdateProperties
    func (up UpdateProperties) MarshalJSON() ([]byte, error)
type UpgradeNotification
    func (un UpgradeNotification) MarshalJSON() ([]byte, error)

Package files

client.go enums.go firewallrules.go linkedserver.go models.go operations.go patchschedules.go privateendpointconnections.go privatelinkresources.go redis.go version.go

Constants

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

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.

type AccessKeys

AccessKeys redis cache access keys.

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"`
}

func (AccessKeys) MarshalJSON

func (ak AccessKeys) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccessKeys.

type AzureEntityResource

AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag.

type AzureEntityResource struct {
    // Etag - READ-ONLY; Resource Etag.
    Etag *string `json:"etag,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (AzureEntityResource) MarshalJSON

func (aer AzureEntityResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AzureEntityResource.

type BaseClient

BaseClient is the base client for Redis.

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

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type CheckNameAvailabilityParameters

CheckNameAvailabilityParameters parameters body to pass for resource name availability check.

type CheckNameAvailabilityParameters struct {
    // Name - Resource name.
    Name *string `json:"name,omitempty"`
    // Type - Resource type. The only legal value of this property for checking redis cache name availability is 'Microsoft.Cache/redis'.
    Type *string `json:"type,omitempty"`
}

type Client

Client is the REST API for Azure Redis Cache Service.

type Client struct {
    BaseClient
}

func NewClient

func NewClient(subscriptionID string) Client

NewClient creates an instance of the Client client.

func NewClientWithBaseURI

func NewClientWithBaseURI(baseURI string, subscriptionID string) Client

NewClientWithBaseURI creates an instance of the Client client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (Client) CheckNameAvailability

func (client Client) CheckNameAvailability(ctx context.Context, parameters CheckNameAvailabilityParameters) (result autorest.Response, err error)

CheckNameAvailability checks that the redis cache name is valid and is not already in use. Parameters: parameters - parameters supplied to the CheckNameAvailability Redis operation. The only supported resource type is 'Microsoft.Cache/redis'

func (Client) CheckNameAvailabilityPreparer

func (client Client) CheckNameAvailabilityPreparer(ctx context.Context, parameters CheckNameAvailabilityParameters) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (Client) CheckNameAvailabilityResponder

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

CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.

func (Client) CheckNameAvailabilitySender

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

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

func (Client) Create

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

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

CreatePreparer prepares the Create request.

func (Client) CreateResponder

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

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

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

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

DeletePreparer prepares the Delete request.

func (Client) DeleteResponder

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

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

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

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

ExportDataPreparer prepares the ExportData request.

func (Client) ExportDataResponder

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

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

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

func (client Client) ForceRebootPreparer(ctx context.Context, 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 ForceRebootResponse, err error)

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

func (Client) ForceRebootSender

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

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

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

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

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

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

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

ImportDataPreparer prepares the ImportData request.

func (Client) ImportDataResponder

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

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) ListByResourceGroup

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

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

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

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

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) ListBySubscription

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

ListBySubscription gets all Redis caches in the specified subscription.

func (Client) ListBySubscriptionComplete

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

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

func (Client) ListBySubscriptionPreparer

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (Client) ListBySubscriptionResponder

func (client Client) ListBySubscriptionResponder(resp *http.Response) (result ListResult, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (Client) ListBySubscriptionSender

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

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

func (Client) ListKeys

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

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

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

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) ListUpgradeNotifications

func (client Client) ListUpgradeNotifications(ctx context.Context, resourceGroupName string, name string, history float64) (result NotificationListResponsePage, err error)

ListUpgradeNotifications gets any upgrade notifications for a Redis cache. Parameters: resourceGroupName - the name of the resource group. name - the name of the Redis cache. history - how many minutes in past to look for upgrade notifications

func (Client) ListUpgradeNotificationsComplete

func (client Client) ListUpgradeNotificationsComplete(ctx context.Context, resourceGroupName string, name string, history float64) (result NotificationListResponseIterator, err error)

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

func (Client) ListUpgradeNotificationsPreparer

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

ListUpgradeNotificationsPreparer prepares the ListUpgradeNotifications request.

func (Client) ListUpgradeNotificationsResponder

func (client Client) ListUpgradeNotificationsResponder(resp *http.Response) (result NotificationListResponse, err error)

ListUpgradeNotificationsResponder handles the response to the ListUpgradeNotifications request. The method always closes the http.Response Body.

func (Client) ListUpgradeNotificationsSender

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

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

func (Client) RegenerateKey

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

func (client Client) RegenerateKeyPreparer(ctx context.Context, 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

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

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

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

UpdatePreparer prepares the Update request.

func (Client) UpdateResponder

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

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 CommonProperties

CommonProperties create/Update/Get common properties of the redis cache.

type CommonProperties 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"`
    // RedisVersion - Redis version. Only major version will be used in PUT/PATCH request with current valid values: (4, 6)
    RedisVersion *string `json:"redisVersion,omitempty"`
    // EnableNonSslPort - Specifies whether the non-ssl Redis server port (6379) is enabled.
    EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"`
    // ReplicasPerMaster - The number of replicas to be created per primary.
    ReplicasPerMaster *int32 `json:"replicasPerMaster,omitempty"`
    // ReplicasPerPrimary - The number of replicas to be created per primary.
    ReplicasPerPrimary *int32 `json:"replicasPerPrimary,omitempty"`
    // TenantSettings - A dictionary of tenant settings
    TenantSettings map[string]*string `json:"tenantSettings"`
    // ShardCount - The number of shards to be created on a Premium Cluster Cache.
    ShardCount *int32 `json:"shardCount,omitempty"`
    // MinimumTLSVersion - Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). Possible values include: 'TLSVersionOneFullStopZero', 'TLSVersionOneFullStopOne', 'TLSVersionOneFullStopTwo'
    MinimumTLSVersion TLSVersion `json:"minimumTlsVersion,omitempty"`
    // PublicNetworkAccess - Whether or not public endpoint access is allowed for this cache.  Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'. Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled'
    PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"`
}

func (CommonProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for CommonProperties.

type CreateFuture

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

type CreateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(Client) (ResourceType, error)
}

func (*CreateFuture) UnmarshalJSON

func (future *CreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type CreateParameters

CreateParameters parameters supplied to the Create Redis operation.

type CreateParameters struct {
    // CreateProperties - Redis cache properties.
    *CreateProperties `json:"properties,omitempty"`
    // Zones - A list of availability zones denoting where the resource needs to come from.
    Zones *[]string `json:"zones,omitempty"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
}

func (CreateParameters) MarshalJSON

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

MarshalJSON is the custom marshaler for CreateParameters.

func (*CreateParameters) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for CreateParameters struct.

type CreateProperties

CreateProperties properties supplied to Create Redis operation.

type CreateProperties struct {
    // Sku - The SKU of the Redis cache to deploy.
    Sku *Sku `json:"sku,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"`
    // 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"`
    // RedisVersion - Redis version. Only major version will be used in PUT/PATCH request with current valid values: (4, 6)
    RedisVersion *string `json:"redisVersion,omitempty"`
    // EnableNonSslPort - Specifies whether the non-ssl Redis server port (6379) is enabled.
    EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"`
    // ReplicasPerMaster - The number of replicas to be created per primary.
    ReplicasPerMaster *int32 `json:"replicasPerMaster,omitempty"`
    // ReplicasPerPrimary - The number of replicas to be created per primary.
    ReplicasPerPrimary *int32 `json:"replicasPerPrimary,omitempty"`
    // TenantSettings - A dictionary of tenant settings
    TenantSettings map[string]*string `json:"tenantSettings"`
    // ShardCount - The number of shards to be created on a Premium Cluster Cache.
    ShardCount *int32 `json:"shardCount,omitempty"`
    // MinimumTLSVersion - Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). Possible values include: 'TLSVersionOneFullStopZero', 'TLSVersionOneFullStopOne', 'TLSVersionOneFullStopTwo'
    MinimumTLSVersion TLSVersion `json:"minimumTlsVersion,omitempty"`
    // PublicNetworkAccess - Whether or not public endpoint access is allowed for this cache.  Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'. Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled'
    PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"`
}

func (CreateProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for CreateProperties.

type DayOfWeek

DayOfWeek enumerates the values for day of week.

type DayOfWeek string
const (
    // DayOfWeekEveryday ...
    DayOfWeekEveryday DayOfWeek = "Everyday"
    // DayOfWeekFriday ...
    DayOfWeekFriday DayOfWeek = "Friday"
    // DayOfWeekMonday ...
    DayOfWeekMonday DayOfWeek = "Monday"
    // DayOfWeekSaturday ...
    DayOfWeekSaturday DayOfWeek = "Saturday"
    // DayOfWeekSunday ...
    DayOfWeekSunday DayOfWeek = "Sunday"
    // DayOfWeekThursday ...
    DayOfWeekThursday DayOfWeek = "Thursday"
    // DayOfWeekTuesday ...
    DayOfWeekTuesday DayOfWeek = "Tuesday"
    // DayOfWeekWednesday ...
    DayOfWeekWednesday DayOfWeek = "Wednesday"
    // DayOfWeekWeekend ...
    DayOfWeekWeekend DayOfWeek = "Weekend"
)

func PossibleDayOfWeekValues

func PossibleDayOfWeekValues() []DayOfWeek

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

type DeleteFuture

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

type DeleteFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(Client) (autorest.Response, error)
}

func (*DeleteFuture) UnmarshalJSON

func (future *DeleteFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ErrorAdditionalInfo

ErrorAdditionalInfo the resource management error additional info.

type ErrorAdditionalInfo struct {
    // Type - READ-ONLY; The additional info type.
    Type *string `json:"type,omitempty"`
    // Info - READ-ONLY; The additional info.
    Info interface{} `json:"info,omitempty"`
}

func (ErrorAdditionalInfo) MarshalJSON

func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorAdditionalInfo.

type ErrorDetail

ErrorDetail the error detail.

type ErrorDetail struct {
    // Code - READ-ONLY; The error code.
    Code *string `json:"code,omitempty"`
    // Message - READ-ONLY; The error message.
    Message *string `json:"message,omitempty"`
    // Target - READ-ONLY; The error target.
    Target *string `json:"target,omitempty"`
    // Details - READ-ONLY; The error details.
    Details *[]ErrorDetail `json:"details,omitempty"`
    // AdditionalInfo - READ-ONLY; The error additional info.
    AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"`
}

func (ErrorDetail) MarshalJSON

func (ed ErrorDetail) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorDetail.

type ErrorResponse

ErrorResponse common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).

type ErrorResponse struct {
    // Error - The error object.
    Error *ErrorDetail `json:"error,omitempty"`
}

type ExportDataFuture

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

type ExportDataFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(Client) (autorest.Response, error)
}

func (*ExportDataFuture) UnmarshalJSON

func (future *ExportDataFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ExportRDBParameters

ExportRDBParameters parameters for Redis export operation.

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"`
}

type FirewallRule

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

type FirewallRule struct {
    autorest.Response `json:"-"`
    // FirewallRuleProperties - redis cache firewall rule properties
    *FirewallRuleProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (FirewallRule) MarshalJSON

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

MarshalJSON is the custom marshaler for FirewallRule.

func (*FirewallRule) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for FirewallRule struct.

type FirewallRuleCreateParameters

FirewallRuleCreateParameters parameters required for creating a firewall rule on redis cache. (Note, you can just use the FirewallRule type instead now.)

type FirewallRuleCreateParameters struct {
    // FirewallRuleProperties - redis cache firewall rule properties
    *FirewallRuleProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (FirewallRuleCreateParameters) MarshalJSON

func (frcp FirewallRuleCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FirewallRuleCreateParameters.

func (*FirewallRuleCreateParameters) UnmarshalJSON

func (frcp *FirewallRuleCreateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for FirewallRuleCreateParameters struct.

type FirewallRuleListResult

FirewallRuleListResult the response of list firewall rules Redis operation.

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

func (FirewallRuleListResult) IsEmpty

func (frlr FirewallRuleListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (FirewallRuleListResult) MarshalJSON

func (frlr FirewallRuleListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FirewallRuleListResult.

type FirewallRuleListResultIterator

FirewallRuleListResultIterator provides access to a complete listing of FirewallRule values.

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

func NewFirewallRuleListResultIterator

func NewFirewallRuleListResultIterator(page FirewallRuleListResultPage) FirewallRuleListResultIterator

Creates a new instance of the FirewallRuleListResultIterator type.

func (*FirewallRuleListResultIterator) Next

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

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

func (iter FirewallRuleListResultIterator) NotDone() bool

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

func (FirewallRuleListResultIterator) Response

func (iter FirewallRuleListResultIterator) Response() FirewallRuleListResult

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

func (FirewallRuleListResultIterator) Value

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

FirewallRuleListResultPage contains a page of FirewallRule values.

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

func NewFirewallRuleListResultPage

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

Creates a new instance of the FirewallRuleListResultPage type.

func (*FirewallRuleListResultPage) Next

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

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

func (page FirewallRuleListResultPage) NotDone() bool

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

func (FirewallRuleListResultPage) Response

func (page FirewallRuleListResultPage) Response() FirewallRuleListResult

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

func (FirewallRuleListResultPage) Values

func (page FirewallRuleListResultPage) Values() []FirewallRule

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

type FirewallRuleProperties

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

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"`
}

type FirewallRulesClient

FirewallRulesClient is the REST API for Azure Redis Cache Service.

type FirewallRulesClient struct {
    BaseClient
}

func NewFirewallRulesClient

func NewFirewallRulesClient(subscriptionID string) FirewallRulesClient

NewFirewallRulesClient creates an instance of the FirewallRulesClient client.

func NewFirewallRulesClientWithBaseURI

func NewFirewallRulesClientWithBaseURI(baseURI string, subscriptionID string) FirewallRulesClient

NewFirewallRulesClientWithBaseURI creates an instance of the FirewallRulesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (FirewallRulesClient) CreateOrUpdate

func (client FirewallRulesClient) 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 (FirewallRulesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (FirewallRulesClient) CreateOrUpdateResponder

func (client FirewallRulesClient) 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 (FirewallRulesClient) CreateOrUpdateSender

func (client FirewallRulesClient) 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 (FirewallRulesClient) Delete

func (client FirewallRulesClient) 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 (FirewallRulesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (FirewallRulesClient) DeleteResponder

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

func (client FirewallRulesClient) 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 (FirewallRulesClient) Get

func (client FirewallRulesClient) 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 (FirewallRulesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (FirewallRulesClient) GetResponder

func (client FirewallRulesClient) 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 (FirewallRulesClient) GetSender

func (client FirewallRulesClient) 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 (FirewallRulesClient) List

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

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

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

ListPreparer prepares the List request.

func (FirewallRulesClient) ListResponder

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

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

ForceRebootResponse response to force reboot for Redis cache.

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

func (ForceRebootResponse) MarshalJSON

func (frr ForceRebootResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ForceRebootResponse.

type ImportDataFuture

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

type ImportDataFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(Client) (autorest.Response, error)
}

func (*ImportDataFuture) UnmarshalJSON

func (future *ImportDataFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type ImportRDBParameters

ImportRDBParameters parameters for Redis import operation.

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

type InstanceDetails

InstanceDetails details of single instance of redis.

type InstanceDetails struct {
    // SslPort - READ-ONLY; Redis instance SSL port.
    SslPort *int32 `json:"sslPort,omitempty"`
    // NonSslPort - READ-ONLY; If enableNonSslPort is true, provides Redis instance Non-SSL port.
    NonSslPort *int32 `json:"nonSslPort,omitempty"`
    // Zone - READ-ONLY; If the Cache uses availability zones, specifies availability zone where this instance is located.
    Zone *string `json:"zone,omitempty"`
    // ShardID - READ-ONLY; If clustering is enabled, the Shard ID of Redis Instance
    ShardID *int32 `json:"shardId,omitempty"`
    // IsMaster - READ-ONLY; Specifies whether the instance is a primary node.
    IsMaster *bool `json:"isMaster,omitempty"`
    // IsPrimary - READ-ONLY; Specifies whether the instance is a primary node.
    IsPrimary *bool `json:"isPrimary,omitempty"`
}

func (InstanceDetails) MarshalJSON

func (ID InstanceDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InstanceDetails.

type KeyType

KeyType enumerates the values for key type.

type KeyType string
const (
    // KeyTypePrimary ...
    KeyTypePrimary KeyType = "Primary"
    // KeyTypeSecondary ...
    KeyTypeSecondary KeyType = "Secondary"
)

func PossibleKeyTypeValues

func PossibleKeyTypeValues() []KeyType

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

type LinkedServer

LinkedServer linked server Id

type LinkedServer struct {
    // ID - READ-ONLY; Linked server Id.
    ID *string `json:"id,omitempty"`
}

func (LinkedServer) MarshalJSON

func (ls LinkedServer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LinkedServer.

type LinkedServerClient

LinkedServerClient is the REST API for Azure Redis Cache Service.

type LinkedServerClient struct {
    BaseClient
}

func NewLinkedServerClient

func NewLinkedServerClient(subscriptionID string) LinkedServerClient

NewLinkedServerClient creates an instance of the LinkedServerClient client.

func NewLinkedServerClientWithBaseURI

func NewLinkedServerClientWithBaseURI(baseURI string, subscriptionID string) LinkedServerClient

NewLinkedServerClientWithBaseURI creates an instance of the LinkedServerClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (LinkedServerClient) Create

func (client LinkedServerClient) Create(ctx context.Context, resourceGroupName string, name string, linkedServerName string, parameters LinkedServerCreateParameters) (result LinkedServerCreateFuture, err error)

Create adds a linked server to the Redis cache (requires Premium SKU). Parameters: resourceGroupName - the name of the resource group. name - the name of the Redis cache. linkedServerName - the name of the linked server that is being added to the Redis cache. parameters - parameters supplied to the Create Linked server operation.

func (LinkedServerClient) CreatePreparer

func (client LinkedServerClient) CreatePreparer(ctx context.Context, resourceGroupName string, name string, linkedServerName string, parameters LinkedServerCreateParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (LinkedServerClient) CreateResponder

func (client LinkedServerClient) CreateResponder(resp *http.Response) (result LinkedServerWithProperties, err error)

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

func (LinkedServerClient) CreateSender

func (client LinkedServerClient) CreateSender(req *http.Request) (future LinkedServerCreateFuture, err error)

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

func (LinkedServerClient) Delete

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

Delete deletes the linked server from a redis cache (requires Premium SKU). Parameters: resourceGroupName - the name of the resource group. name - the name of the redis cache. linkedServerName - the name of the linked server that is being added to the Redis cache.

func (LinkedServerClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (LinkedServerClient) DeleteResponder

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

func (client LinkedServerClient) 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 (LinkedServerClient) Get

func (client LinkedServerClient) Get(ctx context.Context, resourceGroupName string, name string, linkedServerName string) (result LinkedServerWithProperties, err error)

Get gets the detailed information about a linked server of a redis cache (requires Premium SKU). Parameters: resourceGroupName - the name of the resource group. name - the name of the redis cache. linkedServerName - the name of the linked server.

func (LinkedServerClient) GetPreparer

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

GetPreparer prepares the Get request.

func (LinkedServerClient) GetResponder

func (client LinkedServerClient) GetResponder(resp *http.Response) (result LinkedServerWithProperties, err error)

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

func (LinkedServerClient) GetSender

func (client LinkedServerClient) 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 (LinkedServerClient) List

func (client LinkedServerClient) List(ctx context.Context, resourceGroupName string, name string) (result LinkedServerWithPropertiesListPage, err error)

List gets the list of linked servers associated with this redis cache (requires Premium SKU). Parameters: resourceGroupName - the name of the resource group. name - the name of the redis cache.

func (LinkedServerClient) ListComplete

func (client LinkedServerClient) ListComplete(ctx context.Context, resourceGroupName string, name string) (result LinkedServerWithPropertiesListIterator, err error)

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

func (LinkedServerClient) ListPreparer

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

ListPreparer prepares the List request.

func (LinkedServerClient) ListResponder

func (client LinkedServerClient) ListResponder(resp *http.Response) (result LinkedServerWithPropertiesList, err error)

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

func (LinkedServerClient) ListSender

func (client LinkedServerClient) 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 LinkedServerCreateFuture

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

type LinkedServerCreateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(LinkedServerClient) (LinkedServerWithProperties, error)
}

func (*LinkedServerCreateFuture) UnmarshalJSON

func (future *LinkedServerCreateFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type LinkedServerCreateParameters

LinkedServerCreateParameters parameter required for creating a linked server to redis cache.

type LinkedServerCreateParameters struct {
    // LinkedServerCreateProperties - Properties required to create a linked server.
    *LinkedServerCreateProperties `json:"properties,omitempty"`
}

func (LinkedServerCreateParameters) MarshalJSON

func (lscp LinkedServerCreateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LinkedServerCreateParameters.

func (*LinkedServerCreateParameters) UnmarshalJSON

func (lscp *LinkedServerCreateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LinkedServerCreateParameters struct.

type LinkedServerCreateProperties

LinkedServerCreateProperties create properties for a linked server

type LinkedServerCreateProperties struct {
    // LinkedRedisCacheID - Fully qualified resourceId of the linked redis cache.
    LinkedRedisCacheID *string `json:"linkedRedisCacheId,omitempty"`
    // LinkedRedisCacheLocation - Location of the linked redis cache.
    LinkedRedisCacheLocation *string `json:"linkedRedisCacheLocation,omitempty"`
    // ServerRole - Role of the linked server. Possible values include: 'ReplicationRolePrimary', 'ReplicationRoleSecondary'
    ServerRole ReplicationRole `json:"serverRole,omitempty"`
}

type LinkedServerProperties

LinkedServerProperties properties of a linked server to be returned in get/put response

type LinkedServerProperties struct {
    // ProvisioningState - READ-ONLY; Terminal state of the link between primary and secondary redis cache.
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // LinkedRedisCacheID - Fully qualified resourceId of the linked redis cache.
    LinkedRedisCacheID *string `json:"linkedRedisCacheId,omitempty"`
    // LinkedRedisCacheLocation - Location of the linked redis cache.
    LinkedRedisCacheLocation *string `json:"linkedRedisCacheLocation,omitempty"`
    // ServerRole - Role of the linked server. Possible values include: 'ReplicationRolePrimary', 'ReplicationRoleSecondary'
    ServerRole ReplicationRole `json:"serverRole,omitempty"`
}

func (LinkedServerProperties) MarshalJSON

func (lsp LinkedServerProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LinkedServerProperties.

type LinkedServerWithProperties

LinkedServerWithProperties response to put/get linked server (with properties) for Redis cache.

type LinkedServerWithProperties struct {
    autorest.Response `json:"-"`
    // LinkedServerProperties - Properties of the linked server.
    *LinkedServerProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (LinkedServerWithProperties) MarshalJSON

func (lswp LinkedServerWithProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LinkedServerWithProperties.

func (*LinkedServerWithProperties) UnmarshalJSON

func (lswp *LinkedServerWithProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LinkedServerWithProperties struct.

type LinkedServerWithPropertiesList

LinkedServerWithPropertiesList list of linked servers (with properties) of a Redis cache.

type LinkedServerWithPropertiesList struct {
    autorest.Response `json:"-"`
    // Value - List of linked servers (with properties) of a Redis cache.
    Value *[]LinkedServerWithProperties `json:"value,omitempty"`
    // NextLink - READ-ONLY; Link for next set.
    NextLink *string `json:"nextLink,omitempty"`
}

func (LinkedServerWithPropertiesList) IsEmpty

func (lswpl LinkedServerWithPropertiesList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (LinkedServerWithPropertiesList) MarshalJSON

func (lswpl LinkedServerWithPropertiesList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LinkedServerWithPropertiesList.

type LinkedServerWithPropertiesListIterator

LinkedServerWithPropertiesListIterator provides access to a complete listing of LinkedServerWithProperties values.

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

func NewLinkedServerWithPropertiesListIterator

func NewLinkedServerWithPropertiesListIterator(page LinkedServerWithPropertiesListPage) LinkedServerWithPropertiesListIterator

Creates a new instance of the LinkedServerWithPropertiesListIterator type.

func (*LinkedServerWithPropertiesListIterator) Next

func (iter *LinkedServerWithPropertiesListIterator) 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 (*LinkedServerWithPropertiesListIterator) NextWithContext

func (iter *LinkedServerWithPropertiesListIterator) 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 (LinkedServerWithPropertiesListIterator) NotDone

func (iter LinkedServerWithPropertiesListIterator) NotDone() bool

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

func (LinkedServerWithPropertiesListIterator) Response

func (iter LinkedServerWithPropertiesListIterator) Response() LinkedServerWithPropertiesList

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

func (LinkedServerWithPropertiesListIterator) Value

func (iter LinkedServerWithPropertiesListIterator) Value() LinkedServerWithProperties

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

type LinkedServerWithPropertiesListPage

LinkedServerWithPropertiesListPage contains a page of LinkedServerWithProperties values.

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

func NewLinkedServerWithPropertiesListPage

func NewLinkedServerWithPropertiesListPage(cur LinkedServerWithPropertiesList, getNextPage func(context.Context, LinkedServerWithPropertiesList) (LinkedServerWithPropertiesList, error)) LinkedServerWithPropertiesListPage

Creates a new instance of the LinkedServerWithPropertiesListPage type.

func (*LinkedServerWithPropertiesListPage) Next

func (page *LinkedServerWithPropertiesListPage) 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 (*LinkedServerWithPropertiesListPage) NextWithContext

func (page *LinkedServerWithPropertiesListPage) 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 (LinkedServerWithPropertiesListPage) NotDone

func (page LinkedServerWithPropertiesListPage) NotDone() bool

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

func (LinkedServerWithPropertiesListPage) Response

func (page LinkedServerWithPropertiesListPage) Response() LinkedServerWithPropertiesList

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

func (LinkedServerWithPropertiesListPage) Values

func (page LinkedServerWithPropertiesListPage) Values() []LinkedServerWithProperties

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

type ListResult

ListResult the response of list Redis operation.

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

func (ListResult) IsEmpty

func (lr ListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (ListResult) MarshalJSON

func (lr ListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ListResult.

type ListResultIterator

ListResultIterator provides access to a complete listing of ResourceType values.

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

func NewListResultIterator

func NewListResultIterator(page ListResultPage) ListResultIterator

Creates a new instance of the ListResultIterator type.

func (*ListResultIterator) Next

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

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

func (iter ListResultIterator) NotDone() bool

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

func (ListResultIterator) Response

func (iter ListResultIterator) Response() ListResult

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

func (ListResultIterator) Value

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

ListResultPage contains a page of ResourceType values.

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

func NewListResultPage

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

Creates a new instance of the ListResultPage type.

func (*ListResultPage) Next

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

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

func (page ListResultPage) NotDone() bool

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

func (ListResultPage) Response

func (page ListResultPage) Response() ListResult

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

func (ListResultPage) Values

func (page ListResultPage) Values() []ResourceType

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

type NotificationListResponse

NotificationListResponse the response of listUpgradeNotifications.

type NotificationListResponse struct {
    autorest.Response `json:"-"`
    // Value - List of all notifications.
    Value *[]UpgradeNotification `json:"value,omitempty"`
    // NextLink - READ-ONLY; Link for next set of notifications.
    NextLink *string `json:"nextLink,omitempty"`
}

func (NotificationListResponse) IsEmpty

func (nlr NotificationListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (NotificationListResponse) MarshalJSON

func (nlr NotificationListResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NotificationListResponse.

type NotificationListResponseIterator

NotificationListResponseIterator provides access to a complete listing of UpgradeNotification values.

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

func NewNotificationListResponseIterator

func NewNotificationListResponseIterator(page NotificationListResponsePage) NotificationListResponseIterator

Creates a new instance of the NotificationListResponseIterator type.

func (*NotificationListResponseIterator) Next

func (iter *NotificationListResponseIterator) 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 (*NotificationListResponseIterator) NextWithContext

func (iter *NotificationListResponseIterator) 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 (NotificationListResponseIterator) NotDone

func (iter NotificationListResponseIterator) NotDone() bool

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

func (NotificationListResponseIterator) Response

func (iter NotificationListResponseIterator) Response() NotificationListResponse

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

func (NotificationListResponseIterator) Value

func (iter NotificationListResponseIterator) Value() UpgradeNotification

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

type NotificationListResponsePage

NotificationListResponsePage contains a page of UpgradeNotification values.

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

func NewNotificationListResponsePage

func NewNotificationListResponsePage(cur NotificationListResponse, getNextPage func(context.Context, NotificationListResponse) (NotificationListResponse, error)) NotificationListResponsePage

Creates a new instance of the NotificationListResponsePage type.

func (*NotificationListResponsePage) Next

func (page *NotificationListResponsePage) 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 (*NotificationListResponsePage) NextWithContext

func (page *NotificationListResponsePage) 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 (NotificationListResponsePage) NotDone

func (page NotificationListResponsePage) NotDone() bool

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

func (NotificationListResponsePage) Response

func (page NotificationListResponsePage) Response() NotificationListResponse

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

func (NotificationListResponsePage) Values

func (page NotificationListResponsePage) Values() []UpgradeNotification

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

type Operation

Operation REST API operation

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"`
}

type OperationDisplay

OperationDisplay the object that describes the operation.

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"`
}

type OperationListResult

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.

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

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (OperationListResult) MarshalJSON

func (olr OperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationListResult.

type OperationListResultIterator

OperationListResultIterator provides access to a complete listing of Operation values.

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

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

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

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

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response

func (iter OperationListResultIterator) Response() OperationListResult

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

func (OperationListResultIterator) Value

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

OperationListResultPage contains a page of Operation values.

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

func NewOperationListResultPage

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

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

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

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

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response

func (page OperationListResultPage) Response() OperationListResult

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

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []Operation

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

type OperationsClient

OperationsClient is the REST API for Azure Redis Cache Service.

type OperationsClient struct {
    BaseClient
}

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

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

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

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

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

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

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

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

type PatchSchedule struct {
    autorest.Response `json:"-"`
    // ScheduleEntries - List of patch schedules for a Redis cache.
    *ScheduleEntries `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (PatchSchedule) MarshalJSON

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

MarshalJSON is the custom marshaler for PatchSchedule.

func (*PatchSchedule) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for PatchSchedule struct.

type PatchScheduleListResult

PatchScheduleListResult the response of list patch schedules Redis operation.

type PatchScheduleListResult struct {
    autorest.Response `json:"-"`
    // Value - Results of the list patch schedules operation.
    Value *[]PatchSchedule `json:"value,omitempty"`
    // NextLink - READ-ONLY; Link for next page of results.
    NextLink *string `json:"nextLink,omitempty"`
}

func (PatchScheduleListResult) IsEmpty

func (pslr PatchScheduleListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (PatchScheduleListResult) MarshalJSON

func (pslr PatchScheduleListResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PatchScheduleListResult.

type PatchScheduleListResultIterator

PatchScheduleListResultIterator provides access to a complete listing of PatchSchedule values.

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

func NewPatchScheduleListResultIterator

func NewPatchScheduleListResultIterator(page PatchScheduleListResultPage) PatchScheduleListResultIterator

Creates a new instance of the PatchScheduleListResultIterator type.

func (*PatchScheduleListResultIterator) Next

func (iter *PatchScheduleListResultIterator) 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 (*PatchScheduleListResultIterator) NextWithContext

func (iter *PatchScheduleListResultIterator) 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 (PatchScheduleListResultIterator) NotDone

func (iter PatchScheduleListResultIterator) NotDone() bool

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

func (PatchScheduleListResultIterator) Response

func (iter PatchScheduleListResultIterator) Response() PatchScheduleListResult

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

func (PatchScheduleListResultIterator) Value

func (iter PatchScheduleListResultIterator) Value() PatchSchedule

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

type PatchScheduleListResultPage

PatchScheduleListResultPage contains a page of PatchSchedule values.

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

func NewPatchScheduleListResultPage

func NewPatchScheduleListResultPage(cur PatchScheduleListResult, getNextPage func(context.Context, PatchScheduleListResult) (PatchScheduleListResult, error)) PatchScheduleListResultPage

Creates a new instance of the PatchScheduleListResultPage type.

func (*PatchScheduleListResultPage) Next

func (page *PatchScheduleListResultPage) 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 (*PatchScheduleListResultPage) NextWithContext

func (page *PatchScheduleListResultPage) 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 (PatchScheduleListResultPage) NotDone

func (page PatchScheduleListResultPage) NotDone() bool

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

func (PatchScheduleListResultPage) Response

func (page PatchScheduleListResultPage) Response() PatchScheduleListResult

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

func (PatchScheduleListResultPage) Values

func (page PatchScheduleListResultPage) Values() []PatchSchedule

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

type PatchSchedulesClient

PatchSchedulesClient is the REST API for Azure Redis Cache Service.

type PatchSchedulesClient struct {
    BaseClient
}

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PatchSchedulesClient) CreateOrUpdate

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. 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

func (client PatchSchedulesClient) CreateOrUpdatePreparer(ctx context.Context, 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

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

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. Parameters: resourceGroupName - the name of the resource group. name - the name of the redis cache.

func (PatchSchedulesClient) DeletePreparer

func (client PatchSchedulesClient) DeletePreparer(ctx context.Context, 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

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

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

Get gets the patching schedule of a redis cache. Parameters: resourceGroupName - the name of the resource group. name - the name of the redis cache.

func (PatchSchedulesClient) GetPreparer

func (client PatchSchedulesClient) GetPreparer(ctx context.Context, 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.

func (PatchSchedulesClient) GetSender

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.

func (PatchSchedulesClient) ListByRedisResource

func (client PatchSchedulesClient) ListByRedisResource(ctx context.Context, resourceGroupName string, cacheName string) (result PatchScheduleListResultPage, err error)

ListByRedisResource gets all patch schedules in the specified redis cache (there is only one). Parameters: resourceGroupName - the name of the resource group. cacheName - the name of the Redis cache.

func (PatchSchedulesClient) ListByRedisResourceComplete

func (client PatchSchedulesClient) ListByRedisResourceComplete(ctx context.Context, resourceGroupName string, cacheName string) (result PatchScheduleListResultIterator, err error)

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

func (PatchSchedulesClient) ListByRedisResourcePreparer

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

ListByRedisResourcePreparer prepares the ListByRedisResource request.

func (PatchSchedulesClient) ListByRedisResourceResponder

func (client PatchSchedulesClient) ListByRedisResourceResponder(resp *http.Response) (result PatchScheduleListResult, err error)

ListByRedisResourceResponder handles the response to the ListByRedisResource request. The method always closes the http.Response Body.

func (PatchSchedulesClient) ListByRedisResourceSender

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

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

type PrivateEndpoint

PrivateEndpoint the Private Endpoint resource.

type PrivateEndpoint struct {
    // ID - READ-ONLY; The ARM identifier for Private Endpoint
    ID *string `json:"id,omitempty"`
}

func (PrivateEndpoint) MarshalJSON

func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PrivateEndpoint.

type PrivateEndpointConnection

PrivateEndpointConnection the Private Endpoint Connection resource.

type PrivateEndpointConnection struct {
    autorest.Response `json:"-"`
    // PrivateEndpointConnectionProperties - Resource properties.
    *PrivateEndpointConnectionProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (PrivateEndpointConnection) MarshalJSON

func (pec PrivateEndpointConnection) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PrivateEndpointConnection.

func (*PrivateEndpointConnection) UnmarshalJSON

func (pec *PrivateEndpointConnection) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PrivateEndpointConnection struct.

type PrivateEndpointConnectionListResult

PrivateEndpointConnectionListResult list of private endpoint connection associated with the specified storage account

type PrivateEndpointConnectionListResult struct {
    autorest.Response `json:"-"`
    // Value - Array of private endpoint connections
    Value *[]PrivateEndpointConnection `json:"value,omitempty"`
}

type PrivateEndpointConnectionProperties

PrivateEndpointConnectionProperties properties of the PrivateEndpointConnectProperties.

type PrivateEndpointConnectionProperties struct {
    // PrivateEndpoint - The resource of private end point.
    PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"`
    // PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider.
    PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"`
    // ProvisioningState - The provisioning state of the private endpoint connection resource. Possible values include: 'PrivateEndpointConnectionProvisioningStateSucceeded', 'PrivateEndpointConnectionProvisioningStateCreating', 'PrivateEndpointConnectionProvisioningStateDeleting', 'PrivateEndpointConnectionProvisioningStateFailed'
    ProvisioningState PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"`
}

type PrivateEndpointConnectionProvisioningState

PrivateEndpointConnectionProvisioningState enumerates the values for private endpoint connection provisioning state.

type PrivateEndpointConnectionProvisioningState string
const (
    // PrivateEndpointConnectionProvisioningStateCreating ...
    PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating"
    // PrivateEndpointConnectionProvisioningStateDeleting ...
    PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting"
    // PrivateEndpointConnectionProvisioningStateFailed ...
    PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed"
    // PrivateEndpointConnectionProvisioningStateSucceeded ...
    PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded"
)

func PossiblePrivateEndpointConnectionProvisioningStateValues

func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState

PossiblePrivateEndpointConnectionProvisioningStateValues returns an array of possible values for the PrivateEndpointConnectionProvisioningState const type.

type PrivateEndpointConnectionsClient

PrivateEndpointConnectionsClient is the REST API for Azure Redis Cache Service.

type PrivateEndpointConnectionsClient struct {
    BaseClient
}

func NewPrivateEndpointConnectionsClient

func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient

NewPrivateEndpointConnectionsClient creates an instance of the PrivateEndpointConnectionsClient client.

func NewPrivateEndpointConnectionsClientWithBaseURI

func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient

NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PrivateEndpointConnectionsClient) Delete

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

Delete deletes the specified private endpoint connection associated with the redis cache. Parameters: resourceGroupName - the name of the resource group. cacheName - the name of the Redis cache. privateEndpointConnectionName - the name of the private endpoint connection associated with the Azure resource

func (PrivateEndpointConnectionsClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (PrivateEndpointConnectionsClient) DeleteResponder

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

func (client PrivateEndpointConnectionsClient) 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 (PrivateEndpointConnectionsClient) Get

func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string) (result PrivateEndpointConnection, err error)

Get gets the specified private endpoint connection associated with the redis cache. Parameters: resourceGroupName - the name of the resource group. cacheName - the name of the Redis cache. privateEndpointConnectionName - the name of the private endpoint connection associated with the Azure resource

func (PrivateEndpointConnectionsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (PrivateEndpointConnectionsClient) GetResponder

func (client PrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result PrivateEndpointConnection, err error)

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

func (PrivateEndpointConnectionsClient) GetSender

func (client PrivateEndpointConnectionsClient) 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 (PrivateEndpointConnectionsClient) List

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

List list all the private endpoint connections associated with the redis cache. Parameters: resourceGroupName - the name of the resource group. cacheName - the name of the Redis cache.

func (PrivateEndpointConnectionsClient) ListPreparer

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

ListPreparer prepares the List request.

func (PrivateEndpointConnectionsClient) ListResponder

func (client PrivateEndpointConnectionsClient) ListResponder(resp *http.Response) (result PrivateEndpointConnectionListResult, err error)

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

func (PrivateEndpointConnectionsClient) ListSender

func (client PrivateEndpointConnectionsClient) 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 (PrivateEndpointConnectionsClient) Put

func (client PrivateEndpointConnectionsClient) Put(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string, properties PrivateEndpointConnection) (result PrivateEndpointConnectionsPutFuture, err error)

Put update the state of specified private endpoint connection associated with the redis cache. Parameters: resourceGroupName - the name of the resource group. cacheName - the name of the Redis cache. privateEndpointConnectionName - the name of the private endpoint connection associated with the Azure resource properties - the private endpoint connection properties.

func (PrivateEndpointConnectionsClient) PutPreparer

func (client PrivateEndpointConnectionsClient) PutPreparer(ctx context.Context, resourceGroupName string, cacheName string, privateEndpointConnectionName string, properties PrivateEndpointConnection) (*http.Request, error)

PutPreparer prepares the Put request.

func (PrivateEndpointConnectionsClient) PutResponder

func (client PrivateEndpointConnectionsClient) PutResponder(resp *http.Response) (result PrivateEndpointConnection, err error)

PutResponder handles the response to the Put request. The method always closes the http.Response Body.

func (PrivateEndpointConnectionsClient) PutSender

func (client PrivateEndpointConnectionsClient) PutSender(req *http.Request) (future PrivateEndpointConnectionsPutFuture, err error)

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

type PrivateEndpointConnectionsPutFuture

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

type PrivateEndpointConnectionsPutFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(PrivateEndpointConnectionsClient) (PrivateEndpointConnection, error)
}

func (*PrivateEndpointConnectionsPutFuture) UnmarshalJSON

func (future *PrivateEndpointConnectionsPutFuture) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaller for CreateFuture.

type PrivateEndpointServiceConnectionStatus

PrivateEndpointServiceConnectionStatus enumerates the values for private endpoint service connection status.

type PrivateEndpointServiceConnectionStatus string
const (
    // PrivateEndpointServiceConnectionStatusApproved ...
    PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved"
    // PrivateEndpointServiceConnectionStatusPending ...
    PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending"
    // PrivateEndpointServiceConnectionStatusRejected ...
    PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected"
)

func PossiblePrivateEndpointServiceConnectionStatusValues

func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus

PossiblePrivateEndpointServiceConnectionStatusValues returns an array of possible values for the PrivateEndpointServiceConnectionStatus const type.

type PrivateLinkResource

PrivateLinkResource a private link resource

type PrivateLinkResource struct {
    // PrivateLinkResourceProperties - Resource properties.
    *PrivateLinkResourceProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (PrivateLinkResource) MarshalJSON

func (plr PrivateLinkResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PrivateLinkResource.

func (*PrivateLinkResource) UnmarshalJSON

func (plr *PrivateLinkResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PrivateLinkResource struct.

type PrivateLinkResourceListResult

PrivateLinkResourceListResult a list of private link resources

type PrivateLinkResourceListResult struct {
    autorest.Response `json:"-"`
    // Value - Array of private link resources
    Value *[]PrivateLinkResource `json:"value,omitempty"`
}

type PrivateLinkResourceProperties

PrivateLinkResourceProperties properties of a private link resource.

type PrivateLinkResourceProperties struct {
    // GroupID - READ-ONLY; The private link resource group id.
    GroupID *string `json:"groupId,omitempty"`
    // RequiredMembers - READ-ONLY; The private link resource required member names.
    RequiredMembers *[]string `json:"requiredMembers,omitempty"`
    // RequiredZoneNames - The private link resource Private link DNS zone name.
    RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"`
}

func (PrivateLinkResourceProperties) MarshalJSON

func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PrivateLinkResourceProperties.

type PrivateLinkResourcesClient

PrivateLinkResourcesClient is the REST API for Azure Redis Cache Service.

type PrivateLinkResourcesClient struct {
    BaseClient
}

func NewPrivateLinkResourcesClient

func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient

NewPrivateLinkResourcesClient creates an instance of the PrivateLinkResourcesClient client.

func NewPrivateLinkResourcesClientWithBaseURI

func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient

NewPrivateLinkResourcesClientWithBaseURI creates an instance of the PrivateLinkResourcesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PrivateLinkResourcesClient) ListByRedisCache

func (client PrivateLinkResourcesClient) ListByRedisCache(ctx context.Context, resourceGroupName string, cacheName string) (result PrivateLinkResourceListResult, err error)

ListByRedisCache gets the private link resources that need to be created for a redis cache. Parameters: resourceGroupName - the name of the resource group. cacheName - the name of the Redis cache.

func (PrivateLinkResourcesClient) ListByRedisCachePreparer

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

ListByRedisCachePreparer prepares the ListByRedisCache request.

func (PrivateLinkResourcesClient) ListByRedisCacheResponder

func (client PrivateLinkResourcesClient) ListByRedisCacheResponder(resp *http.Response) (result PrivateLinkResourceListResult, err error)

ListByRedisCacheResponder handles the response to the ListByRedisCache request. The method always closes the http.Response Body.

func (PrivateLinkResourcesClient) ListByRedisCacheSender

func (client PrivateLinkResourcesClient) ListByRedisCacheSender(req *http.Request) (*http.Response, error)

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

type PrivateLinkServiceConnectionState

PrivateLinkServiceConnectionState a collection of information about the state of the connection between service consumer and provider.

type PrivateLinkServiceConnectionState struct {
    // Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Possible values include: 'PrivateEndpointServiceConnectionStatusPending', 'PrivateEndpointServiceConnectionStatusApproved', 'PrivateEndpointServiceConnectionStatusRejected'
    Status PrivateEndpointServiceConnectionStatus `json:"status,omitempty"`
    // Description - The reason for approval/rejection of the connection.
    Description *string `json:"description,omitempty"`
    // ActionsRequired - A message indicating if changes on the service provider require any updates on the consumer.
    ActionsRequired *string `json:"actionsRequired,omitempty"`
}

type Properties

Properties properties of the redis cache.

type Properties struct {
    // ProvisioningState - READ-ONLY; Redis instance provisioning status. Possible values include: 'ProvisioningStateCreating', 'ProvisioningStateDeleting', 'ProvisioningStateDisabled', 'ProvisioningStateFailed', 'ProvisioningStateLinking', 'ProvisioningStateProvisioning', 'ProvisioningStateRecoveringScaleFailure', 'ProvisioningStateScaling', 'ProvisioningStateSucceeded', 'ProvisioningStateUnlinking', 'ProvisioningStateUnprovisioning', 'ProvisioningStateUpdating'
    ProvisioningState ProvisioningState `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"`
    // LinkedServers - READ-ONLY; List of the linked servers associated with the cache
    LinkedServers *[]LinkedServer `json:"linkedServers,omitempty"`
    // Instances - READ-ONLY; List of the Redis instances associated with the cache
    Instances *[]InstanceDetails `json:"instances,omitempty"`
    // PrivateEndpointConnections - READ-ONLY; List of private endpoint connection associated with the specified redis cache
    PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"`
    // Sku - The SKU of the Redis cache to deploy.
    Sku *Sku `json:"sku,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"`
    // 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"`
    // RedisVersion - Redis version. Only major version will be used in PUT/PATCH request with current valid values: (4, 6)
    RedisVersion *string `json:"redisVersion,omitempty"`
    // EnableNonSslPort - Specifies whether the non-ssl Redis server port (6379) is enabled.
    EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"`
    // ReplicasPerMaster - The number of replicas to be created per primary.
    ReplicasPerMaster *int32 `json:"replicasPerMaster,omitempty"`
    // ReplicasPerPrimary - The number of replicas to be created per primary.
    ReplicasPerPrimary *int32 `json:"replicasPerPrimary,omitempty"`
    // TenantSettings - A dictionary of tenant settings
    TenantSettings map[string]*string `json:"tenantSettings"`
    // ShardCount - The number of shards to be created on a Premium Cluster Cache.
    ShardCount *int32 `json:"shardCount,omitempty"`
    // MinimumTLSVersion - Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). Possible values include: 'TLSVersionOneFullStopZero', 'TLSVersionOneFullStopOne', 'TLSVersionOneFullStopTwo'
    MinimumTLSVersion TLSVersion `json:"minimumTlsVersion,omitempty"`
    // PublicNetworkAccess - Whether or not public endpoint access is allowed for this cache.  Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'. Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled'
    PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"`
}

func (Properties) MarshalJSON

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

MarshalJSON is the custom marshaler for Properties.

type ProvisioningState

ProvisioningState enumerates the values for provisioning state.

type ProvisioningState string
const (
    // ProvisioningStateCreating ...
    ProvisioningStateCreating ProvisioningState = "Creating"
    // ProvisioningStateDeleting ...
    ProvisioningStateDeleting ProvisioningState = "Deleting"
    // ProvisioningStateDisabled ...
    ProvisioningStateDisabled ProvisioningState = "Disabled"
    // ProvisioningStateFailed ...
    ProvisioningStateFailed ProvisioningState = "Failed"
    // ProvisioningStateLinking ...
    ProvisioningStateLinking ProvisioningState = "Linking"
    // ProvisioningStateProvisioning ...
    ProvisioningStateProvisioning ProvisioningState = "Provisioning"
    // ProvisioningStateRecoveringScaleFailure ...
    ProvisioningStateRecoveringScaleFailure ProvisioningState = "RecoveringScaleFailure"
    // ProvisioningStateScaling ...
    ProvisioningStateScaling ProvisioningState = "Scaling"
    // ProvisioningStateSucceeded ...
    ProvisioningStateSucceeded ProvisioningState = "Succeeded"
    // ProvisioningStateUnlinking ...
    ProvisioningStateUnlinking ProvisioningState = "Unlinking"
    // ProvisioningStateUnprovisioning ...
    ProvisioningStateUnprovisioning ProvisioningState = "Unprovisioning"
    // ProvisioningStateUpdating ...
    ProvisioningStateUpdating ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.

type ProxyResource

ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location

type ProxyResource struct {
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (ProxyResource) MarshalJSON

func (pr ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProxyResource.

type PublicNetworkAccess

PublicNetworkAccess enumerates the values for public network access.

type PublicNetworkAccess string
const (
    // PublicNetworkAccessDisabled ...
    PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled"
    // PublicNetworkAccessEnabled ...
    PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled"
)

func PossiblePublicNetworkAccessValues

func PossiblePublicNetworkAccessValues() []PublicNetworkAccess

PossiblePublicNetworkAccessValues returns an array of possible values for the PublicNetworkAccess const type.

type RebootParameters

RebootParameters specifies which Redis node(s) to reboot.

type RebootParameters struct {
    // RebootType - Which Redis node(s) to reboot. Depending on this value data loss is possible. Possible values include: 'RebootTypePrimaryNode', 'RebootTypeSecondaryNode', 'RebootTypeAllNodes'
    RebootType RebootType `json:"rebootType,omitempty"`
    // ShardID - If clustering is enabled, the ID of the shard to be rebooted.
    ShardID *int32 `json:"shardId,omitempty"`
    // Ports - A list of redis instances to reboot, specified by per-instance SSL ports or non-SSL ports.
    Ports *[]int32 `json:"ports,omitempty"`
}

type RebootType

RebootType enumerates the values for reboot type.

type RebootType string
const (
    // RebootTypeAllNodes ...
    RebootTypeAllNodes RebootType = "AllNodes"
    // RebootTypePrimaryNode ...
    RebootTypePrimaryNode RebootType = "PrimaryNode"
    // RebootTypeSecondaryNode ...
    RebootTypeSecondaryNode RebootType = "SecondaryNode"
)

func PossibleRebootTypeValues

func PossibleRebootTypeValues() []RebootType

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

type RegenerateKeyParameters

RegenerateKeyParameters specifies which Redis access keys to reset.

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

type ReplicationRole

ReplicationRole enumerates the values for replication role.

type ReplicationRole string
const (
    // ReplicationRolePrimary ...
    ReplicationRolePrimary ReplicationRole = "Primary"
    // ReplicationRoleSecondary ...
    ReplicationRoleSecondary ReplicationRole = "Secondary"
)

func PossibleReplicationRoleValues

func PossibleReplicationRoleValues() []ReplicationRole

PossibleReplicationRoleValues returns an array of possible values for the ReplicationRole const type.

type Resource

Resource common fields that are returned in the response for all Azure Resource Manager resources

type Resource struct {
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (Resource) MarshalJSON

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

MarshalJSON is the custom marshaler for Resource.

type ResourceType

ResourceType a single Redis item in List or Get Operation.

type ResourceType struct {
    autorest.Response `json:"-"`
    // Properties - Redis cache properties.
    *Properties `json:"properties,omitempty"`
    // Zones - A list of availability zones denoting where the resource needs to come from.
    Zones *[]string `json:"zones,omitempty"`
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (ResourceType) MarshalJSON

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

MarshalJSON is the custom marshaler for ResourceType.

func (*ResourceType) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ResourceType struct.

type ScheduleEntries

ScheduleEntries list of patch schedules for a Redis cache.

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

type ScheduleEntry

ScheduleEntry patch schedule entry for a Premium Redis Cache.

type ScheduleEntry struct {
    // DayOfWeek - Day of the week when a cache can be patched. Possible values include: 'DayOfWeekMonday', 'DayOfWeekTuesday', 'DayOfWeekWednesday', 'DayOfWeekThursday', 'DayOfWeekFriday', 'DayOfWeekSaturday', 'DayOfWeekSunday', 'DayOfWeekEveryday', 'DayOfWeekWeekend'
    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"`
}

type Sku

Sku SKU parameters supplied to the create Redis operation.

type Sku struct {
    // Name - The type of Redis cache to deploy. Valid values: (Basic, Standard, Premium). Possible values include: 'SkuNameBasic', 'SkuNameStandard', 'SkuNamePremium'
    Name SkuName `json:"name,omitempty"`
    // Family - The SKU family to use. Valid values: (C, P). (C = Basic/Standard, P = Premium). Possible values include: 'SkuFamilyC', 'SkuFamilyP'
    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"`
}

type SkuFamily

SkuFamily enumerates the values for sku family.

type SkuFamily string
const (
    // SkuFamilyC ...
    SkuFamilyC SkuFamily = "C"
    // SkuFamilyP ...
    SkuFamilyP SkuFamily = "P"
)

func PossibleSkuFamilyValues

func PossibleSkuFamilyValues() []SkuFamily

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

type SkuName

SkuName enumerates the values for sku name.

type SkuName string
const (
    // SkuNameBasic ...
    SkuNameBasic SkuName = "Basic"
    // SkuNamePremium ...
    SkuNamePremium SkuName = "Premium"
    // SkuNameStandard ...
    SkuNameStandard SkuName = "Standard"
)

func PossibleSkuNameValues

func PossibleSkuNameValues() []SkuName

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

type TLSVersion

TLSVersion enumerates the values for tls version.

type TLSVersion string
const (
    // TLSVersionOneFullStopOne ...
    TLSVersionOneFullStopOne TLSVersion = "1.1"
    // TLSVersionOneFullStopTwo ...
    TLSVersionOneFullStopTwo TLSVersion = "1.2"
    // TLSVersionOneFullStopZero ...
    TLSVersionOneFullStopZero TLSVersion = "1.0"
)

func PossibleTLSVersionValues

func PossibleTLSVersionValues() []TLSVersion

PossibleTLSVersionValues returns an array of possible values for the TLSVersion const type.

type TrackedResource

TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'

type TrackedResource struct {
    // Tags - Resource tags.
    Tags map[string]*string `json:"tags"`
    // Location - The geo-location where the resource lives
    Location *string `json:"location,omitempty"`
    // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    ID *string `json:"id,omitempty"`
    // Name - READ-ONLY; The name of the resource
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Type *string `json:"type,omitempty"`
}

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

type UpdateParameters

UpdateParameters parameters supplied to the Update Redis operation.

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

func (UpdateParameters) MarshalJSON

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

MarshalJSON is the custom marshaler for UpdateParameters.

func (*UpdateParameters) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for UpdateParameters struct.

type UpdateProperties

UpdateProperties patchable properties of the redis cache.

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"`
    // RedisVersion - Redis version. Only major version will be used in PUT/PATCH request with current valid values: (4, 6)
    RedisVersion *string `json:"redisVersion,omitempty"`
    // EnableNonSslPort - Specifies whether the non-ssl Redis server port (6379) is enabled.
    EnableNonSslPort *bool `json:"enableNonSslPort,omitempty"`
    // ReplicasPerMaster - The number of replicas to be created per primary.
    ReplicasPerMaster *int32 `json:"replicasPerMaster,omitempty"`
    // ReplicasPerPrimary - The number of replicas to be created per primary.
    ReplicasPerPrimary *int32 `json:"replicasPerPrimary,omitempty"`
    // TenantSettings - A dictionary of tenant settings
    TenantSettings map[string]*string `json:"tenantSettings"`
    // ShardCount - The number of shards to be created on a Premium Cluster Cache.
    ShardCount *int32 `json:"shardCount,omitempty"`
    // MinimumTLSVersion - Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2'). Possible values include: 'TLSVersionOneFullStopZero', 'TLSVersionOneFullStopOne', 'TLSVersionOneFullStopTwo'
    MinimumTLSVersion TLSVersion `json:"minimumTlsVersion,omitempty"`
    // PublicNetworkAccess - Whether or not public endpoint access is allowed for this cache.  Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'. Possible values include: 'PublicNetworkAccessEnabled', 'PublicNetworkAccessDisabled'
    PublicNetworkAccess PublicNetworkAccess `json:"publicNetworkAccess,omitempty"`
}

func (UpdateProperties) MarshalJSON

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

MarshalJSON is the custom marshaler for UpdateProperties.

type UpgradeNotification

UpgradeNotification properties of upgrade notification.

type UpgradeNotification struct {
    // Name - READ-ONLY; Name of upgrade notification.
    Name *string `json:"name,omitempty"`
    // Timestamp - READ-ONLY; Timestamp when upgrade notification occurred.
    Timestamp *date.Time `json:"timestamp,omitempty"`
    // UpsellNotification - READ-ONLY; Details about this upgrade notification
    UpsellNotification map[string]*string `json:"upsellNotification"`
}

func (UpgradeNotification) MarshalJSON

func (un UpgradeNotification) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UpgradeNotification.

Subdirectories

Name Synopsis
..
redisapi Deprecated: Please note, this package has been deprecated.