updateruns

package
v0.20221212.1131457 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/azurestackhci/2022-12-01/updateruns Documentation

The updateruns SDK allows for interaction with the Azure Resource Manager Service azurestackhci (API Version 2022-12-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/azurestackhci/2022-12-01/updateruns"

Client Initialization

client := updateruns.NewUpdateRunsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: UpdateRunsClient.UpdateRunsDelete

ctx := context.TODO()
id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "updateValue", "updateRunValue")

if err := client.UpdateRunsDeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: UpdateRunsClient.UpdateRunsGet

ctx := context.TODO()
id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "updateValue", "updateRunValue")

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

Example Usage: UpdateRunsClient.UpdateRunsList

ctx := context.TODO()
id := updateruns.NewUpdateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "updateValue")

// alternatively `client.UpdateRunsList(ctx, id)` can be used to do batched pagination
items, err := client.UpdateRunsListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: UpdateRunsClient.UpdateRunsPut

ctx := context.TODO()
id := updateruns.NewUpdateRunID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "updateValue", "updateRunValue")

payload := updateruns.UpdateRun{
	// ...
}


read, err := client.UpdateRunsPut(ctx, id, payload)
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 PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForUpdateRunPropertiesState

func PossibleValuesForUpdateRunPropertiesState() []string

func ValidateUpdateID

func ValidateUpdateID(input interface{}, key string) (warnings []string, errors []error)

ValidateUpdateID checks that 'input' can be parsed as a Update ID

func ValidateUpdateRunID

func ValidateUpdateRunID(input interface{}, key string) (warnings []string, errors []error)

ValidateUpdateRunID checks that 'input' can be parsed as a Update Run ID

Types

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateAccepted     ProvisioningState = "Accepted"
	ProvisioningStateCanceled     ProvisioningState = "Canceled"
	ProvisioningStateFailed       ProvisioningState = "Failed"
	ProvisioningStateProvisioning ProvisioningState = "Provisioning"
	ProvisioningStateSucceeded    ProvisioningState = "Succeeded"
)

type Step

type Step struct {
	Description        *string `json:"description,omitempty"`
	EndTimeUtc         *string `json:"endTimeUtc,omitempty"`
	ErrorMessage       *string `json:"errorMessage,omitempty"`
	LastUpdatedTimeUtc *string `json:"lastUpdatedTimeUtc,omitempty"`
	Name               *string `json:"name,omitempty"`
	StartTimeUtc       *string `json:"startTimeUtc,omitempty"`
	Status             *string `json:"status,omitempty"`
	Steps              *[]Step `json:"steps,omitempty"`
}

func (*Step) GetEndTimeUtcAsTime

func (o *Step) GetEndTimeUtcAsTime() (*time.Time, error)

func (*Step) GetLastUpdatedTimeUtcAsTime

func (o *Step) GetLastUpdatedTimeUtcAsTime() (*time.Time, error)

func (*Step) GetStartTimeUtcAsTime

func (o *Step) GetStartTimeUtcAsTime() (*time.Time, error)

func (*Step) SetEndTimeUtcAsTime

func (o *Step) SetEndTimeUtcAsTime(input time.Time)

func (*Step) SetLastUpdatedTimeUtcAsTime

func (o *Step) SetLastUpdatedTimeUtcAsTime(input time.Time)

func (*Step) SetStartTimeUtcAsTime

func (o *Step) SetStartTimeUtcAsTime(input time.Time)

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

func ParseUpdateID(input string) (*UpdateId, error)

ParseUpdateID parses 'input' into a UpdateId

func ParseUpdateIDInsensitively

func ParseUpdateIDInsensitively(input string) (*UpdateId, error)

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) ID

func (id UpdateId) ID() string

ID returns the formatted Update ID

func (UpdateId) Segments

