applyupdates

package
v0.20230206.1104846 Latest Latest
Warning

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

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

README

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

The applyupdates 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-sdk/resource-manager/maintenance/2022-07-01-preview/applyupdates"

Client Initialization

client := applyupdates.NewApplyUpdatesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ApplyUpdatesClient.CreateOrUpdate

ctx := context.TODO()
id := applyupdates.NewProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "providerValue", "resourceTypeValue", "resourceValue")

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

Example Usage: ApplyUpdatesClient.CreateOrUpdateParent

ctx := context.TODO()
id := applyupdates.NewResourceGroupProviderID("12345678-1234-9876-4563-123456789012", "example-resource-group", "providerValue", "resourceParentTypeValue", "resourceParentValue", "resourceTypeValue", "resourceValue")

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

Example Usage: ApplyUpdatesClient.Get

ctx := context.TODO()
id := applyupdates.NewApplyUpdateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "providerValue", "resourceTypeValue", "resourceValue", "applyUpdateValue")

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

Example Usage: ApplyUpdatesClient.GetParent

ctx := context.TODO()
id := applyupdates.NewProviders2ApplyUpdateID("12345678-1234-9876-4563-123456789012", "example-resource-group", "providerValue", "resourceParentTypeValue", "resourceParentValue", "resourceTypeValue", "resourceValue", "applyUpdateValue")

read, err := client.GetParent(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

func ValidateApplyUpdateID

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

ValidateApplyUpdateID checks that 'input' can be parsed as a Apply Update ID

func ValidateProviderID

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

ValidateProviderID checks that 'input' can be parsed as a Provider ID

func ValidateProviders2ApplyUpdateID

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

ValidateProviders2ApplyUpdateID checks that 'input' can be parsed as a Providers 2 Apply Update ID

func ValidateResourceGroupProviderID

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

ValidateResourceGroupProviderID checks that 'input' can be parsed as a Resource Group Provider ID

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 ApplyUpdateId

type ApplyUpdateId struct {
	SubscriptionId    string
	ResourceGroupName string
	ProviderName      string
	ResourceType      string
	ResourceName      string
	ApplyUpdateName   string
}

ApplyUpdateId is a struct representing the Resource ID for a Apply Update

func NewApplyUpdateID

func NewApplyUpdateID(subscriptionId string, resourceGroupName string, providerName string, resourceType string, resourceName string, applyUpdateName string) ApplyUpdateId

NewApplyUpdateID returns a new ApplyUpdateId struct

func ParseApplyUpdateID

func ParseApplyUpdateID(input string) (*ApplyUpdateId, error)

ParseApplyUpdateID parses 'input' into a ApplyUpdateId

func ParseApplyUpdateIDInsensitively

func ParseApplyUpdateIDInsensitively(input string) (*ApplyUpdateId, error)

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

func (ApplyUpdateId) ID

func (id ApplyUpdateId) ID() string

ID returns the formatted Apply Update ID

func (ApplyUpdateId) Segments

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

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

func (ApplyUpdateId) String

func (id ApplyUpdateId) String() string

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

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 ApplyUpdatesClient

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

func NewApplyUpdatesClientWithBaseURI

func NewApplyUpdatesClientWithBaseURI(endpoint string) ApplyUpdatesClient

func (ApplyUpdatesClient) CreateOrUpdate

func (c ApplyUpdatesClient) CreateOrUpdate(ctx context.Context, id ProviderId) (result CreateOrUpdateOperationResponse, err error)

CreateOrUpdate ...

func (ApplyUpdatesClient) CreateOrUpdateParent

CreateOrUpdateParent ...

func (ApplyUpdatesClient) Get

Get ...

func (ApplyUpdatesClient) GetParent

GetParent ...

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *ApplyUpdate
}

type CreateOrUpdateParentOperationResponse

type CreateOrUpdateParentOperationResponse struct {
	HttpResponse *http.Response
	Model        *ApplyUpdate
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *ApplyUpdate
}

type GetParentOperationResponse

