Documentation ¶
Index ¶
- func PossibleValuesForAvailabilityType() []string
- func PossibleValuesForHealthState() []string
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForRebootRequirement() []string
- func PossibleValuesForSeverity() []string
- func PossibleValuesForState() []string
- func PossibleValuesForStatus() []string
- func ValidateClusterID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateUpdateID(input interface{}, key string) (warnings []string, errors []error)
- type AvailabilityType
- type ClusterId
- type DeleteOperationResponse
- type GetOperationResponse
- type HealthState
- type ListCompleteResult
- type ListOperationResponse
- type PackageVersionInfo
- type PostOperationResponse
- type PrecheckResult
- type PrecheckResultTags
- type ProvisioningState
- type PutOperationResponse
- type RebootRequirement
- type Severity
- type State
- type Status
- type Update
- type UpdateId
- type UpdateOperationPredicate
- type UpdatePrerequisite
- type UpdateProperties
- type UpdateStateProperties
- type UpdatesClient
- func (c UpdatesClient) Delete(ctx context.Context, id UpdateId) (result DeleteOperationResponse, err error)
- func (c UpdatesClient) DeleteThenPoll(ctx context.Context, id UpdateId) error
- func (c UpdatesClient) Get(ctx context.Context, id UpdateId) (result GetOperationResponse, err error)
- func (c UpdatesClient) List(ctx context.Context, id ClusterId) (result ListOperationResponse, err error)
- func (c UpdatesClient) ListComplete(ctx context.Context, id ClusterId) (ListCompleteResult, error)
- func (c UpdatesClient) ListCompleteMatchingPredicate(ctx context.Context, id ClusterId, predicate UpdateOperationPredicate) (result ListCompleteResult, err error)
- func (c UpdatesClient) Post(ctx context.Context, id UpdateId) (result PostOperationResponse, err error)
- func (c UpdatesClient) PostThenPoll(ctx context.Context, id UpdateId) error
- func (c UpdatesClient) Put(ctx context.Context, id UpdateId, input Update) (result PutOperationResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAvailabilityType ¶
func PossibleValuesForAvailabilityType() []string
func PossibleValuesForHealthState ¶
func PossibleValuesForHealthState() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForRebootRequirement ¶
func PossibleValuesForRebootRequirement() []string
func PossibleValuesForSeverity ¶
func PossibleValuesForSeverity() []string
func PossibleValuesForState ¶
func PossibleValuesForState() []string
func PossibleValuesForStatus ¶
func PossibleValuesForStatus() []string
func ValidateClusterID ¶
ValidateClusterID checks that 'input' can be parsed as a Cluster ID
func ValidateUpdateID ¶
ValidateUpdateID checks that 'input' can be parsed as a Update ID
Types ¶
type AvailabilityType ¶
type AvailabilityType string
const ( AvailabilityTypeLocal AvailabilityType = "Local" AvailabilityTypeNotify AvailabilityType = "Notify" AvailabilityTypeOnline AvailabilityType = "Online" )
func (*AvailabilityType) UnmarshalJSON ¶
func (s *AvailabilityType) UnmarshalJSON(bytes []byte) error
type ClusterId ¶
ClusterId is a struct representing the Resource ID for a Cluster
func NewClusterID ¶
NewClusterID returns a new ClusterId struct
func ParseClusterID ¶
ParseClusterID parses 'input' into a ClusterId
func ParseClusterIDInsensitively ¶
ParseClusterIDInsensitively parses 'input' case-insensitively into a ClusterId note: this method should only be used for API response data and not user input
func (*ClusterId) FromParseResult ¶
func (id *ClusterId) FromParseResult(input resourceids.ParseResult) error
func (ClusterId) Segments ¶
func (id ClusterId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Cluster ID
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type HealthState ¶
type HealthState string
const ( HealthStateError HealthState = "Error" HealthStateFailure HealthState = "Failure" HealthStateInProgress HealthState = "InProgress" HealthStateSuccess HealthState = "Success" HealthStateUnknown HealthState = "Unknown" HealthStateWarning HealthState = "Warning" )
func (*HealthState) UnmarshalJSON ¶
func (s *HealthState) UnmarshalJSON(bytes []byte) error
type ListCompleteResult ¶
type ListOperationResponse ¶
type PackageVersionInfo ¶
type PackageVersionInfo struct { LastUpdated *string `json:"lastUpdated,omitempty"` PackageType *string `json:"packageType,omitempty"` Version *string `json:"version,omitempty"` }
func (*PackageVersionInfo) GetLastUpdatedAsTime ¶
func (o *PackageVersionInfo) GetLastUpdatedAsTime() (*time.Time, error)
func (*PackageVersionInfo) SetLastUpdatedAsTime ¶
func (o *PackageVersionInfo) SetLastUpdatedAsTime(input time.Time)
type PostOperationResponse ¶
type PrecheckResult ¶
type PrecheckResult struct { AdditionalData *string `json:"additionalData,omitempty"` Description *string `json:"description,omitempty"` HealthCheckSource *string `json:"healthCheckSource,omitempty"` Name *string `json:"name,omitempty"` Remediation *string `json:"remediation,omitempty"` Severity *Severity `json:"severity,omitempty"` Status *Status `json:"status,omitempty"` Tags *PrecheckResultTags `json:"tags,omitempty"` TargetResourceID *string `json:"targetResourceID,omitempty"` TargetResourceName *string `json:"targetResourceName,omitempty"` Timestamp *string `json:"timestamp,omitempty"` Title *string `json:"title,omitempty"` }
func (*PrecheckResult) GetTimestampAsTime ¶
func (o *PrecheckResult) GetTimestampAsTime() (*time.Time, error)
func (*PrecheckResult) SetTimestampAsTime ¶
func (o *PrecheckResult) SetTimestampAsTime(input time.Time)
type PrecheckResultTags ¶
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateProvisioning ProvisioningState = "Provisioning" ProvisioningStateSucceeded ProvisioningState = "Succeeded" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type PutOperationResponse ¶
type RebootRequirement ¶
type RebootRequirement string
const ( RebootRequirementFalse RebootRequirement = "False" RebootRequirementTrue RebootRequirement = "True" RebootRequirementUnknown RebootRequirement = "Unknown" )
func (*RebootRequirement) UnmarshalJSON ¶
func (s *RebootRequirement) UnmarshalJSON(bytes []byte) error
type State ¶
type State string
const ( StateDownloadFailed State = "DownloadFailed" StateDownloading State = "Downloading" StateHasPrerequisite State = "HasPrerequisite" StateHealthCheckFailed State = "HealthCheckFailed" StateHealthChecking State = "HealthChecking" StateInstallationFailed State = "InstallationFailed" StateInstalled State = "Installed" StateInstalling State = "Installing" StateInvalid State = "Invalid" StateNotApplicableBecauseAnotherUpdateIsInProgress State = "NotApplicableBecauseAnotherUpdateIsInProgress" StateObsolete State = "Obsolete" StatePreparationFailed State = "PreparationFailed" StatePreparing State = "Preparing" StateReady State = "Ready" StateReadyToInstall State = "ReadyToInstall" StateRecalled State = "Recalled" StateScanFailed State = "ScanFailed" StateScanInProgress State = "ScanInProgress" )
func (*State) UnmarshalJSON ¶
type Update ¶
type Update struct { Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *UpdateProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type UpdateId ¶
type UpdateId struct { SubscriptionId string ResourceGroupName string ClusterName string UpdateName string }
UpdateId is a struct representing the Resource ID for a Update
func NewUpdateID ¶
func NewUpdateID(subscriptionId string, resourceGroupName string, clusterName string, updateName string) UpdateId
NewUpdateID returns a new UpdateId struct
func ParseUpdateID ¶
ParseUpdateID parses 'input' into a UpdateId
func ParseUpdateIDInsensitively ¶
ParseUpdateIDInsensitively parses 'input' case-insensitively into a UpdateId note: this method should only be used for API response data and not user input
func (*UpdateId) FromParseResult ¶
func (id *UpdateId) FromParseResult(input resourceids.ParseResult) error
func (UpdateId) Segments ¶
func (id UpdateId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Update ID
type UpdateOperationPredicate ¶
func (UpdateOperationPredicate) Matches ¶
func (p UpdateOperationPredicate) Matches(input Update) bool
type UpdatePrerequisite ¶
type UpdateProperties ¶
type UpdateProperties struct { AdditionalProperties *string `json:"additionalProperties,omitempty"` AvailabilityType *AvailabilityType `json:"availabilityType,omitempty"` ComponentVersions *[]PackageVersionInfo `json:"componentVersions,omitempty"` Description *string `json:"description,omitempty"` DisplayName *string `json:"displayName,omitempty"` HealthCheckDate *string `json:"healthCheckDate,omitempty"` HealthCheckResult *[]PrecheckResult `json:"healthCheckResult,omitempty"` HealthState *HealthState `json:"healthState,omitempty"` InstalledDate *string `json:"installedDate,omitempty"` PackagePath *string `json:"packagePath,omitempty"` PackageSizeInMb *float64 `json:"packageSizeInMb,omitempty"` PackageType *string `json:"packageType,omitempty"` Prerequisites *[]UpdatePrerequisite `json:"prerequisites,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` Publisher *string `json:"publisher,omitempty"` RebootRequired *RebootRequirement `json:"rebootRequired,omitempty"` ReleaseLink *string `json:"releaseLink,omitempty"` State *State `json:"state,omitempty"` UpdateStateProperties *UpdateStateProperties `json:"updateStateProperties,omitempty"` Version *string `json:"version,omitempty"` }
func (*UpdateProperties) GetHealthCheckDateAsTime ¶
func (o *UpdateProperties) GetHealthCheckDateAsTime() (*time.Time, error)
func (*UpdateProperties) GetInstalledDateAsTime ¶
func (o *UpdateProperties) GetInstalledDateAsTime() (*time.Time, error)
func (*UpdateProperties) SetHealthCheckDateAsTime ¶
func (o *UpdateProperties) SetHealthCheckDateAsTime(input time.Time)
func (*UpdateProperties) SetInstalledDateAsTime ¶
func (o *UpdateProperties) SetInstalledDateAsTime(input time.Time)
type UpdateStateProperties ¶
type UpdatesClient ¶
type UpdatesClient struct {
Client *resourcemanager.Client
}
func NewUpdatesClientWithBaseURI ¶
func NewUpdatesClientWithBaseURI(sdkApi sdkEnv.Api) (*UpdatesClient, error)
func (UpdatesClient) Delete ¶
func (c UpdatesClient) Delete(ctx context.Context, id UpdateId) (result DeleteOperationResponse, err error)
Delete ...
func (UpdatesClient) DeleteThenPoll ¶
func (c UpdatesClient) DeleteThenPoll(ctx context.Context, id UpdateId) error
DeleteThenPoll performs Delete then polls until it's completed
func (UpdatesClient) Get ¶
func (c UpdatesClient) Get(ctx context.Context, id UpdateId) (result GetOperationResponse, err error)
Get ...
func (UpdatesClient) List ¶
func (c UpdatesClient) List(ctx context.Context, id ClusterId) (result ListOperationResponse, err error)
List ...
func (UpdatesClient) ListComplete ¶
func (c UpdatesClient) ListComplete(ctx context.Context, id ClusterId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (UpdatesClient) ListCompleteMatchingPredicate ¶
func (c UpdatesClient) ListCompleteMatchingPredicate(ctx context.Context, id ClusterId, predicate UpdateOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (UpdatesClient) Post ¶
func (c UpdatesClient) Post(ctx context.Context, id UpdateId) (result PostOperationResponse, err error)
Post ...
func (UpdatesClient) PostThenPoll ¶
func (c UpdatesClient) PostThenPoll(ctx context.Context, id UpdateId) error
PostThenPoll performs Post then polls until it's completed
func (UpdatesClient) Put ¶
func (c UpdatesClient) Put(ctx context.Context, id UpdateId, input Update) (result PutOperationResponse, err error)
Put ...
Source Files ¶
- client.go
- constants.go
- id_cluster.go
- id_update.go
- method_delete.go
- method_get.go
- method_list.go
- method_post.go
- method_put.go
- model_packageversioninfo.go
- model_precheckresult.go
- model_precheckresulttags.go
- model_update.go
- model_updateprerequisite.go
- model_updateproperties.go
- model_updatestateproperties.go
- predicates.go
- version.go