redis

package
v0.20240416.1114103 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MPL-2.0 Imports: 17 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis Documentation

The redis SDK allows for interaction with the Azure Resource Manager Service redis (API Version 2023-08-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/redis/2023-08-01/redis"

Client Initialization

client := redis.NewRedisClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: RedisClient.AccessPolicyAssignmentCreateUpdate

ctx := context.TODO()
id := redis.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyAssignmentValue")

payload := redis.RedisCacheAccessPolicyAssignment{
	// ...
}


if err := client.AccessPolicyAssignmentCreateUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: RedisClient.AccessPolicyAssignmentDelete

ctx := context.TODO()
id := redis.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyAssignmentValue")

if err := client.AccessPolicyAssignmentDeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: RedisClient.AccessPolicyAssignmentGet

ctx := context.TODO()
id := redis.NewAccessPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyAssignmentValue")

read, err := client.AccessPolicyAssignmentGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RedisClient.AccessPolicyAssignmentList

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

// alternatively `client.AccessPolicyAssignmentList(ctx, id)` can be used to do batched pagination
items, err := client.AccessPolicyAssignmentListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RedisClient.AccessPolicyCreateUpdate

ctx := context.TODO()
id := redis.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyValue")

payload := redis.RedisCacheAccessPolicy{
	// ...
}


if err := client.AccessPolicyCreateUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: RedisClient.AccessPolicyDelete

ctx := context.TODO()
id := redis.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyValue")

if err := client.AccessPolicyDeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: RedisClient.AccessPolicyGet

ctx := context.TODO()
id := redis.NewAccessPolicyID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "accessPolicyValue")

read, err := client.AccessPolicyGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RedisClient.AccessPolicyList

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

// alternatively `client.AccessPolicyList(ctx, id)` can be used to do batched pagination
items, err := client.AccessPolicyListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RedisClient.CheckNameAvailability

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

payload := redis.CheckNameAvailabilityParameters{
	// ...
}


read, err := client.CheckNameAvailability(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RedisClient.Create

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

payload := redis.RedisCreateParameters{
	// ...
}


if err := client.CreateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: RedisClient.Delete

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: RedisClient.ExportData

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

payload := redis.ExportRDBParameters{
	// ...
}


if err := client.ExportDataThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: RedisClient.FirewallRulesCreateOrUpdate

ctx := context.TODO()
id := redis.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "firewallRuleValue")

payload := redis.RedisFirewallRule{
	// ...
}


read, err := client.FirewallRulesCreateOrUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RedisClient.FirewallRulesDelete

ctx := context.TODO()
id := redis.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "firewallRuleValue")

read, err := client.FirewallRulesDelete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RedisClient.FirewallRulesGet

ctx := context.TODO()
id := redis.NewFirewallRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "firewallRuleValue")

read, err := client.FirewallRulesGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RedisClient.FirewallRulesList

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

// alternatively `client.FirewallRulesList(ctx, id)` can be used to do batched pagination
items, err := client.FirewallRulesListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RedisClient.FlushCache

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

if err := client.FlushCacheThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: RedisClient.ForceReboot

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

payload := redis.RedisRebootParameters{
	// ...
}


read, err := client.ForceReboot(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RedisClient.Get

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RedisClient.ImportData

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

payload := redis.ImportRDBParameters{
	// ...
}


if err := client.ImportDataThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: RedisClient.LinkedServerCreate

ctx := context.TODO()
id := redis.NewLinkedServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "linkedServerValue")

payload := redis.RedisLinkedServerCreateParameters{
	// ...
}


if err := client.LinkedServerCreateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: RedisClient.LinkedServerDelete

ctx := context.TODO()
id := redis.NewLinkedServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "linkedServerValue")

if err := client.LinkedServerDeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: RedisClient.LinkedServerGet

ctx := context.TODO()
id := redis.NewLinkedServerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue", "linkedServerValue")

read, err := client.LinkedServerGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RedisClient.LinkedServerList

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

// alternatively `client.LinkedServerList(ctx, id)` can be used to do batched pagination
items, err := client.LinkedServerListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RedisClient.ListByResourceGroup

ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ListByResourceGroupComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RedisClient.ListBySubscription

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.ListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.ListBySubscriptionComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RedisClient.ListKeys

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