func (id UpdateId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Update ID

func (UpdateId) String

func (id UpdateId) String() string

String returns a human-readable description of this Update ID

type UpdateRun

type UpdateRun struct {
	Id         *string                `json:"id,omitempty"`
	Location   *string                `json:"location,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *UpdateRunProperties   `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type UpdateRunId

type UpdateRunId struct {
	SubscriptionId    string
	ResourceGroupName string
	ClusterName       string
	UpdateName        string
	UpdateRunName     string
}

UpdateRunId is a struct representing the Resource ID for a Update Run

func NewUpdateRunID

func NewUpdateRunID(subscriptionId string, resourceGroupName string, clusterName string, updateName string, updateRunName string) UpdateRunId

NewUpdateRunID returns a new UpdateRunId struct

func ParseUpdateRunID

func ParseUpdateRunID(input string) (*UpdateRunId, error)

ParseUpdateRunID parses 'input' into a UpdateRunId

func ParseUpdateRunIDInsensitively

func ParseUpdateRunIDInsensitively(input string) (*UpdateRunId, error)

ParseUpdateRunIDInsensitively parses 'input' case-insensitively into a UpdateRunId note: this method should only be used for API response data and not user input

func (UpdateRunId) ID

func (id UpdateRunId) ID() string

ID returns the formatted Update Run ID

func (UpdateRunId) Segments

func (id UpdateRunId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Update Run ID

func (UpdateRunId) String

func (id UpdateRunId) String() string

String returns a human-readable description of this Update Run ID

type UpdateRunOperationPredicate

type UpdateRunOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (UpdateRunOperationPredicate) Matches

func (p UpdateRunOperationPredicate) Matches(input UpdateRun) bool

type UpdateRunProperties

type UpdateRunProperties struct {
	Duration          *string                   `json:"duration,omitempty"`
	LastUpdatedTime   *string                   `json:"lastUpdatedTime,omitempty"`
	Progress          *Step                     `json:"progress,omitempty"`
	ProvisioningState *ProvisioningState        `json:"provisioningState,omitempty"`
	State             *UpdateRunPropertiesState `json:"state,omitempty"`
	TimeStarted       *string                   `json:"timeStarted,omitempty"`
}

func (*UpdateRunProperties) GetLastUpdatedTimeAsTime

func (o *UpdateRunProperties) GetLastUpdatedTimeAsTime() (*time.Time, error)

func (*UpdateRunProperties) GetTimeStartedAsTime

func (o *UpdateRunProperties) GetTimeStartedAsTime() (*time.Time, error)

func (*UpdateRunProperties) SetLastUpdatedTimeAsTime

func (o *UpdateRunProperties) SetLastUpdatedTimeAsTime(input time.Time)

func (*UpdateRunProperties) SetTimeStartedAsTime

func (o *UpdateRunProperties) SetTimeStartedAsTime(input time.Time)

type UpdateRunPropertiesState

type UpdateRunPropertiesState string
const (
	UpdateRunPropertiesStateFailed     UpdateRunPropertiesState = "Failed"
	UpdateRunPropertiesStateInProgress UpdateRunPropertiesState = "InProgress"
	UpdateRunPropertiesStateSucceeded  UpdateRunPropertiesState = "Succeeded"
	UpdateRunPropertiesStateUnknown    UpdateRunPropertiesState = "Unknown"
)

type UpdateRunsClient

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

func NewUpdateRunsClientWithBaseURI

func NewUpdateRunsClientWithBaseURI(endpoint string) UpdateRunsClient

func (UpdateRunsClient) UpdateRunsDelete

func (c UpdateRunsClient) UpdateRunsDelete(ctx context.Context, id UpdateRunId) (result UpdateRunsDeleteOperationResponse, err error)

UpdateRunsDelete ...

func (UpdateRunsClient) UpdateRunsDeleteThenPoll

func (c UpdateRunsClient) UpdateRunsDeleteThenPoll(ctx context.Context, id UpdateRunId) error

UpdateRunsDeleteThenPoll performs UpdateRunsDelete then polls until it's completed

func (UpdateRunsClient) UpdateRunsGet

func (c UpdateRunsClient) UpdateRunsGet(ctx context.Context, id UpdateRunId) (result UpdateRunsGetOperationResponse, err error)

UpdateRunsGet ...

func (UpdateRunsClient) UpdateRunsList

func (c UpdateRunsClient) UpdateRunsList(ctx context.Context, id UpdateId) (resp UpdateRunsListOperationResponse, err error)

UpdateRunsList ...

func (UpdateRunsClient) UpdateRunsListComplete

func (c UpdateRunsClient) UpdateRunsListComplete(ctx context.Context, id UpdateId) (UpdateRunsListCompleteResult, error)

UpdateRunsListComplete retrieves all of the results into a single object

func (UpdateRunsClient) UpdateRunsListCompleteMatchingPredicate

func (c UpdateRunsClient) UpdateRunsListCompleteMatchingPredicate(ctx context.Context, id UpdateId, predicate UpdateRunOperationPredicate) (resp UpdateRunsListCompleteResult, err error)

UpdateRunsListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (UpdateRunsClient) UpdateRunsPut

func (c UpdateRunsClient) UpdateRunsPut(ctx context.Context, id UpdateRunId, input UpdateRun) (result UpdateRunsPutOperationResponse, err error)

UpdateRunsPut ...

type UpdateRunsDeleteOperationResponse

type UpdateRunsDeleteOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type UpdateRunsGetOperationResponse

type UpdateRunsGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *UpdateRun
}

type UpdateRunsListCompleteResult

type UpdateRunsListCompleteResult struct {
	Items []UpdateRun
}

type UpdateRunsListOperationResponse

type UpdateRunsListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]UpdateRun
	// contains filtered or unexported fields
}

func (UpdateRunsListOperationResponse) HasMore

func (UpdateRunsListOperationResponse) LoadMore

type UpdateRunsPutOperationResponse

type UpdateRunsPutOperationResponse struct {
	HttpResponse *http.Response
	Model        *UpdateRun
}

Jump to

Keyboard shortcuts

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