applyupdate

package
v0.20240327.1133120 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2022-07-01-preview/applyupdate Documentation

The applyupdate SDK allows for interaction with the Azure Resource Manager Service maintenance (API Version 2022-07-01-preview).

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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2022-07-01-preview/applyupdate"

Client Initialization

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

Example Usage: ApplyUpdateClient.ForResourceGroupList

ctx := context.TODO()
id := commonids.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 := commonids.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 *resourcemanager.Client
}

func NewApplyUpdateClientWithBaseURI

func NewApplyUpdateClientWithBaseURI(sdkApi sdkEnv.Api) (*ApplyUpdateClient, error)

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
	OData        *odata.OData
	Model        *ListApplyUpdate
}

type ListApplyUpdate

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

type ListOperationResponse

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

type UpdateStatus

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

func (*UpdateStatus) UnmarshalJSON added in v0.20240208.1165011

func (s *UpdateStatus) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

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