read, err := client.ListKeys(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RedisClient.ListUpgradeNotifications

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

// alternatively `client.ListUpgradeNotifications(ctx, id, redis.DefaultListUpgradeNotificationsOperationOptions())` can be used to do batched pagination
items, err := client.ListUpgradeNotificationsComplete(ctx, id, redis.DefaultListUpgradeNotificationsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RedisClient.PatchSchedulesCreateOrUpdate

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

payload := redis.RedisPatchSchedule{
	// ...
}


read, err := client.PatchSchedulesCreateOrUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RedisClient.PatchSchedulesDelete

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

read, err := client.PatchSchedulesDelete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RedisClient.PatchSchedulesGet

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

read, err := client.PatchSchedulesGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RedisClient.PatchSchedulesListByRedisResource

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

// alternatively `client.PatchSchedulesListByRedisResource(ctx, id)` can be used to do batched pagination
items, err := client.PatchSchedulesListByRedisResourceComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RedisClient.RegenerateKey

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

payload := redis.RedisRegenerateKeyParameters{
	// ...
}


read, err := client.RegenerateKey(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RedisClient.Update

ctx := context.TODO()
id := redis.NewRediID("12345678-1234-9876-4563-123456789012", "example-resource-group", "redisValue")

payload := redis.RedisUpdateParameters{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAccessPolicyAssignmentProvisioningState

func PossibleValuesForAccessPolicyAssignmentProvisioningState() []string

func PossibleValuesForAccessPolicyProvisioningState

func PossibleValuesForAccessPolicyProvisioningState() []string

func PossibleValuesForAccessPolicyType

func PossibleValuesForAccessPolicyType() []string

func PossibleValuesForDayOfWeek

func PossibleValuesForDayOfWeek() []string

func PossibleValuesForPrivateEndpointConnectionProvisioningState

func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string

func PossibleValuesForPrivateEndpointServiceConnectionStatus

func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForPublicNetworkAccess

func PossibleValuesForPublicNetworkAccess() []string

func PossibleValuesForRebootType

func PossibleValuesForRebootType() []string

func PossibleValuesForRedisKeyType

func PossibleValuesForRedisKeyType() []string

func PossibleValuesForReplicationRole

func PossibleValuesForReplicationRole() []string

func PossibleValuesForSkuFamily

func PossibleValuesForSkuFamily() []string

func PossibleValuesForSkuName

func PossibleValuesForSkuName() []string

func PossibleValuesForTlsVersion

func PossibleValuesForTlsVersion() []string

func PossibleValuesForUpdateChannel

func PossibleValuesForUpdateChannel() []string

func ValidateAccessPolicyAssignmentID

func ValidateAccessPolicyAssignmentID(input interface{}, key string) (warnings []string, errors []error)

ValidateAccessPolicyAssignmentID checks that 'input' can be parsed as a Access Policy Assignment ID

func ValidateAccessPolicyID

func ValidateAccessPolicyID(input interface{}, key string) (warnings []string, errors []error)

ValidateAccessPolicyID checks that 'input' can be parsed as a Access Policy ID

func ValidateFirewallRuleID

func ValidateFirewallRuleID(input interface{}, key string) (warnings []string, errors []error)

ValidateFirewallRuleID checks that 'input' can be parsed as a Firewall Rule ID

func ValidateLinkedServerID

func ValidateLinkedServerID(input interface{}, key string) (warnings []string, errors []error)

ValidateLinkedServerID checks that 'input' can be parsed as a Linked Server ID

func ValidateRediID

func ValidateRediID(input interface{}, key string) (warnings []string, errors []error)

ValidateRediID checks that 'input' can be parsed as a Redi ID

Types

type AccessPolicyAssignmentCreateUpdateOperationResponse

type AccessPolicyAssignmentCreateUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RedisCacheAccessPolicyAssignment
}

type AccessPolicyAssignmentDeleteOperationResponse

type AccessPolicyAssignmentDeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type AccessPolicyAssignmentGetOperationResponse

type AccessPolicyAssignmentGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RedisCacheAccessPolicyAssignment
}

type AccessPolicyAssignmentId

type AccessPolicyAssignmentId struct {
	SubscriptionId             string
	ResourceGroupName          string
	RedisName                  string
	AccessPolicyAssignmentName string
}

AccessPolicyAssignmentId is a struct representing the Resource ID for a Access Policy Assignment

func NewAccessPolicyAssignmentID

func NewAccessPolicyAssignmentID(subscriptionId string, resourceGroupName string, redisName string, accessPolicyAssignmentName string) AccessPolicyAssignmentId

NewAccessPolicyAssignmentID returns a new AccessPolicyAssignmentId struct

func ParseAccessPolicyAssignmentID

func ParseAccessPolicyAssignmentID(input string) (*AccessPolicyAssignmentId, error)

ParseAccessPolicyAssignmentID parses 'input' into a AccessPolicyAssignmentId

func ParseAccessPolicyAssignmentIDInsensitively

func ParseAccessPolicyAssignmentIDInsensitively(input string) (*AccessPolicyAssignmentId, error)

ParseAccessPolicyAssignmentIDInsensitively parses 'input' case-insensitively into a AccessPolicyAssignmentId note: this method should only be used for API response data and not user input

func (*AccessPolicyAssignmentId) FromParseResult

func (id *AccessPolicyAssignmentId) FromParseResult(input resourceids.ParseResult) error

func (AccessPolicyAssignmentId) ID

ID returns the formatted Access Policy Assignment ID

func (AccessPolicyAssignmentId) Segments

Segments returns a slice of Resource ID Segments which comprise this Access Policy Assignment ID

func (AccessPolicyAssignmentId) String

func (id AccessPolicyAssignmentId) String() string

String returns a human-readable description of this Access Policy Assignment ID

type AccessPolicyAssignmentListCompleteResult

type AccessPolicyAssignmentListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []RedisCacheAccessPolicyAssignment
}

type AccessPolicyAssignmentListOperationResponse

type AccessPolicyAssignmentListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RedisCacheAccessPolicyAssignment
}

type AccessPolicyAssignmentProvisioningState

type AccessPolicyAssignmentProvisioningState string
const (
	AccessPolicyAssignmentProvisioningStateCanceled  AccessPolicyAssignmentProvisioningState = "Canceled"
	AccessPolicyAssignmentProvisioningStateDeleted   AccessPolicyAssignmentProvisioningState = "Deleted"
	AccessPolicyAssignmentProvisioningStateDeleting  AccessPolicyAssignmentProvisioningState = "Deleting"
	AccessPolicyAssignmentProvisioningStateFailed    AccessPolicyAssignmentProvisioningState = "Failed"
	AccessPolicyAssignmentProvisioningStateSucceeded AccessPolicyAssignmentProvisioningState = "Succeeded"
	AccessPolicyAssignmentProvisioningStateUpdating  AccessPolicyAssignmentProvisioningState = "Updating"
)

func (*AccessPolicyAssignmentProvisioningState) UnmarshalJSON

func (s *AccessPolicyAssignmentProvisioningState) UnmarshalJSON(bytes []byte) error

type AccessPolicyCreateUpdateOperationResponse

type AccessPolicyCreateUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RedisCacheAccessPolicy
}

type AccessPolicyDeleteOperationResponse

type AccessPolicyDeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type AccessPolicyGetOperationResponse

type AccessPolicyGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RedisCacheAccessPolicy
}

type AccessPolicyId

type AccessPolicyId struct {
	SubscriptionId    string
	ResourceGroupName string
	RedisName         string
	AccessPolicyName  string
}

AccessPolicyId is a struct representing the Resource ID for a Access Policy

func NewAccessPolicyID

func NewAccessPolicyID(subscriptionId string, resourceGroupName string, redisName string, accessPolicyName string) AccessPolicyId

NewAccessPolicyID returns a new AccessPolicyId struct

func ParseAccessPolicyID

func ParseAccessPolicyID(input string) (*AccessPolicyId, error)

ParseAccessPolicyID parses 'input' into a AccessPolicyId

func ParseAccessPolicyIDInsensitively

func ParseAccessPolicyIDInsensitively(input string) (*AccessPolicyId, error)

ParseAccessPolicyIDInsensitively parses 'input' case-insensitively into a AccessPolicyId note: this method should only be used for API response data and not user input

func (*AccessPolicyId) FromParseResult

func (id *AccessPolicyId) FromParseResult(input resourceids.ParseResult) error

func (AccessPolicyId) ID

func (id AccessPolicyId) ID() string

ID returns the formatted Access Policy ID

func (AccessPolicyId) Segments

func (id AccessPolicyId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Access Policy ID

func (AccessPolicyId) String

func (id AccessPolicyId) String() string

String returns a human-readable description of this Access Policy ID

type AccessPolicyListCompleteResult

type AccessPolicyListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []RedisCacheAccessPolicy
}

type AccessPolicyListOperationResponse

type AccessPolicyListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RedisCacheAccessPolicy
}

type AccessPolicyProvisioningState

type AccessPolicyProvisioningState string
const (
	AccessPolicyProvisioningStateCanceled  AccessPolicyProvisioningState = "Canceled"
	AccessPolicyProvisioningStateDeleted   AccessPolicyProvisioningState = "Deleted"
	AccessPolicyProvisioningStateDeleting  AccessPolicyProvisioningState = "Deleting"
	AccessPolicyProvisioningStateFailed    AccessPolicyProvisioningState = "Failed"
	AccessPolicyProvisioningStateSucceeded AccessPolicyProvisioningState = "Succeeded"
	AccessPolicyProvisioningStateUpdating  AccessPolicyProvisioningState = "Updating"
)

