Documentation ¶
Index ¶
- func PossibleValuesForRollingUpgradeActionType() []string
- func PossibleValuesForRollingUpgradeStatusCode() []string
- func ValidateVirtualMachineScaleSetID(input interface{}, key string) (warnings []string, errors []error)
- type ApiError
- type ApiErrorBase
- type CancelOperationResponse
- type GetLatestOperationResponse
- type InnerError
- type RollingUpgradeActionType
- type RollingUpgradePolicy
- type RollingUpgradeProgressInfo
- type RollingUpgradeRunningStatus
- func (o *RollingUpgradeRunningStatus) GetLastActionTimeAsTime() (*time.Time, error)
- func (o *RollingUpgradeRunningStatus) GetStartTimeAsTime() (*time.Time, error)
- func (o *RollingUpgradeRunningStatus) SetLastActionTimeAsTime(input time.Time)
- func (o *RollingUpgradeRunningStatus) SetStartTimeAsTime(input time.Time)
- type RollingUpgradeStatusCode
- type RollingUpgradeStatusInfo
- type RollingUpgradeStatusInfoProperties
- type StartExtensionUpgradeOperationResponse
- type StartOSUpgradeOperationResponse
- type VirtualMachineScaleSetId
- type VirtualMachineScaleSetRollingUpgradesClient
- func (c VirtualMachineScaleSetRollingUpgradesClient) Cancel(ctx context.Context, id VirtualMachineScaleSetId) (result CancelOperationResponse, err error)
- func (c VirtualMachineScaleSetRollingUpgradesClient) CancelThenPoll(ctx context.Context, id VirtualMachineScaleSetId) error
- func (c VirtualMachineScaleSetRollingUpgradesClient) GetLatest(ctx context.Context, id VirtualMachineScaleSetId) (result GetLatestOperationResponse, err error)
- func (c VirtualMachineScaleSetRollingUpgradesClient) StartExtensionUpgrade(ctx context.Context, id VirtualMachineScaleSetId) (result StartExtensionUpgradeOperationResponse, err error)
- func (c VirtualMachineScaleSetRollingUpgradesClient) StartExtensionUpgradeThenPoll(ctx context.Context, id VirtualMachineScaleSetId) error
- func (c VirtualMachineScaleSetRollingUpgradesClient) StartOSUpgrade(ctx context.Context, id VirtualMachineScaleSetId) (result StartOSUpgradeOperationResponse, err error)
- func (c VirtualMachineScaleSetRollingUpgradesClient) StartOSUpgradeThenPoll(ctx context.Context, id VirtualMachineScaleSetId) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForRollingUpgradeActionType ¶
func PossibleValuesForRollingUpgradeActionType() []string
func PossibleValuesForRollingUpgradeStatusCode ¶
func PossibleValuesForRollingUpgradeStatusCode() []string
func ValidateVirtualMachineScaleSetID ¶
func ValidateVirtualMachineScaleSetID(input interface{}, key string) (warnings []string, errors []error)
ValidateVirtualMachineScaleSetID checks that 'input' can be parsed as a Virtual Machine Scale Set ID
Types ¶
type ApiError ¶
type ApiError struct { Code *string `json:"code,omitempty"` Details *[]ApiErrorBase `json:"details,omitempty"` Innererror *InnerError `json:"innererror,omitempty"` Message *string `json:"message,omitempty"` Target *string `json:"target,omitempty"` }
type ApiErrorBase ¶
type CancelOperationResponse ¶
type GetLatestOperationResponse ¶
type GetLatestOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RollingUpgradeStatusInfo }
type InnerError ¶
type RollingUpgradeActionType ¶
type RollingUpgradeActionType string
const ( RollingUpgradeActionTypeCancel RollingUpgradeActionType = "Cancel" RollingUpgradeActionTypeStart RollingUpgradeActionType = "Start" )
func (*RollingUpgradeActionType) UnmarshalJSON ¶
func (s *RollingUpgradeActionType) UnmarshalJSON(bytes []byte) error
type RollingUpgradePolicy ¶
type RollingUpgradePolicy struct { EnableCrossZoneUpgrade *bool `json:"enableCrossZoneUpgrade,omitempty"` MaxBatchInstancePercent *int64 `json:"maxBatchInstancePercent,omitempty"` MaxSurge *bool `json:"maxSurge,omitempty"` MaxUnhealthyInstancePercent *int64 `json:"maxUnhealthyInstancePercent,omitempty"` MaxUnhealthyUpgradedInstancePercent *int64 `json:"maxUnhealthyUpgradedInstancePercent,omitempty"` PauseTimeBetweenBatches *string `json:"pauseTimeBetweenBatches,omitempty"` PrioritizeUnhealthyInstances *bool `json:"prioritizeUnhealthyInstances,omitempty"` RollbackFailedInstancesOnPolicyBreach *bool `json:"rollbackFailedInstancesOnPolicyBreach,omitempty"` }
type RollingUpgradeProgressInfo ¶
type RollingUpgradeProgressInfo struct { FailedInstanceCount *int64 `json:"failedInstanceCount,omitempty"` InProgressInstanceCount *int64 `json:"inProgressInstanceCount,omitempty"` PendingInstanceCount *int64 `json:"pendingInstanceCount,omitempty"` SuccessfulInstanceCount *int64 `json:"successfulInstanceCount,omitempty"` }
type RollingUpgradeRunningStatus ¶
type RollingUpgradeRunningStatus struct { Code *RollingUpgradeStatusCode `json:"code,omitempty"` LastAction *RollingUpgradeActionType `json:"lastAction,omitempty"` LastActionTime *string `json:"lastActionTime,omitempty"` StartTime *string `json:"startTime,omitempty"` }
func (*RollingUpgradeRunningStatus) GetLastActionTimeAsTime ¶
func (o *RollingUpgradeRunningStatus) GetLastActionTimeAsTime() (*time.Time, error)
func (*RollingUpgradeRunningStatus) GetStartTimeAsTime ¶
func (o *RollingUpgradeRunningStatus) GetStartTimeAsTime() (*time.Time, error)
func (*RollingUpgradeRunningStatus) SetLastActionTimeAsTime ¶
func (o *RollingUpgradeRunningStatus) SetLastActionTimeAsTime(input time.Time)
func (*RollingUpgradeRunningStatus) SetStartTimeAsTime ¶
func (o *RollingUpgradeRunningStatus) SetStartTimeAsTime(input time.Time)
type RollingUpgradeStatusCode ¶
type RollingUpgradeStatusCode string
const ( RollingUpgradeStatusCodeCancelled RollingUpgradeStatusCode = "Cancelled" RollingUpgradeStatusCodeCompleted RollingUpgradeStatusCode = "Completed" RollingUpgradeStatusCodeFaulted RollingUpgradeStatusCode = "Faulted" RollingUpgradeStatusCodeRollingForward RollingUpgradeStatusCode = "RollingForward" )
func (*RollingUpgradeStatusCode) UnmarshalJSON ¶
func (s *RollingUpgradeStatusCode) UnmarshalJSON(bytes []byte) error
type RollingUpgradeStatusInfo ¶
type RollingUpgradeStatusInfo struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *RollingUpgradeStatusInfoProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type RollingUpgradeStatusInfoProperties ¶
type RollingUpgradeStatusInfoProperties struct { Error *ApiError `json:"error,omitempty"` Policy *RollingUpgradePolicy `json:"policy,omitempty"` Progress *RollingUpgradeProgressInfo `json:"progress,omitempty"` RunningStatus *RollingUpgradeRunningStatus `json:"runningStatus,omitempty"` }
type VirtualMachineScaleSetId ¶
type VirtualMachineScaleSetId struct { SubscriptionId string ResourceGroupName string VirtualMachineScaleSetName string }
VirtualMachineScaleSetId is a struct representing the Resource ID for a Virtual Machine Scale Set
func NewVirtualMachineScaleSetID ¶
func NewVirtualMachineScaleSetID(subscriptionId string, resourceGroupName string, virtualMachineScaleSetName string) VirtualMachineScaleSetId
NewVirtualMachineScaleSetID returns a new VirtualMachineScaleSetId struct
func ParseVirtualMachineScaleSetID ¶
func ParseVirtualMachineScaleSetID(input string) (*VirtualMachineScaleSetId, error)
ParseVirtualMachineScaleSetID parses 'input' into a VirtualMachineScaleSetId
func ParseVirtualMachineScaleSetIDInsensitively ¶
func ParseVirtualMachineScaleSetIDInsensitively(input string) (*VirtualMachineScaleSetId, error)
ParseVirtualMachineScaleSetIDInsensitively parses 'input' case-insensitively into a VirtualMachineScaleSetId note: this method should only be used for API response data and not user input
func (*VirtualMachineScaleSetId) FromParseResult ¶
func (id *VirtualMachineScaleSetId) FromParseResult(input resourceids.ParseResult) error
func (VirtualMachineScaleSetId) ID ¶
func (id VirtualMachineScaleSetId) ID() string
ID returns the formatted Virtual Machine Scale Set ID
func (VirtualMachineScaleSetId) Segments ¶
func (id VirtualMachineScaleSetId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Virtual Machine Scale Set ID
func (VirtualMachineScaleSetId) String ¶
func (id VirtualMachineScaleSetId) String() string
String returns a human-readable description of this Virtual Machine Scale Set ID
type VirtualMachineScaleSetRollingUpgradesClient ¶
type VirtualMachineScaleSetRollingUpgradesClient struct {
Client *resourcemanager.Client
}
func NewVirtualMachineScaleSetRollingUpgradesClientWithBaseURI ¶
func NewVirtualMachineScaleSetRollingUpgradesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachineScaleSetRollingUpgradesClient, error)
func (VirtualMachineScaleSetRollingUpgradesClient) Cancel ¶
func (c VirtualMachineScaleSetRollingUpgradesClient) Cancel(ctx context.Context, id VirtualMachineScaleSetId) (result CancelOperationResponse, err error)
Cancel ...
func (VirtualMachineScaleSetRollingUpgradesClient) CancelThenPoll ¶
func (c VirtualMachineScaleSetRollingUpgradesClient) CancelThenPoll(ctx context.Context, id VirtualMachineScaleSetId) error
CancelThenPoll performs Cancel then polls until it's completed
func (VirtualMachineScaleSetRollingUpgradesClient) GetLatest ¶
func (c VirtualMachineScaleSetRollingUpgradesClient) GetLatest(ctx context.Context, id VirtualMachineScaleSetId) (result GetLatestOperationResponse, err error)
GetLatest ...
func (VirtualMachineScaleSetRollingUpgradesClient) StartExtensionUpgrade ¶
func (c VirtualMachineScaleSetRollingUpgradesClient) StartExtensionUpgrade(ctx context.Context, id VirtualMachineScaleSetId) (result StartExtensionUpgradeOperationResponse, err error)
StartExtensionUpgrade ...
func (VirtualMachineScaleSetRollingUpgradesClient) StartExtensionUpgradeThenPoll ¶
func (c VirtualMachineScaleSetRollingUpgradesClient) StartExtensionUpgradeThenPoll(ctx context.Context, id VirtualMachineScaleSetId) error
StartExtensionUpgradeThenPoll performs StartExtensionUpgrade then polls until it's completed
func (VirtualMachineScaleSetRollingUpgradesClient) StartOSUpgrade ¶
func (c VirtualMachineScaleSetRollingUpgradesClient) StartOSUpgrade(ctx context.Context, id VirtualMachineScaleSetId) (result StartOSUpgradeOperationResponse, err error)
StartOSUpgrade ...
func (VirtualMachineScaleSetRollingUpgradesClient) StartOSUpgradeThenPoll ¶
func (c VirtualMachineScaleSetRollingUpgradesClient) StartOSUpgradeThenPoll(ctx context.Context, id VirtualMachineScaleSetId) error
StartOSUpgradeThenPoll performs StartOSUpgrade then polls until it's completed
Source Files ¶
- client.go
- constants.go
- id_virtualmachinescaleset.go
- method_cancel.go
- method_getlatest.go
- method_startextensionupgrade.go
- method_startosupgrade.go
- model_apierror.go
- model_apierrorbase.go
- model_innererror.go
- model_rollingupgradepolicy.go
- model_rollingupgradeprogressinfo.go
- model_rollingupgraderunningstatus.go
- model_rollingupgradestatusinfo.go
- model_rollingupgradestatusinfoproperties.go
- version.go