applyupdate

package
v0.20230124.1141353 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2021-05-01/applyupdate Documentation

The applyupdate SDK allows for interaction with the Azure Resource Manager Service maintenance (API Version 2021-05-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-sdk/resource-manager/maintenance/2021-05-01/applyupdate"

Client Initialization

client := applyupdate.NewApplyUpdateClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ApplyUpdateClient.ForResourceGroupList

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

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

Example Usage: ApplyUpdateClient.List

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

read, err := client.List(ctx, id)
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 PossibleValuesForUpdateStatus

func PossibleValuesForUpdateStatus() []string

Types

type ApplyUpdate

type ApplyUpdate struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *ApplyUpdateProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type ApplyUpdateClient

type ApplyUpdateClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewApplyUpdateClientWithBaseURI

func NewApplyUpdateClientWithBaseURI(endpoint string) ApplyUpdateClient

func (ApplyUpdateClient) ForResourceGroupList

ForResourceGroupList ...

func (ApplyUpdateClient) List

List ...

type ApplyUpdateProperties

type ApplyUpdateProperties struct {
	LastUpdateTime *string       `json:"lastUpdateTime,omitempty"`
	ResourceId     *string       `json:"resourceId,omitempty"`
	Status         *UpdateStatus `json:"status,omitempty"`
}

func (*ApplyUpdateProperties) GetLastUpdateTimeAsTime

func (o *ApplyUpdateProperties) GetLastUpdateTimeAsTime() (*time.Time, error)

func (*ApplyUpdateProperties) SetLastUpdateTimeAsTime

func (o *ApplyUpdateProperties) SetLastUpdateTimeAsTime(input time.Time)

type ForResourceGroupListOperationResponse

type ForResourceGroupListOperationResponse struct {
	HttpResponse *http.Response
	Model        *ListApplyUpdate
}

type ListApplyUpdate

type ListApplyUpdate struct {
	Value *[]ApplyUpdate `json:"value,omitempty"`
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *ListApplyUpdate
}

type UpdateStatus

type UpdateStatus string
const (
	UpdateStatusCompleted  UpdateStatus = "Completed"
	UpdateStatusInProgress UpdateStatus = "InProgress"
	UpdateStatusPending    UpdateStatus = "Pending"
	UpdateStatusRetryLater UpdateStatus = "RetryLater"
	UpdateStatusRetryNow   UpdateStatus = "RetryNow"
)

Jump to

Keyboard shortcuts

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