func (*AccessPolicyProvisioningState) UnmarshalJSON

func (s *AccessPolicyProvisioningState) UnmarshalJSON(bytes []byte) error

type AccessPolicyType

type AccessPolicyType string
const (
	AccessPolicyTypeBuiltIn AccessPolicyType = "BuiltIn"
	AccessPolicyTypeCustom  AccessPolicyType = "Custom"
)

func (*AccessPolicyType) UnmarshalJSON

func (s *AccessPolicyType) UnmarshalJSON(bytes []byte) error

type CheckNameAvailabilityOperationResponse

type CheckNameAvailabilityOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type CheckNameAvailabilityParameters

type CheckNameAvailabilityParameters struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type CreateOperationResponse

type CreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RedisResource
}

type DayOfWeek

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

func (*DayOfWeek) UnmarshalJSON

func (s *DayOfWeek) UnmarshalJSON(bytes []byte) error

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type ErrorAdditionalInfo

type ErrorAdditionalInfo struct {
	Info *interface{} `json:"info,omitempty"`
	Type *string      `json:"type,omitempty"`
}

type ErrorDetail

type ErrorDetail struct {
	AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"`
	Code           *string                `json:"code,omitempty"`
	Details        *[]ErrorDetail         `json:"details,omitempty"`
	Message        *string                `json:"message,omitempty"`
	Target         *string                `json:"target,omitempty"`
}

type ExportDataOperationResponse

type ExportDataOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type ExportRDBParameters

type ExportRDBParameters struct {
	Container                      string  `json:"container"`
	Format                         *string `json:"format,omitempty"`
	PreferredDataArchiveAuthMethod *string `json:"preferred-data-archive-auth-method,omitempty"`
	Prefix                         string  `json:"prefix"`
	StorageSubscriptionId          *string `json:"storage-subscription-id,omitempty"`
}

type FirewallRuleId

type FirewallRuleId struct {
	SubscriptionId    string
	ResourceGroupName string
	RedisName         string
	FirewallRuleName  string
}

FirewallRuleId is a struct representing the Resource ID for a Firewall Rule

func NewFirewallRuleID

func NewFirewallRuleID(subscriptionId string, resourceGroupName string, redisName string, firewallRuleName string) FirewallRuleId

NewFirewallRuleID returns a new FirewallRuleId struct

func ParseFirewallRuleID

func ParseFirewallRuleID(input string) (*FirewallRuleId, error)

ParseFirewallRuleID parses 'input' into a FirewallRuleId

func ParseFirewallRuleIDInsensitively

func ParseFirewallRuleIDInsensitively(input string) (*FirewallRuleId, error)

ParseFirewallRuleIDInsensitively parses 'input' case-insensitively into a FirewallRuleId note: this method should only be used for API response data and not user input

func (*FirewallRuleId) FromParseResult

func (id *FirewallRuleId) FromParseResult(input resourceids.ParseResult) error

func (FirewallRuleId) ID

func (id FirewallRuleId) ID() string

ID returns the formatted Firewall Rule ID

func (FirewallRuleId) Segments

func (id FirewallRuleId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Firewall Rule ID

func (FirewallRuleId) String

func (id FirewallRuleId) String() string

String returns a human-readable description of this Firewall Rule ID

type FirewallRulesCreateOrUpdateOperationResponse

type FirewallRulesCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RedisFirewallRule
}

type FirewallRulesDeleteOperationResponse

type FirewallRulesDeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type FirewallRulesGetOperationResponse

type FirewallRulesGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RedisFirewallRule
}

type FirewallRulesListCompleteResult

type FirewallRulesListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []RedisFirewallRule
}

type FirewallRulesListOperationResponse

type FirewallRulesListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RedisFirewallRule
}

type FlushCacheOperationResponse

type FlushCacheOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *OperationStatusResult
}

type ForceRebootOperationResponse

type ForceRebootOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RedisForceRebootResponse
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RedisResource
}

type ImportDataOperationResponse

type ImportDataOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type ImportRDBParameters

type ImportRDBParameters struct {
	Files                          []string `json:"files"`
	Format                         *string  `json:"format,omitempty"`
	PreferredDataArchiveAuthMethod *string  `json:"preferred-data-archive-auth-method,omitempty"`
	StorageSubscriptionId          *string  `json:"storage-subscription-id,omitempty"`
}

type LinkedServerCreateOperationResponse

type LinkedServerCreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RedisLinkedServerWithProperties
}

type LinkedServerDeleteOperationResponse

type LinkedServerDeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type LinkedServerGetOperationResponse

type LinkedServerGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RedisLinkedServerWithProperties
}

type LinkedServerId

type LinkedServerId struct {
	SubscriptionId    string
	ResourceGroupName string
	RedisName         string
	LinkedServerName  string
}

LinkedServerId is a struct representing the Resource ID for a Linked Server

func NewLinkedServerID

func NewLinkedServerID(subscriptionId string, resourceGroupName string, redisName string, linkedServerName string) LinkedServerId

NewLinkedServerID returns a new LinkedServerId struct

func ParseLinkedServerID

func ParseLinkedServerID(input string) (*LinkedServerId, error)

ParseLinkedServerID parses 'input' into a LinkedServerId

func ParseLinkedServerIDInsensitively

func ParseLinkedServerIDInsensitively(input string) (*LinkedServerId, error)

ParseLinkedServerIDInsensitively parses 'input' case-insensitively into a LinkedServerId note: this method should only be used for API response data and not user input

func (*LinkedServerId) FromParseResult

func (id *LinkedServerId) FromParseResult(input resourceids.ParseResult) error

func (LinkedServerId) ID

func (id LinkedServerId) ID() string

ID returns the formatted Linked Server ID

func (LinkedServerId) Segments

func (id LinkedServerId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Linked Server ID

func (LinkedServerId) String

func (id LinkedServerId) String() string

String returns a human-readable description of this Linked Server ID

type LinkedServerListCompleteResult

type LinkedServerListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []RedisLinkedServerWithProperties
}

type LinkedServerListOperationResponse

type LinkedServerListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RedisLinkedServerWithProperties
}

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []RedisResource
}

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RedisResource
}

type ListBySubscriptionCompleteResult

type ListBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []RedisResource
}

type ListBySubscriptionOperationResponse

type ListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RedisResource
}

type ListKeysOperationResponse

type ListKeysOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RedisAccessKeys
}

type ListUpgradeNotificationsCompleteResult

type ListUpgradeNotificationsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []UpgradeNotification
}

type ListUpgradeNotificationsOperationOptions

type ListUpgradeNotificationsOperationOptions struct {
	History *float64
}

func DefaultListUpgradeNotificationsOperationOptions

func DefaultListUpgradeNotificationsOperationOptions() ListUpgradeNotificationsOperationOptions

func (ListUpgradeNotificationsOperationOptions) ToHeaders