type GetParentOperationResponse struct {
	HttpResponse *http.Response
	Model        *ApplyUpdate
}

type ProviderId

type ProviderId struct {
	SubscriptionId    string
	ResourceGroupName string
	ProviderName      string
	ResourceType      string
	ResourceName      string
}

ProviderId is a struct representing the Resource ID for a Provider

func NewProviderID

func NewProviderID(subscriptionId string, resourceGroupName string, providerName string, resourceType string, resourceName string) ProviderId

NewProviderID returns a new ProviderId struct

func ParseProviderID

func ParseProviderID(input string) (*ProviderId, error)

ParseProviderID parses 'input' into a ProviderId

func ParseProviderIDInsensitively

func ParseProviderIDInsensitively(input string) (*ProviderId, error)

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

func (ProviderId) ID

func (id ProviderId) ID() string

ID returns the formatted Provider ID

func (ProviderId) Segments

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

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

func (ProviderId) String

func (id ProviderId) String() string

String returns a human-readable description of this Provider ID

type Providers2ApplyUpdateId

type Providers2ApplyUpdateId struct {
	SubscriptionId     string
	ResourceGroupName  string
	ProviderName       string
	ResourceParentType string
	ResourceParentName string
	ResourceType       string
	ResourceName       string
	ApplyUpdateName    string
}

Providers2ApplyUpdateId is a struct representing the Resource ID for a Providers 2 Apply Update

func NewProviders2ApplyUpdateID

func NewProviders2ApplyUpdateID(subscriptionId string, resourceGroupName string, providerName string, resourceParentType string, resourceParentName string, resourceType string, resourceName string, applyUpdateName string) Providers2ApplyUpdateId

NewProviders2ApplyUpdateID returns a new Providers2ApplyUpdateId struct

func ParseProviders2ApplyUpdateID

func ParseProviders2ApplyUpdateID(input string) (*Providers2ApplyUpdateId, error)

ParseProviders2ApplyUpdateID parses 'input' into a Providers2ApplyUpdateId

func ParseProviders2ApplyUpdateIDInsensitively

func ParseProviders2ApplyUpdateIDInsensitively(input string) (*Providers2ApplyUpdateId, error)

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

func (Providers2ApplyUpdateId) ID

ID returns the formatted Providers 2 Apply Update ID

func (Providers2ApplyUpdateId) Segments

Segments returns a slice of Resource ID Segments which comprise this Providers 2 Apply Update ID

func (Providers2ApplyUpdateId) String

func (id Providers2ApplyUpdateId) String() string

String returns a human-readable description of this Providers 2 Apply Update ID

type ResourceGroupProviderId

type ResourceGroupProviderId struct {
	SubscriptionId     string
	ResourceGroupName  string
	ProviderName       string
	ResourceParentType string
	ResourceParentName string
	ResourceType       string
	ResourceName       string
}

ResourceGroupProviderId is a struct representing the Resource ID for a Resource Group Provider

func NewResourceGroupProviderID

func NewResourceGroupProviderID(subscriptionId string, resourceGroupName string, providerName string, resourceParentType string, resourceParentName string, resourceType string, resourceName string) ResourceGroupProviderId

NewResourceGroupProviderID returns a new ResourceGroupProviderId struct

func ParseResourceGroupProviderID

func ParseResourceGroupProviderID(input string) (*ResourceGroupProviderId, error)

ParseResourceGroupProviderID parses 'input' into a ResourceGroupProviderId

func ParseResourceGroupProviderIDInsensitively

func ParseResourceGroupProviderIDInsensitively(input string) (*ResourceGroupProviderId, error)

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

func (ResourceGroupProviderId) ID

ID returns the formatted Resource Group Provider ID

func (ResourceGroupProviderId) Segments

Segments returns a slice of Resource ID Segments which comprise this Resource Group Provider ID

func (ResourceGroupProviderId) String

func (id ResourceGroupProviderId) String() string

String returns a human-readable description of this Resource Group Provider ID

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