Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForEnableStatusEnum ¶
func PossibleValuesForEnableStatusEnum() []string
func ValidateFlexibleServerID ¶
ValidateFlexibleServerID checks that 'input' can be parsed as a Flexible Server ID
Types ¶
type EnableStatusEnum ¶
type EnableStatusEnum string
const ( EnableStatusEnumDisabled EnableStatusEnum = "Disabled" EnableStatusEnumEnabled EnableStatusEnum = "Enabled" )
func (*EnableStatusEnum) UnmarshalJSON ¶
func (s *EnableStatusEnum) UnmarshalJSON(bytes []byte) error
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 ServerRestartClient ¶
type ServerRestartClient struct {
Client *resourcemanager.Client
}
func NewServerRestartClientWithBaseURI ¶
func NewServerRestartClientWithBaseURI(sdkApi sdkEnv.Api) (*ServerRestartClient, error)
func (ServerRestartClient) ServersRestart ¶
func (c ServerRestartClient) ServersRestart(ctx context.Context, id FlexibleServerId, input ServerRestartParameter) (result ServersRestartOperationResponse, err error)
ServersRestart ...
func (ServerRestartClient) ServersRestartThenPoll ¶
func (c ServerRestartClient) ServersRestartThenPoll(ctx context.Context, id FlexibleServerId, input ServerRestartParameter) error
ServersRestartThenPoll performs ServersRestart then polls until it's completed
type ServerRestartParameter ¶
type ServerRestartParameter struct { MaxFailoverSeconds *int64 `json:"maxFailoverSeconds,omitempty"` RestartWithFailover *EnableStatusEnum `json:"restartWithFailover,omitempty"` }