func (ListUpgradeNotificationsOperationOptions) ToOData

func (ListUpgradeNotificationsOperationOptions) ToQuery

type ListUpgradeNotificationsOperationResponse

type ListUpgradeNotificationsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]UpgradeNotification
}

type OperationStatusResult

type OperationStatusResult struct {
	EndTime         *string                  `json:"endTime,omitempty"`
	Error           *ErrorDetail             `json:"error,omitempty"`
	Id              *string                  `json:"id,omitempty"`
	Name            *string                  `json:"name,omitempty"`
	Operations      *[]OperationStatusResult `json:"operations,omitempty"`
	PercentComplete *float64                 `json:"percentComplete,omitempty"`
	StartTime       *string                  `json:"startTime,omitempty"`
	Status          string                   `json:"status"`
}

func (*OperationStatusResult) GetEndTimeAsTime

func (o *OperationStatusResult) GetEndTimeAsTime() (*time.Time, error)

func (*OperationStatusResult) GetStartTimeAsTime

func (o *OperationStatusResult) GetStartTimeAsTime() (*time.Time, error)

func (*OperationStatusResult) SetEndTimeAsTime

func (o *OperationStatusResult) SetEndTimeAsTime(input time.Time)

func (*OperationStatusResult) SetStartTimeAsTime

func (o *OperationStatusResult) SetStartTimeAsTime(input time.Time)

type PatchSchedulesCreateOrUpdateOperationResponse

type PatchSchedulesCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RedisPatchSchedule
}

type PatchSchedulesDeleteOperationResponse

type PatchSchedulesDeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type PatchSchedulesGetOperationResponse

type PatchSchedulesGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RedisPatchSchedule
}

type PatchSchedulesListByRedisResourceCompleteResult

type PatchSchedulesListByRedisResourceCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []RedisPatchSchedule
}

type PatchSchedulesListByRedisResourceOperationResponse

type PatchSchedulesListByRedisResourceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RedisPatchSchedule
}

type PrivateEndpoint

type PrivateEndpoint struct {
	Id *string `json:"id,omitempty"`
}

type PrivateEndpointConnection

type PrivateEndpointConnection struct {
	Id         *string                              `json:"id,omitempty"`
	Name       *string                              `json:"name,omitempty"`
	Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"`
	Type       *string                              `json:"type,omitempty"`
}

type PrivateEndpointConnectionProperties

type PrivateEndpointConnectionProperties struct {
	PrivateEndpoint                   *PrivateEndpoint                            `json:"privateEndpoint,omitempty"`
	PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState           `json:"privateLinkServiceConnectionState"`
	ProvisioningState                 *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"`
}

type PrivateEndpointConnectionProvisioningState

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

func (*PrivateEndpointConnectionProvisioningState) UnmarshalJSON

func (s *PrivateEndpointConnectionProvisioningState) UnmarshalJSON(bytes []byte) error

type PrivateEndpointServiceConnectionStatus

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

func (*PrivateEndpointServiceConnectionStatus) UnmarshalJSON

func (s *PrivateEndpointServiceConnectionStatus) UnmarshalJSON(bytes []byte) error

type PrivateLinkServiceConnectionState

type PrivateLinkServiceConnectionState struct {
	ActionsRequired *string                                 `json:"actionsRequired,omitempty"`
	Description     *string                                 `json:"description,omitempty"`
	Status          *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"`
}

type ProvisioningState

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

func (*ProvisioningState) UnmarshalJSON

func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error

type PublicNetworkAccess

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

func (*PublicNetworkAccess) UnmarshalJSON

func (s *PublicNetworkAccess) UnmarshalJSON(bytes []byte) error

type RebootType

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

func (*RebootType) UnmarshalJSON

func (s *RebootType) UnmarshalJSON(bytes []byte) error

type RediId

type RediId struct {
	SubscriptionId    string
	ResourceGroupName string
	RedisName         string
}

RediId is a struct representing the Resource ID for a Redi

func NewRediID

func NewRediID(subscriptionId string, resourceGroupName string, redisName string) RediId

NewRediID returns a new RediId struct

func ParseRediID

func ParseRediID(input string) (*RediId, error)

ParseRediID parses 'input' into a RediId

func ParseRediIDInsensitively

func ParseRediIDInsensitively(input string) (*RediId, error)

ParseRediIDInsensitively parses 'input' case-insensitively into a RediId note: this method should only be used for API response data and not user input

func (*RediId) FromParseResult

func (id *RediId) FromParseResult(input resourceids.ParseResult) error

func (RediId) ID

func (id RediId) ID() string

ID returns the formatted Redi ID

func (RediId) Segments

