redis

package
v11.3.0-beta+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package redis implements the Azure ARM Redis service API version 2017-10-01.

REST API for Azure Redis Cache Service.

Index

Constants

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

Types

type AccessKeys

type AccessKeys struct {
	autorest.Response `json:"-"`
	PrimaryKey        *string `json:"primaryKey,omitempty"`
	SecondaryKey      *string `json:"secondaryKey,omitempty"`
}

AccessKeys is redis cache access keys.

type DayOfWeek

type DayOfWeek string

DayOfWeek enumerates the values for day of week.

const (
	// Everyday specifies the everyday state for day of week.
	Everyday DayOfWeek = "Everyday"
	// Friday specifies the friday state for day of week.
	Friday DayOfWeek = "Friday"
	// Monday specifies the monday state for day of week.
	Monday DayOfWeek = "Monday"
	// Saturday specifies the saturday state for day of week.
	Saturday DayOfWeek = "Saturday"
	// Sunday specifies the sunday state for day of week.
	Sunday DayOfWeek = "Sunday"
	// Thursday specifies the thursday state for day of week.
	Thursday DayOfWeek = "Thursday"
	// Tuesday specifies the tuesday state for day of week.
	Tuesday DayOfWeek = "Tuesday"
	// Wednesday specifies the wednesday state for day of week.
	Wednesday DayOfWeek = "Wednesday"
	// Weekend specifies the weekend state for day of week.
	Weekend DayOfWeek = "Weekend"
)

type ExportRDBParameters

type ExportRDBParameters struct {
	Format    *string `json:"format,omitempty"`
	Prefix    *string `json:"prefix,omitempty"`
	Container *string `json:"container,omitempty"`
}

ExportRDBParameters is parameters for Redis export operation.

type FirewallRule

type FirewallRule struct {
	autorest.Response       `json:"-"`
	ID                      *string `json:"id,omitempty"`
	Name                    *string `json:"name,omitempty"`
	Type                    *string `json:"type,omitempty"`
	*FirewallRuleProperties `json:"properties,omitempty"`
}

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

type FirewallRuleListResult

type FirewallRuleListResult struct {
	autorest.Response `json:"-"`
	Value             *[]FirewallRule `json:"value,omitempty"`
	NextLink          *string         `json:"nextLink,omitempty"`
}

FirewallRuleListResult is the response of list firewall rules Redis operation.

func (FirewallRuleListResult) FirewallRuleListResultPreparer

func (client FirewallRuleListResult) FirewallRuleListResultPreparer() (*http.Request, error)

FirewallRuleListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type FirewallRuleProperties

type FirewallRuleProperties struct {
	StartIP *string `json:"startIP,omitempty"`
	EndIP   *string `json:"endIP,omitempty"`
}

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

type FirewallRulesClient

type FirewallRulesClient struct {
	ManagementClient
}

FirewallRulesClient is the REST API for Azure Redis Cache Service.

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.

func (FirewallRulesClient) CreateOrUpdate

func (client FirewallRulesClient) CreateOrUpdate(resourceGroupName string, cacheName string, ruleName string, parameters FirewallRule) (result FirewallRule, err error)

CreateOrUpdate create or update a redis cache firewall rule

resourceGroupName is the name of the resource group. cacheName is the name of the Redis cache. ruleName is the name of the firewall rule. parameters is parameters supplied to the create or update redis firewall rule operation.

func (FirewallRulesClient) CreateOrUpdatePreparer

