servervalidateestimatehighavailability

package
v0.20241104.1140654 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MPL-2.0 Imports: 10 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability Documentation

The servervalidateestimatehighavailability SDK allows for interaction with Azure Resource Manager mysql (API Version 2023-12-30).

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-sdk/resource-manager/mysql/2023-12-30/servervalidateestimatehighavailability"

Client Initialization

client := servervalidateestimatehighavailability.NewServerValidateEstimateHighAvailabilityClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ServerValidateEstimateHighAvailabilityClient.ServersValidateEstimateHighAvailability

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

payload := servervalidateestimatehighavailability.HighAvailabilityValidationEstimation{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateFlexibleServerID

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

ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID

Types

type FlexibleServerId

type FlexibleServerId struct {
	SubscriptionId     string
	ResourceGroupName  string
	FlexibleServerName string
}

FlexibleServerId is a struct representing the Resource ID for a Flexible Server

func NewFlexibleServerID

func NewFlexibleServerID(subscriptionId string, resourceGroupName string, flexibleServerName string) FlexibleServerId

NewFlexibleServerID returns a new FlexibleServerId struct

func ParseFlexibleServerID

func ParseFlexibleServerID(input string) (*FlexibleServerId, error)

ParseFlexibleServerID parses 'input' into a FlexibleServerId

func ParseFlexibleServerIDInsensitively

func ParseFlexibleServerIDInsensitively(input string) (*FlexibleServerId, error)

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

func (*FlexibleServerId) FromParseResult

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

func (FlexibleServerId) ID

func (id FlexibleServerId) ID() string

ID returns the formatted Flexible Server ID

func (FlexibleServerId) Segments

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

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

func (FlexibleServerId) String

func (id FlexibleServerId) String() string

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

type HighAvailabilityValidationEstimation

type HighAvailabilityValidationEstimation struct {
	EstimatedDowntime                *int64  `json:"estimatedDowntime,omitempty"`
	ExpectedStandbyAvailabilityZone  *string `json:"expectedStandbyAvailabilityZone,omitempty"`
	ScheduledStandbyAvailabilityZone *string `json:"scheduledStandbyAvailabilityZone,omitempty"`
}

type ServerValidateEstimateHighAvailabilityClient

type ServerValidateEstimateHighAvailabilityClient struct {
	Client *resourcemanager.Client
}

func NewServerValidateEstimateHighAvailabilityClientWithBaseURI

func NewServerValidateEstimateHighAvailabilityClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerValidateEstimateHighAvailabilityClient, error)

func (ServerValidateEstimateHighAvailabilityClient) ServersValidateEstimateHighAvailability

ServersValidateEstimateHighAvailability ...

type ServersValidateEstimateHighAvailabilityOperationResponse

type ServersValidateEstimateHighAvailabilityOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *HighAvailabilityValidationEstimation
}

Jump to

Keyboard shortcuts

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