func (id RediId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Redi ID

func (RediId) String

func (id RediId) String() string

String returns a human-readable description of this Redi ID

type RedisAccessKeys

type RedisAccessKeys struct {
	PrimaryKey   *string `json:"primaryKey,omitempty"`
	SecondaryKey *string `json:"secondaryKey,omitempty"`
}

type RedisCacheAccessPolicy

type RedisCacheAccessPolicy struct {
	Id         *string                           `json:"id,omitempty"`
	Name       *string                           `json:"name,omitempty"`
	Properties *RedisCacheAccessPolicyProperties `json:"properties,omitempty"`
	Type       *string                           `json:"type,omitempty"`
}

type RedisCacheAccessPolicyAssignment

type RedisCacheAccessPolicyAssignment struct {
	Id         *string                                     `json:"id,omitempty"`
	Name       *string                                     `json:"name,omitempty"`
	Properties *RedisCacheAccessPolicyAssignmentProperties `json:"properties,omitempty"`
	Type       *string                                     `json:"type,omitempty"`
}

type RedisCacheAccessPolicyAssignmentOperationPredicate

type RedisCacheAccessPolicyAssignmentOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (RedisCacheAccessPolicyAssignmentOperationPredicate) Matches

type RedisCacheAccessPolicyAssignmentProperties

type RedisCacheAccessPolicyAssignmentProperties struct {
	AccessPolicyName  string                                   `json:"accessPolicyName"`
	ObjectId          string                                   `json:"objectId"`
	ObjectIdAlias     string                                   `json:"objectIdAlias"`
	ProvisioningState *AccessPolicyAssignmentProvisioningState `json:"provisioningState,omitempty"`
}

type RedisCacheAccessPolicyOperationPredicate

type RedisCacheAccessPolicyOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (RedisCacheAccessPolicyOperationPredicate) Matches

type RedisCacheAccessPolicyProperties

type RedisCacheAccessPolicyProperties struct {
	Permissions       string                         `json:"permissions"`
	ProvisioningState *AccessPolicyProvisioningState `json:"provisioningState,omitempty"`
	Type              *AccessPolicyType              `json:"type,omitempty"`
}

type RedisClient

type RedisClient struct {
	Client *resourcemanager.Client
}

func NewRedisClientWithBaseURI

func NewRedisClientWithBaseURI(sdkApi sdkEnv.Api) (*RedisClient, error)

func (RedisClient) AccessPolicyAssignmentCreateUpdate

AccessPolicyAssignmentCreateUpdate ...

func (RedisClient) AccessPolicyAssignmentCreateUpdateThenPoll

func (c RedisClient) AccessPolicyAssignmentCreateUpdateThenPoll(ctx context.Context, id AccessPolicyAssignmentId, input RedisCacheAccessPolicyAssignment) error

AccessPolicyAssignmentCreateUpdateThenPoll performs AccessPolicyAssignmentCreateUpdate then polls until it's completed

func (RedisClient) AccessPolicyAssignmentDelete

func (c RedisClient) AccessPolicyAssignmentDelete(ctx context.Context, id AccessPolicyAssignmentId) (result AccessPolicyAssignmentDeleteOperationResponse, err error)

AccessPolicyAssignmentDelete ...

func (RedisClient) AccessPolicyAssignmentDeleteThenPoll

func (c RedisClient) AccessPolicyAssignmentDeleteThenPoll(ctx context.Context, id AccessPolicyAssignmentId) error

AccessPolicyAssignmentDeleteThenPoll performs AccessPolicyAssignmentDelete then polls until it's completed

func (RedisClient) AccessPolicyAssignmentGet

func (c RedisClient) AccessPolicyAssignmentGet(ctx context.Context, id AccessPolicyAssignmentId) (result AccessPolicyAssignmentGetOperationResponse, err error)

AccessPolicyAssignmentGet ...

func (RedisClient) AccessPolicyAssignmentList

func (c RedisClient) AccessPolicyAssignmentList(ctx context.Context, id RediId) (result AccessPolicyAssignmentListOperationResponse, err error)

AccessPolicyAssignmentList ...

func (RedisClient) AccessPolicyAssignmentListComplete

func (c RedisClient) AccessPolicyAssignmentListComplete(ctx context.Context, id RediId) (AccessPolicyAssignmentListCompleteResult, error)

AccessPolicyAssignmentListComplete retrieves all the results into a single object

func (RedisClient) AccessPolicyAssignmentListCompleteMatchingPredicate

func (c RedisClient) AccessPolicyAssignmentListCompleteMatchingPredicate(ctx context.Context, id RediId, predicate RedisCacheAccessPolicyAssignmentOperationPredicate) (result AccessPolicyAssignmentListCompleteResult, err error)

AccessPolicyAssignmentListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RedisClient) AccessPolicyCreateUpdate

func (c RedisClient) AccessPolicyCreateUpdate(ctx context.Context, id AccessPolicyId, input RedisCacheAccessPolicy) (result AccessPolicyCreateUpdateOperationResponse, err error)

AccessPolicyCreateUpdate ...

func (RedisClient) AccessPolicyCreateUpdateThenPoll

func (c RedisClient) AccessPolicyCreateUpdateThenPoll(ctx context.Context, id AccessPolicyId, input RedisCacheAccessPolicy) error

AccessPolicyCreateUpdateThenPoll performs AccessPolicyCreateUpdate then polls until it's completed

func (RedisClient) AccessPolicyDelete

func (c RedisClient) AccessPolicyDelete(ctx context.Context, id AccessPolicyId) (result AccessPolicyDeleteOperationResponse, err error)

AccessPolicyDelete ...

func (RedisClient) AccessPolicyDeleteThenPoll

func (c RedisClient) AccessPolicyDeleteThenPoll(ctx context.Context, id AccessPolicyId) error

AccessPolicyDeleteThenPoll performs AccessPolicyDelete then polls until it's completed

func (RedisClient) AccessPolicyGet

func (c RedisClient) AccessPolicyGet(ctx context.Context, id AccessPolicyId) (result AccessPolicyGetOperationResponse, err error)

AccessPolicyGet ...

func (RedisClient) AccessPolicyList

func (c RedisClient) AccessPolicyList(ctx context.Context, id RediId) (result AccessPolicyListOperationResponse, err error)

AccessPolicyList ...

func (RedisClient) AccessPolicyListComplete

func (c RedisClient) AccessPolicyListComplete(ctx context.Context, id RediId) (AccessPolicyListCompleteResult, error)

AccessPolicyListComplete retrieves all the results into a single object

func (RedisClient) AccessPolicyListCompleteMatchingPredicate

func (c RedisClient) AccessPolicyListCompleteMatchingPredicate(ctx context.Context, id RediId, predicate RedisCacheAccessPolicyOperationPredicate) (result AccessPolicyListCompleteResult, err error)

AccessPolicyListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RedisClient) CheckNameAvailability

CheckNameAvailability ...

func (RedisClient) Create

func (c RedisClient) Create(ctx context.Context, id RediId, input RedisCreateParameters) (result CreateOperationResponse, err error)

Create ...

func (RedisClient) CreateThenPoll

func (c RedisClient) CreateThenPoll(ctx context.Context, id RediId, input RedisCreateParameters) error

CreateThenPoll performs Create then polls until it's completed

func (RedisClient) Delete

func (c RedisClient) Delete(ctx context.Context, id RediId) (result DeleteOperationResponse, err error)

Delete ...

func (RedisClient) DeleteThenPoll

func (c RedisClient) DeleteThenPoll(ctx context.Context, id RediId) error

DeleteThenPoll performs Delete then polls until it's completed

func (RedisClient) ExportData

func (c RedisClient) ExportData(ctx context.Context, id RediId, input ExportRDBParameters) (result ExportDataOperationResponse, err error)

ExportData ...

func (RedisClient) ExportDataThenPoll

func (c RedisClient) ExportDataThenPoll(ctx context.Context, id RediId, input ExportRDBParameters) error

ExportDataThenPoll performs ExportData then polls until it's completed

func (RedisClient) FirewallRulesCreateOrUpdate

func (c RedisClient) FirewallRulesCreateOrUpdate(ctx context.Context, id FirewallRuleId, input RedisFirewallRule) (result FirewallRulesCreateOrUpdateOperationResponse, err error)

FirewallRulesCreateOrUpdate ...

func (RedisClient) FirewallRulesDelete

func (c RedisClient) FirewallRulesDelete(ctx context.Context, id FirewallRuleId) (result FirewallRulesDeleteOperationResponse, err error)

FirewallRulesDelete ...

func (RedisClient) FirewallRulesGet

func (c RedisClient) FirewallRulesGet(ctx context.Context, id FirewallRuleId) (result FirewallRulesGetOperationResponse, err error)

FirewallRulesGet ...

func (RedisClient) FirewallRulesList

func (c RedisClient) FirewallRulesList(ctx context.Context, id RediId) (result FirewallRulesListOperationResponse, err error)

FirewallRulesList ...

func (RedisClient) FirewallRulesListComplete

func (c RedisClient) FirewallRulesListComplete(ctx context.Context, id RediId) (FirewallRulesListCompleteResult, error)

FirewallRulesListComplete retrieves all the results into a single object

func (RedisClient) FirewallRulesListCompleteMatchingPredicate

func (c RedisClient) FirewallRulesListCompleteMatchingPredicate(ctx context.Context, id RediId, predicate RedisFirewallRuleOperationPredicate) (result FirewallRulesListCompleteResult, err error)

FirewallRulesListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RedisClient) FlushCache

func (c RedisClient) FlushCache(ctx context.Context, id RediId) (result FlushCacheOperationResponse, err error)

FlushCache ...

func (RedisClient) FlushCacheThenPoll

func (c RedisClient) FlushCacheThenPoll(ctx context.Context, id RediId) error

FlushCacheThenPoll performs FlushCache then polls until it's completed

func (RedisClient) ForceReboot

func (c RedisClient) ForceReboot(ctx context.Context, id RediId, input RedisRebootParameters) (result ForceRebootOperationResponse, err error)

ForceReboot ...

func (RedisClient) Get

func (c RedisClient) Get(ctx context.Context, id RediId) (result GetOperationResponse, err error)

Get ...

func (RedisClient) ImportData

func (c RedisClient) ImportData(ctx context.Context, id RediId, input ImportRDBParameters) (result ImportDataOperationResponse, err error)

ImportData ...

func (RedisClient) ImportDataThenPoll

func (c RedisClient) ImportDataThenPoll(ctx context.Context, id RediId, input ImportRDBParameters) error

ImportDataThenPoll performs ImportData then polls until it's completed

func (RedisClient) LinkedServerCreate

LinkedServerCreate ...

func (RedisClient) LinkedServerCreateThenPoll

func (c RedisClient) LinkedServerCreateThenPoll(ctx context.Context, id LinkedServerId, input RedisLinkedServerCreateParameters) error

LinkedServerCreateThenPoll performs LinkedServerCreate then polls until it's completed

func (RedisClient) LinkedServerDelete

func (c RedisClient) LinkedServerDelete(ctx context.Context, id LinkedServerId) (result LinkedServerDeleteOperationResponse, err error)

LinkedServerDelete ...

func (RedisClient) LinkedServerDeleteThenPoll

func (c RedisClient) LinkedServerDeleteThenPoll(ctx context.Context, id LinkedServerId) error

LinkedServerDeleteThenPoll performs LinkedServerDelete then polls until it's completed

func (RedisClient) LinkedServerGet

func (c RedisClient) LinkedServerGet(ctx context.Context, id LinkedServerId) (result LinkedServerGetOperationResponse, err error)

LinkedServerGet ...

func (RedisClient) LinkedServerList

func (c RedisClient) LinkedServerList(ctx context.Context, id RediId) (result LinkedServerListOperationResponse, err error)

LinkedServerList ...

func (RedisClient) LinkedServerListComplete

func (c RedisClient) LinkedServerListComplete(ctx context.Context, id RediId) (LinkedServerListCompleteResult, error)

LinkedServerListComplete retrieves all the results into a single object

func (RedisClient) LinkedServerListCompleteMatchingPredicate

func (c RedisClient) LinkedServerListCompleteMatchingPredicate(ctx context.Context, id RediId, predicate RedisLinkedServerWithPropertiesOperationPredicate) (result LinkedServerListCompleteResult, err error)

LinkedServerListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RedisClient) ListByResourceGroup

func (c RedisClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)

ListByResourceGroup ...

func (RedisClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (RedisClient) ListByResourceGroupCompleteMatchingPredicate

func (c RedisClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate RedisResourceOperationPredicate) (result ListByResourceGroupCompleteResult, err error)

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RedisClient) ListBySubscription

func (c RedisClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)

ListBySubscription ...

func (RedisClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all the results into a single object

func (RedisClient) ListBySubscriptionCompleteMatchingPredicate

func (c RedisClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate RedisResourceOperationPredicate) (result ListBySubscriptionCompleteResult, err error)

ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RedisClient) ListKeys

func (c RedisClient) ListKeys(ctx context.Context, id RediId) (result ListKeysOperationResponse, err error)

ListKeys ...

func (RedisClient) ListUpgradeNotifications

ListUpgradeNotifications ...

func (RedisClient) ListUpgradeNotificationsComplete

ListUpgradeNotificationsComplete retrieves all the results into a single object

func (RedisClient) ListUpgradeNotificationsCompleteMatchingPredicate

func (c RedisClient) ListUpgradeNotificationsCompleteMatchingPredicate(ctx context.Context, id RediId, options ListUpgradeNotificationsOperationOptions, predicate UpgradeNotificationOperationPredicate) (result ListUpgradeNotificationsCompleteResult, err error)

ListUpgradeNotificationsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RedisClient) PatchSchedulesCreateOrUpdate

func (c RedisClient) PatchSchedulesCreateOrUpdate(ctx context.Context, id RediId, input RedisPatchSchedule) (result PatchSchedulesCreateOrUpdateOperationResponse, err error)

PatchSchedulesCreateOrUpdate ...

func (RedisClient) PatchSchedulesDelete

func (c RedisClient) PatchSchedulesDelete(ctx context.Context, id RediId) (result PatchSchedulesDeleteOperationResponse, err error)

PatchSchedulesDelete ...

func (RedisClient) PatchSchedulesGet

func (c RedisClient) PatchSchedulesGet(ctx context.Context, id RediId) (result PatchSchedulesGetOperationResponse, err error)

PatchSchedulesGet ...

func (RedisClient) PatchSchedulesListByRedisResource

func (c RedisClient) PatchSchedulesListByRedisResource(ctx context.Context, id RediId) (result PatchSchedulesListByRedisResourceOperationResponse, err error)

PatchSchedulesListByRedisResource ...

func (RedisClient) PatchSchedulesListByRedisResourceComplete

func (c RedisClient) PatchSchedulesListByRedisResourceComplete(ctx context.Context, id RediId) (PatchSchedulesListByRedisResourceCompleteResult, error)

PatchSchedulesListByRedisResourceComplete retrieves all the results into a single object

func (RedisClient) PatchSchedulesListByRedisResourceCompleteMatchingPredicate

func (c RedisClient) PatchSchedulesListByRedisResourceCompleteMatchingPredicate(ctx context.Context, id RediId, predicate RedisPatchScheduleOperationPredicate) (result PatchSchedulesListByRedisResourceCompleteResult, err error)

PatchSchedulesListByRedisResourceCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RedisClient) RegenerateKey

RegenerateKey ...

func (RedisClient) Update

func (c RedisClient) Update(ctx context.Context, id RediId, input RedisUpdateParameters) (result UpdateOperationResponse, err error)

Update ...

func (RedisClient) UpdateThenPoll

func (c RedisClient) UpdateThenPoll(ctx context.Context, id RediId, input RedisUpdateParameters) error

UpdateThenPoll performs Update then polls until it's completed

type RedisCommonPropertiesRedisConfiguration

type RedisCommonPropertiesRedisConfiguration struct {
	AadEnabled                         *string `json:"aad-enabled,omitempty"`
	AofBackupEnabled                   *string `json:"aof-backup-enabled,omitempty"`
	AofStorageConnectionString0        *string `json:"aof-storage-connection-string-0,omitempty"`
	AofStorageConnectionString1        *string `json:"aof-storage-connection-string-1,omitempty"`
	Authnotrequired                    *string `json:"authnotrequired,omitempty"`
	Maxclients                         *string `json:"maxclients,omitempty"`
	MaxfragmentationmemoryReserved     *string `json:"maxfragmentationmemory-reserved,omitempty"`
	MaxmemoryDelta                     *string `json:"maxmemory-delta,omitempty"`
	MaxmemoryPolicy                    *string `json:"maxmemory-policy,omitempty"`
	MaxmemoryReserved                  *string `json:"maxmemory-reserved,omitempty"`
	NotifyKeyspaceEvents               string  `json:"notify-keyspace-events"`
	PreferredDataArchiveAuthMethod     *string `json:"preferred-data-archive-auth-method,omitempty"`
	PreferredDataPersistenceAuthMethod *string `json:"preferred-data-persistence-auth-method,omitempty"`
	RdbBackupEnabled                   *string `json:"rdb-backup-enabled,omitempty"`
	RdbBackupFrequency                 *string `json:"rdb-backup-frequency,omitempty"`
	RdbBackupMaxSnapshotCount          *string `json:"rdb-backup-max-snapshot-count,omitempty"`
	RdbStorageConnectionString         *string `json:"rdb-storage-connection-string,omitempty"`
	StorageSubscriptionId              *string `json:"storage-subscription-id,omitempty"`
	ZonalConfiguration                 *string `json:"zonal-configuration,omitempty"`
}

type RedisCreateParameters

type RedisCreateParameters struct {
	Identity   *identity.SystemAndUserAssignedMap `json:"identity,omitempty"`
	Location   string                             `json:"location"`
	Properties RedisCreateProperties              `json:"properties"`
	Tags       *map[string]string                 `json:"tags,omitempty"`
	Zones      *zones.Schema                      `json:"zones,omitempty"`
}

type RedisCreateProperties

type RedisCreateProperties struct {
	EnableNonSslPort    *bool                                    `json:"enableNonSslPort,omitempty"`
	MinimumTlsVersion   *TlsVersion                              `json:"minimumTlsVersion,omitempty"`
	PublicNetworkAccess *PublicNetworkAccess                     `json:"publicNetworkAccess,omitempty"`
	RedisConfiguration  *RedisCommonPropertiesRedisConfiguration `json:"redisConfiguration,omitempty"`
	RedisVersion        *string                                  `json:"redisVersion,omitempty"`
	ReplicasPerMaster   *int64                                   `json:"replicasPerMaster,omitempty"`
	ReplicasPerPrimary  *int64                                   `json:"replicasPerPrimary,omitempty"`
	ShardCount          *int64                                   `json:"shardCount,omitempty"`
	Sku                 Sku                                      `json:"sku"`
	StaticIP            *string                                  `json:"staticIP,omitempty"`
	SubnetId            *string                                  `json:"subnetId,omitempty"`
	TenantSettings      *map[string]string                       `json:"tenantSettings,omitempty"`
	UpdateChannel       *UpdateChannel                           `json:"updateChannel,omitempty"`
}

type RedisFirewallRule

type RedisFirewallRule struct {
	Id         *string                     `json:"id,omitempty"`
	Name       *string                     `json:"name,omitempty"`
	Properties RedisFirewallRuleProperties `json:"properties"`
	Type       *string                     `json:"type,omitempty"`
}

type RedisFirewallRuleOperationPredicate

type RedisFirewallRuleOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (RedisFirewallRuleOperationPredicate) Matches

type RedisFirewallRuleProperties

type RedisFirewallRuleProperties struct {
	EndIP   string `json:"endIP"`
	StartIP string `json:"startIP"`
}

type RedisForceRebootResponse

type RedisForceRebootResponse struct {
	Message *string `json:"message,omitempty"`
}

type RedisInstanceDetails

type RedisInstanceDetails struct {
	IsMaster   *bool   `json:"isMaster,omitempty"`
	IsPrimary  *bool   `json:"isPrimary,omitempty"`
	NonSslPort *int64  `json:"nonSslPort,omitempty"`
	ShardId    *int64  `json:"shardId,omitempty"`
	SslPort    *int64  `json:"sslPort,omitempty"`
	Zone       *string `json:"zone,omitempty"`
}

type RedisKeyType

type RedisKeyType string
const (
	RedisKeyTypePrimary   RedisKeyType = "Primary"
	RedisKeyTypeSecondary RedisKeyType = "Secondary"
)

func (*RedisKeyType) UnmarshalJSON

func (s *RedisKeyType) UnmarshalJSON(bytes []byte) error

type RedisLinkedServer

type RedisLinkedServer struct {
	Id *string `json:"id,omitempty"`
}

type RedisLinkedServerCreateParameters

type RedisLinkedServerCreateParameters struct {
	Properties RedisLinkedServerCreateProperties `json:"properties"`
}

type RedisLinkedServerCreateProperties

type RedisLinkedServerCreateProperties struct {
	GeoReplicatedPrimaryHostName *string         `json:"geoReplicatedPrimaryHostName,omitempty"`
	LinkedRedisCacheId           string          `json:"linkedRedisCacheId"`
	LinkedRedisCacheLocation     string          `json:"linkedRedisCacheLocation"`
	PrimaryHostName              *string         `json:"primaryHostName,omitempty"`
	ServerRole                   ReplicationRole `json:"serverRole"`
}

type RedisLinkedServerProperties

type RedisLinkedServerProperties struct {
	GeoReplicatedPrimaryHostName *string         `json:"geoReplicatedPrimaryHostName,omitempty"`
	LinkedRedisCacheId           string          `json:"linkedRedisCacheId"`
	LinkedRedisCacheLocation     string          `json:"linkedRedisCacheLocation"`
	PrimaryHostName              *string         `json:"primaryHostName,omitempty"`
	ProvisioningState            *string         `json:"provisioningState,omitempty"`
	ServerRole                   ReplicationRole `json:"serverRole"`
}

type RedisLinkedServerWithProperties

type RedisLinkedServerWithProperties struct {
	Id         *string                      `json:"id,omitempty"`
	Name       *string                      `json:"name,omitempty"`
	Properties *RedisLinkedServerProperties `json:"properties,omitempty"`
	Type       *string                      `json:"type,omitempty"`
}

type RedisLinkedServerWithPropertiesOperationPredicate

type RedisLinkedServerWithPropertiesOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (RedisLinkedServerWithPropertiesOperationPredicate) Matches

type RedisPatchSchedule

type RedisPatchSchedule struct {
	Id         *string         `json:"id,omitempty"`
	Location   *string         `json:"location,omitempty"`
	Name       *string         `json:"name,omitempty"`
	Properties ScheduleEntries `json:"properties"`
	Type       *string         `json:"type,omitempty"`
}

type RedisPatchScheduleOperationPredicate

type RedisPatchScheduleOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (RedisPatchScheduleOperationPredicate) Matches

type RedisProperties

type RedisProperties struct {
	AccessKeys                 *RedisAccessKeys                         `json:"accessKeys,omitempty"`
	EnableNonSslPort           *bool                                    `json:"enableNonSslPort,omitempty"`
	HostName                   *string                                  `json:"hostName,omitempty"`
	Instances                  *[]RedisInstanceDetails                  `json:"instances,omitempty"`
	LinkedServers              *[]RedisLinkedServer                     `json:"linkedServers,omitempty"`
	MinimumTlsVersion          *TlsVersion                              `json:"minimumTlsVersion,omitempty"`
	Port                       *int64                                   `json:"port,omitempty"`
	PrivateEndpointConnections *[]PrivateEndpointConnection             `json:"privateEndpointConnections,omitempty"`
	ProvisioningState          *ProvisioningState                       `json:"provisioningState,omitempty"`
	PublicNetworkAccess        *PublicNetworkAccess                     `json:"publicNetworkAccess,omitempty"`
	RedisConfiguration         *RedisCommonPropertiesRedisConfiguration `json:"redisConfiguration,omitempty"`
	RedisVersion               *string                                  `json:"redisVersion,omitempty"`
	ReplicasPerMaster          *int64                                   `json:"replicasPerMaster,omitempty"`
	ReplicasPerPrimary         *int64                                   `json:"replicasPerPrimary,omitempty"`
	ShardCount                 *int64                                   `json:"shardCount,omitempty"`
	Sku                        Sku                                      `json:"sku"`
	SslPort                    *int64                                   `json:"sslPort,omitempty"`
	StaticIP                   *string                                  `json:"staticIP,omitempty"`
	SubnetId                   *string                                  `json:"subnetId,omitempty"`
	TenantSettings             *map[string]string                       `json:"tenantSettings,omitempty"`
	UpdateChannel              *UpdateChannel                           `json:"updateChannel,omitempty"`
}

type RedisRebootParameters

type RedisRebootParameters struct {
	Ports      *[]int64    `json:"ports,omitempty"`
	RebootType *RebootType `json:"rebootType,omitempty"`
	ShardId    *int64      `json:"shardId,omitempty"`
}

type RedisRegenerateKeyParameters

type RedisRegenerateKeyParameters struct {
	KeyType RedisKeyType `json:"keyType"`
}

type RedisResource

type RedisResource struct {
	Id         *string                            `json:"id,omitempty"`
	Identity   *identity.SystemAndUserAssignedMap `json:"identity,omitempty"`
	Location   string                             `json:"location"`
	Name       *string                            `json:"name,omitempty"`
	Properties RedisProperties                    `json:"properties"`
	Tags       *map[string]string                 `json:"tags,omitempty"`
	Type       *string                            `json:"type,omitempty"`
	Zones      *zones.Schema                      `json:"zones,omitempty"`
}

type RedisResourceOperationPredicate

type RedisResourceOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (RedisResourceOperationPredicate) Matches

type RedisUpdateParameters

type RedisUpdateParameters struct {
	Identity   *identity.SystemAndUserAssignedMap `json:"identity,omitempty"`
	Properties *RedisUpdateProperties             `json:"properties,omitempty"`
	Tags       *map[string]string                 `json:"tags,omitempty"`
}

type RedisUpdateProperties

type RedisUpdateProperties struct {
	EnableNonSslPort    *bool                                    `json:"enableNonSslPort,omitempty"`
	MinimumTlsVersion   *TlsVersion                              `json:"minimumTlsVersion,omitempty"`
	PublicNetworkAccess *PublicNetworkAccess                     `json:"publicNetworkAccess,omitempty"`
	RedisConfiguration  *RedisCommonPropertiesRedisConfiguration `json:"redisConfiguration,omitempty"`
	RedisVersion        *string                                  `json:"redisVersion,omitempty"`
	ReplicasPerMaster   *int64                                   `json:"replicasPerMaster,omitempty"`
	ReplicasPerPrimary  *int64                                   `json:"replicasPerPrimary,omitempty"`
	ShardCount          *int64                                   `json:"shardCount,omitempty"`
	Sku                 *Sku                                     `json:"sku,omitempty"`
	TenantSettings      *map[string]string                       `json:"tenantSettings,omitempty"`
	UpdateChannel       *UpdateChannel                           `json:"updateChannel,omitempty"`
}

type RegenerateKeyOperationResponse

type RegenerateKeyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RedisAccessKeys
}

type ReplicationRole

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

func (*ReplicationRole) UnmarshalJSON

func (s *ReplicationRole) UnmarshalJSON(bytes []byte) error

type ScheduleEntries

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

type ScheduleEntry

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

type Sku

type Sku struct {
	Capacity int64     `json:"capacity"`
	Family   SkuFamily `json:"family"`
	Name     SkuName   `json:"name"`
}

type SkuFamily

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

func (*SkuFamily) UnmarshalJSON

func (s *SkuFamily) UnmarshalJSON(bytes []byte) error

type SkuName

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

func (*SkuName) UnmarshalJSON

func (s *SkuName) UnmarshalJSON(bytes []byte) error

type TlsVersion

type TlsVersion string
const (
	TlsVersionOnePointOne  TlsVersion = "1.1"
	TlsVersionOnePointTwo  TlsVersion = "1.2"
	TlsVersionOnePointZero TlsVersion = "1.0"
)

func (*TlsVersion) UnmarshalJSON

func (s *TlsVersion) UnmarshalJSON(bytes []byte) error

type UpdateChannel

type UpdateChannel string
const (
	UpdateChannelPreview UpdateChannel = "Preview"
	UpdateChannelStable  UpdateChannel = "Stable"
)

func (*UpdateChannel) UnmarshalJSON

func (s *UpdateChannel) UnmarshalJSON(bytes []byte) error

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RedisResource
}

type UpgradeNotification

type UpgradeNotification struct {
	Name               *string            `json:"name,omitempty"`
	Timestamp          *string            `json:"timestamp,omitempty"`
	UpsellNotification *map[string]string `json:"upsellNotification,omitempty"`
}

func (*UpgradeNotification) GetTimestampAsTime

func (o *UpgradeNotification) GetTimestampAsTime() (*time.Time, error)

func (*UpgradeNotification) SetTimestampAsTime

func (o *UpgradeNotification) SetTimestampAsTime(input time.Time)

type UpgradeNotificationOperationPredicate

type UpgradeNotificationOperationPredicate struct {
	Name      *string
	Timestamp *string
}

func (UpgradeNotificationOperationPredicate) Matches

Source Files

Jump to

Keyboard shortcuts

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