func (client FirewallRulesClient) CreateOrUpdatePreparer(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(resourceGroupName string, cacheName string, ruleName string) (result autorest.Response, err error)

Delete deletes a single firewall rule in a specified redis cache.

resourceGroupName is the name of the resource group. cacheName is the name of the Redis cache. ruleName is the name of the firewall rule.

func (FirewallRulesClient) DeletePreparer

func (client FirewallRulesClient) DeletePreparer(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(resourceGroupName string, cacheName string, ruleName string) (result FirewallRule, err error)

Get gets a single firewall rule in a specified redis cache.

resourceGroupName is the name of the resource group. cacheName is the name of the Redis cache. ruleName is the name of the firewall rule.

func (FirewallRulesClient) GetPreparer

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

func (client FirewallRulesClient) ListByRedisResource(resourceGroupName string, cacheName string) (result FirewallRuleListResult, err error)

ListByRedisResource gets all firewall rules in the specified redis cache.

resourceGroupName is the name of the resource group. cacheName is the name of the Redis cache.

func (FirewallRulesClient) ListByRedisResourceComplete

func (client FirewallRulesClient) ListByRedisResourceComplete(resourceGroupName string, cacheName string, cancel <-chan struct{}) (<-chan FirewallRule, <-chan error)

ListByRedisResourceComplete gets all elements from the list without paging.

func (FirewallRulesClient) ListByRedisResourceNextResults

func (client FirewallRulesClient) ListByRedisResourceNextResults(lastResults FirewallRuleListResult) (result FirewallRuleListResult, err error)

ListByRedisResourceNextResults retrieves the next set of results, if any.

func (FirewallRulesClient) ListByRedisResourcePreparer

func (client FirewallRulesClient) ListByRedisResourcePreparer(resourceGroupName string, cacheName string) (*http.Request, error)

ListByRedisResourcePreparer prepares the ListByRedisResource request.

func (FirewallRulesClient) ListByRedisResourceResponder

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

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

func (FirewallRulesClient) ListByRedisResourceSender

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

type ForceRebootResponse struct {
	autorest.Response `json:"-"`
	Message           *string `json:"message,omitempty"`
}

ForceRebootResponse is response to force reboot for Redis cache.

type GroupClient

type GroupClient struct {
	ManagementClient
}

GroupClient is the REST API for Azure Redis Cache Service.

func NewGroupClient

func NewGroupClient(subscriptionID string) GroupClient

NewGroupClient creates an instance of the GroupClient client.

func NewGroupClientWithBaseURI

func NewGroupClientWithBaseURI(baseURI string, subscriptionID string) GroupClient

NewGroupClientWithBaseURI creates an instance of the GroupClient client.

func (GroupClient) Create

func (client GroupClient) Create(resourceGroupName string, name string, parameters ResourceType, cancel <-chan struct{}) (<-chan ResourceType, <-chan error)

Create create or replace (overwrite/recreate, with potential downtime) an existing Redis cache. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. name is the name of the Redis cache. parameters is parameters supplied to the Create Redis operation.

func (GroupClient) CreatePreparer

func (client GroupClient) CreatePreparer(resourceGroupName string, name string, parameters ResourceType, cancel <-chan struct{}) (*http.Request, error)

CreatePreparer prepares the Create request.

func (GroupClient) CreateResponder

func (client GroupClient) 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 (GroupClient) CreateSender

func (client GroupClient) CreateSender(req *http.Request) (*http.Response, error)

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

func (GroupClient) Delete

func (client GroupClient) Delete(resourceGroupName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

Delete deletes a Redis cache. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. name is the name of the Redis cache.

func (GroupClient) DeletePreparer

func (client GroupClient) DeletePreparer(resourceGroupName string, name string, cancel <-chan struct{}) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (GroupClient) DeleteResponder

func (client GroupClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (GroupClient) DeleteSender

func (client GroupClient) 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 (GroupClient) ExportData

func (client GroupClient) ExportData(resourceGroupName string, name string, parameters ExportRDBParameters, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

ExportData export data from the redis cache to blobs in a container. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. name is the name of the Redis cache. parameters is parameters for Redis export operation.

func (GroupClient) ExportDataPreparer

func (client GroupClient) ExportDataPreparer(resourceGroupName string, name string, parameters ExportRDBParameters, cancel <-chan struct{}) (*http.Request, error)

ExportDataPreparer prepares the ExportData request.

func (GroupClient) ExportDataResponder

func (client GroupClient) 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 (GroupClient) ExportDataSender

func (client GroupClient) ExportDataSender(req *http.Request) (*http.Response, error)

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

func (GroupClient) ForceReboot

func (client GroupClient) ForceReboot(resourceGroupName string, name string, parameters RebootParameters) (result ForceRebootResponse, err error)

ForceReboot reboot specified Redis node(s). This operation requires write permission to the cache resource. There can be potential data loss.

resourceGroupName is the name of the resource group. name is the name of the Redis cache. parameters is specifies which Redis node(s) to reboot.

func (GroupClient) ForceRebootPreparer

func (client GroupClient) ForceRebootPreparer(resourceGroupName string, name string, parameters RebootParameters) (*http.Request, error)

ForceRebootPreparer prepares the ForceReboot request.

func (GroupClient) ForceRebootResponder

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

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

func (GroupClient) ForceRebootSender

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

func (client GroupClient) Get(resourceGroupName string, name string) (result ResourceType, err error)

Get gets a Redis cache (resource description).

resourceGroupName is the name of the resource group. name is the name of the Redis cache.

func (GroupClient) GetPreparer

func (client GroupClient) GetPreparer(resourceGroupName string, name string) (*http.Request, error)

GetPreparer prepares the Get request.

func (GroupClient) GetResponder

func (client GroupClient) GetResponder(resp *http.Response) (result ResourceType, err error)

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

func (GroupClient) GetSender

func (client GroupClient) 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 (GroupClient) ImportData

func (client GroupClient) ImportData(resourceGroupName string, name string, parameters ImportRDBParameters, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error)

ImportData import data into Redis cache. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. name is the name of the Redis cache. parameters is parameters for Redis import operation.

func (GroupClient) ImportDataPreparer

func (client GroupClient) ImportDataPreparer(resourceGroupName string, name string, parameters ImportRDBParameters, cancel <-chan struct{}) (*http.Request, error)

ImportDataPreparer prepares the ImportData request.

func (GroupClient) ImportDataResponder

func (client GroupClient) 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 (GroupClient) ImportDataSender

func (client GroupClient) ImportDataSender(req *http.Request) (*http.Response, error)

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

func (GroupClient) List

func (client GroupClient) List() (result ListResult, err error)

List gets all Redis caches in the specified subscription.

func (GroupClient) ListByResourceGroup

func (client GroupClient) ListByResourceGroup(resourceGroupName string) (result ListResult, err error)

ListByResourceGroup lists all Redis caches in a resource group.

resourceGroupName is the name of the resource group.

func (GroupClient) ListByResourceGroupComplete

func (client GroupClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan ResourceType, <-chan error)

ListByResourceGroupComplete gets all elements from the list without paging.

func (GroupClient) ListByResourceGroupNextResults

func (client GroupClient) ListByResourceGroupNextResults(lastResults ListResult) (result ListResult, err error)

ListByResourceGroupNextResults retrieves the next set of results, if any.

func (GroupClient) ListByResourceGroupPreparer

func (client GroupClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (GroupClient) ListByResourceGroupResponder

func (client GroupClient) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (GroupClient) ListByResourceGroupSender

func (client GroupClient) 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 (GroupClient) ListComplete

func (client GroupClient) ListComplete(cancel <-chan struct{}) (<-chan ResourceType, <-chan error)

ListComplete gets all elements from the list without paging.

func (GroupClient) ListKeys

func (client GroupClient) ListKeys(resourceGroupName string, name string) (result AccessKeys, err error)

ListKeys retrieve a Redis cache's access keys. This operation requires write permission to the cache resource.

resourceGroupName is the name of the resource group. name is the name of the Redis cache.

func (GroupClient) ListKeysPreparer

func (client GroupClient) ListKeysPreparer(resourceGroupName string, name string) (*http.Request, error)

ListKeysPreparer prepares the ListKeys request.

func (GroupClient) ListKeysResponder

func (client GroupClient) ListKeysResponder(resp *http.Response) (result AccessKeys, err error)

ListKeysResponder handles the response to the ListKeys request. The method always closes the http.Response Body.

func (GroupClient) ListKeysSender

func (client GroupClient) 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 (GroupClient) ListNextResults

func (client GroupClient) ListNextResults(lastResults ListResult) (result ListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (GroupClient) ListPreparer

func (client GroupClient) ListPreparer() (*http.Request, error)

ListPreparer prepares the List request.

func (GroupClient) ListResponder

func (client GroupClient) ListResponder(resp *http.Response) (result ListResult, err error)

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

func (GroupClient) ListSender

func (client GroupClient) 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 (GroupClient) RegenerateKey

func (client GroupClient) RegenerateKey(resourceGroupName string, name string, parameters RegenerateKeyParameters) (result AccessKeys, err error)

RegenerateKey regenerate Redis cache's access keys. This operation requires write permission to the cache resource.

resourceGroupName is the name of the resource group. name is the name of the Redis cache. parameters is specifies which key to regenerate.

func (GroupClient) RegenerateKeyPreparer

func (client GroupClient) RegenerateKeyPreparer(resourceGroupName string, name string, parameters RegenerateKeyParameters) (*http.Request, error)

RegenerateKeyPreparer prepares the RegenerateKey request.

func (GroupClient) RegenerateKeyResponder

func (client GroupClient) RegenerateKeyResponder(resp *http.Response) (result AccessKeys, err error)

RegenerateKeyResponder handles the response to the RegenerateKey request. The method always closes the http.Response Body.

func (GroupClient) RegenerateKeySender

func (client GroupClient) 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 (GroupClient) Update

func (client GroupClient) Update(resourceGroupName string, name string, parameters PatchResource) (result ResourceType, err error)

Update update an existing Redis cache.

resourceGroupName is the name of the resource group. name is the name of the Redis cache. parameters is parameters supplied to the Update Redis operation.

func (GroupClient) UpdatePreparer

func (client GroupClient) UpdatePreparer(resourceGroupName string, name string, parameters PatchResource) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (GroupClient) UpdateResponder

func (client GroupClient) 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 (GroupClient) UpdateSender

func (client GroupClient) 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 ImportRDBParameters

type ImportRDBParameters struct {
	Format *string   `json:"format,omitempty"`
	Files  *[]string `json:"files,omitempty"`
}

ImportRDBParameters is parameters for Redis import operation.

type KeyType

type KeyType string

KeyType enumerates the values for key type.

const (
	// Primary specifies the primary state for key type.
	Primary KeyType = "Primary"
	// Secondary specifies the secondary state for key type.
	Secondary KeyType = "Secondary"
)

type LinkedServer

type LinkedServer struct {
	ID *string `json:"id,omitempty"`
}

LinkedServer is linked server Id

type LinkedServerClient

type LinkedServerClient struct {
	ManagementClient
}

LinkedServerClient is the REST API for Azure Redis Cache Service.

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.

func (LinkedServerClient) Create

func (client LinkedServerClient) Create(resourceGroupName string, name string, linkedServerName string, parameters LinkedServerCreateParameters, cancel <-chan struct{}) (<-chan LinkedServerWithProperties, <-chan error)

Create adds a linked server to the Redis cache (requires Premium SKU). This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. name is the name of the Redis cache. linkedServerName is the name of the linked server that is being added to the Redis cache. parameters is parameters supplied to the Create Linked server operation.

func (LinkedServerClient) CreatePreparer

func (client LinkedServerClient) CreatePreparer(resourceGroupName string, name string, linkedServerName string, parameters LinkedServerCreateParameters, cancel <-chan struct{}) (*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) (*http.Response, 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(resourceGroupName string, name string, linkedServerName string) (result autorest.Response, err error)

Delete deletes the linked server from a redis cache (requires Premium SKU).

resourceGroupName is the name of the resource group. name is the name of the redis cache. linkedServerName is the name of the linked server that is being added to the Redis cache.

func (LinkedServerClient) DeletePreparer

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

resourceGroupName is the name of the resource group. name is the name of the redis cache. linkedServerName is the name of the linked server.

func (LinkedServerClient) GetPreparer

func (client LinkedServerClient) GetPreparer(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(resourceGroupName string, name string) (result LinkedServerWithPropertiesList, err error)

List gets the list of linked servers associated with this redis cache (requires Premium SKU).

resourceGroupName is the name of the resource group. name is the name of the redis cache.

func (LinkedServerClient) ListPreparer

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

type LinkedServerCreateParameters struct {
	*LinkedServerCreateProperties `json:"properties,omitempty"`
}

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

type LinkedServerCreateProperties

type LinkedServerCreateProperties struct {
	LinkedRedisCacheID       *string         `json:"linkedRedisCacheId,omitempty"`
	LinkedRedisCacheLocation *string         `json:"linkedRedisCacheLocation,omitempty"`
	ServerRole               ReplicationRole `json:"serverRole,omitempty"`
}

LinkedServerCreateProperties is create properties for a linked server

type LinkedServerList

type LinkedServerList struct {
	Value *[]LinkedServer `json:"value,omitempty"`
}

LinkedServerList is list of linked server Ids of a Redis cache.

type LinkedServerProperties

type LinkedServerProperties struct {
	LinkedRedisCacheID       *string         `json:"linkedRedisCacheId,omitempty"`
	LinkedRedisCacheLocation *string         `json:"linkedRedisCacheLocation,omitempty"`
	ServerRole               ReplicationRole `json:"serverRole,omitempty"`
	ProvisioningState        *string         `json:"provisioningState,omitempty"`
}

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

type LinkedServerWithProperties

type LinkedServerWithProperties struct {
	autorest.Response       `json:"-"`
	ID                      *string `json:"id,omitempty"`
	Name                    *string `json:"name,omitempty"`
	Type                    *string `json:"type,omitempty"`
	*LinkedServerProperties `json:"properties,omitempty"`
}

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

type LinkedServerWithPropertiesList

type LinkedServerWithPropertiesList struct {
	autorest.Response `json:"-"`
	Value             *[]LinkedServerWithProperties `json:"value,omitempty"`
}

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

type ListResult

type ListResult struct {
	autorest.Response `json:"-"`
	Value             *[]ResourceType `json:"value,omitempty"`
	NextLink          *string         `json:"nextLink,omitempty"`
}

ListResult is the response of list Redis operation.

func (ListResult) ListResultPreparer

func (client ListResult) ListResultPreparer() (*http.Request, error)

ListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type ManagementClient

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

ManagementClient is the base client for Redis.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

type Operation

type Operation struct {
	Name    *string           `json:"name,omitempty"`
	Display *OperationDisplay `json:"display,omitempty"`
}

Operation is REST API operation

type OperationDisplay

type OperationDisplay struct {
	Provider    *string `json:"provider,omitempty"`
	Operation   *string `json:"operation,omitempty"`
	Resource    *string `json:"resource,omitempty"`
	Description *string `json:"description,omitempty"`
}

OperationDisplay is the object that describes the operation.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Operation `json:"value,omitempty"`
	NextLink          *string      `json:"nextLink,omitempty"`
}

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

func (OperationListResult) OperationListResultPreparer

func (client OperationListResult) OperationListResultPreparer() (*http.Request, error)

OperationListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type OperationsClient

type OperationsClient struct {
	ManagementClient
}

OperationsClient is the REST API for Azure Redis Cache Service.

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.

func (OperationsClient) List

func (client OperationsClient) List() (result OperationListResult, err error)

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

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(cancel <-chan struct{}) (<-chan Operation, <-chan error)

ListComplete gets all elements from the list without paging.

func (OperationsClient) ListNextResults

func (client OperationsClient) ListNextResults(lastResults OperationListResult) (result OperationListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer() (*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 PatchProperties

type PatchProperties struct {
	Sku                *Sku                `json:"sku,omitempty"`
	EnableNonSslPort   *bool               `json:"enableNonSslPort,omitempty"`
	RedisConfiguration *map[string]*string `json:"redisConfiguration,omitempty"`
	TenantSettings     *map[string]*string `json:"tenantSettings,omitempty"`
	ShardCount         *int32              `json:"shardCount,omitempty"`
}

PatchProperties is patchable properties of the redis cache.

type PatchResource

type PatchResource struct {
	ID               *string `json:"id,omitempty"`
	Name             *string `json:"name,omitempty"`
	Type             *string `json:"type,omitempty"`
	*PatchProperties `json:"properties,omitempty"`
}

PatchResource is a request holding properties to patch a redis cache.

type PatchSchedule

type PatchSchedule struct {
	autorest.Response `json:"-"`
	ID                *string `json:"id,omitempty"`
	Name              *string `json:"name,omitempty"`
	Type              *string `json:"type,omitempty"`
	*ScheduleEntries  `json:"properties,omitempty"`
}

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

type PatchSchedulesClient

type PatchSchedulesClient struct {
	ManagementClient
}

PatchSchedulesClient is the REST API for Azure Redis Cache Service.

func NewPatchSchedulesClient

func NewPatchSchedulesClient(subscriptionID string) PatchSchedulesClient

NewPatchSchedulesClient creates an instance of the PatchSchedulesClient client.

func NewPatchSchedulesClientWithBaseURI

func NewPatchSchedulesClientWithBaseURI(baseURI string, subscriptionID string) PatchSchedulesClient

NewPatchSchedulesClientWithBaseURI creates an instance of the PatchSchedulesClient client.

func (PatchSchedulesClient) CreateOrUpdate

func (client PatchSchedulesClient) CreateOrUpdate(resourceGroupName string, name string, parameters PatchSchedule) (result PatchSchedule, err error)

CreateOrUpdate create or replace the patching schedule for Redis cache (requires Premium SKU).

resourceGroupName is the name of the resource group. name is the name of the Redis cache. parameters is parameters to set the patching schedule for Redis cache.

func (PatchSchedulesClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (PatchSchedulesClient) CreateOrUpdateResponder

func (client PatchSchedulesClient) CreateOrUpdateResponder(resp *http.Response) (result PatchSchedule, err error)

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

func (PatchSchedulesClient) CreateOrUpdateSender

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(resourceGroupName string, name string) (result autorest.Response, err error)

Delete deletes the patching schedule of a redis cache (requires Premium SKU).

resourceGroupName is the name of the resource group. name is the name of the redis cache.

func (PatchSchedulesClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (PatchSchedulesClient) DeleteResponder

func (client PatchSchedulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (PatchSchedulesClient) DeleteSender

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(resourceGroupName string, name string) (result PatchSchedule, err error)

Get gets the patching schedule of a redis cache (requires Premium SKU).

resourceGroupName is the name of the resource group. name is the name of the redis cache.

func (PatchSchedulesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (PatchSchedulesClient) GetResponder

func (client PatchSchedulesClient) GetResponder(resp *http.Response) (result PatchSchedule, err error)

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

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.

type Properties

type Properties struct {
	Sku                *Sku                `json:"sku,omitempty"`
	EnableNonSslPort   *bool               `json:"enableNonSslPort,omitempty"`
	RedisConfiguration *map[string]*string `json:"redisConfiguration,omitempty"`
	TenantSettings     *map[string]*string `json:"tenantSettings,omitempty"`
	ShardCount         *int32              `json:"shardCount,omitempty"`
	SubnetID           *string             `json:"subnetId,omitempty"`
	StaticIP           *string             `json:"staticIP,omitempty"`
	RedisVersion       *string             `json:"redisVersion,omitempty"`
	ProvisioningState  *string             `json:"provisioningState,omitempty"`
	HostName           *string             `json:"hostName,omitempty"`
	Port               *int32              `json:"port,omitempty"`
	SslPort            *int32              `json:"sslPort,omitempty"`
	AccessKeys         *AccessKeys         `json:"accessKeys,omitempty"`
	LinkedServers      *LinkedServerList   `json:"linkedServers,omitempty"`
}

Properties is properties of the redis cache.

type ProxyResource

type ProxyResource struct {
	ID   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

ProxyResource is the resource model definition for a ARM proxy resource. It will have everything other than required location and tags

type RebootParameters

type RebootParameters struct {
	RebootType RebootType `json:"rebootType,omitempty"`
	ShardID    *int32     `json:"shardId,omitempty"`
}

RebootParameters is specifies which Redis node(s) to reboot.

type RebootType

type RebootType string

RebootType enumerates the values for reboot type.

const (
	// AllNodes specifies the all nodes state for reboot type.
	AllNodes RebootType = "AllNodes"
	// PrimaryNode specifies the primary node state for reboot type.
	PrimaryNode RebootType = "PrimaryNode"
	// SecondaryNode specifies the secondary node state for reboot type.
	SecondaryNode RebootType = "SecondaryNode"
)

type RegenerateKeyParameters

type RegenerateKeyParameters struct {
	KeyType KeyType `json:"keyType,omitempty"`
}

RegenerateKeyParameters is specifies which Redis access keys to reset.

type ReplicationRole

type ReplicationRole string

ReplicationRole enumerates the values for replication role.

const (
	// ReplicationRolePrimary specifies the replication role primary state for replication role.
	ReplicationRolePrimary ReplicationRole = "Primary"
	// ReplicationRoleSecondary specifies the replication role secondary state for replication role.
	ReplicationRoleSecondary ReplicationRole = "Secondary"
)

type Resource

type Resource struct {
	ID   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

Resource is the Resource definition.

type ResourceType

type ResourceType struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	Location          *string             `json:"location,omitempty"`
	*Properties       `json:"properties,omitempty"`
	Zones             *[]string `json:"zones,omitempty"`
}

ResourceType is a single Redis item in List or Get Operation.

type ScheduleEntries

type ScheduleEntries struct {
	ScheduleEntries *[]ScheduleEntry `json:"scheduleEntries,omitempty"`
}

ScheduleEntries is list of patch schedules for a Redis cache.

type ScheduleEntry

type ScheduleEntry struct {
	DayOfWeek         DayOfWeek `json:"dayOfWeek,omitempty"`
	StartHourUtc      *int32    `json:"startHourUtc,omitempty"`
	MaintenanceWindow *string   `json:"maintenanceWindow,omitempty"`
}

ScheduleEntry is patch schedule entry for a Premium Redis Cache.

type Sku

type Sku struct {
	Name     SkuName   `json:"name,omitempty"`
	Family   SkuFamily `json:"family,omitempty"`
	Capacity *int32    `json:"capacity,omitempty"`
}

Sku is SKU parameters supplied to the create Redis operation.

type SkuFamily

type SkuFamily string

SkuFamily enumerates the values for sku family.

const (
	// C specifies the c state for sku family.
	C SkuFamily = "C"
	// P specifies the p state for sku family.
	P SkuFamily = "P"
)

type SkuName

type SkuName string

SkuName enumerates the values for sku name.

const (
	// Basic specifies the basic state for sku name.
	Basic SkuName = "Basic"
	// Premium specifies the premium state for sku name.
	Premium SkuName = "Premium"
	// Standard specifies the standard state for sku name.
	Standard SkuName = "Standard"
)

type TrackedResource

type TrackedResource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
	Location *string             `json:"location,omitempty"`
}

TrackedResource is the resource model definition for a ARM tracked top level resource

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL