README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/maintenance/2021-05-01/applyupdates
Documentation
The applyupdates
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/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 ¶
- func PossibleValuesForUpdateStatus() []string
- func ValidateApplyUpdateID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateProviderID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateProviders2ApplyUpdateID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateResourceGroupProviderID(input interface{}, key string) (warnings []string, errors []error)
- type ApplyUpdate
- type ApplyUpdateId
- type ApplyUpdateProperties
- type ApplyUpdatesClient
- func (c ApplyUpdatesClient) CreateOrUpdate(ctx context.Context, id ProviderId) (result CreateOrUpdateOperationResponse, err error)
- func (c ApplyUpdatesClient) CreateOrUpdateParent(ctx context.Context, id ResourceGroupProviderId) (result CreateOrUpdateParentOperationResponse, err error)
- func (c ApplyUpdatesClient) Get(ctx context.Context, id ApplyUpdateId) (result GetOperationResponse, err error)
- func (c ApplyUpdatesClient) GetParent(ctx context.Context, id Providers2ApplyUpdateId) (result GetParentOperationResponse, err error)
- type CreateOrUpdateOperationResponse
- type CreateOrUpdateParentOperationResponse
- type GetOperationResponse
- type GetParentOperationResponse
- type ProviderId
- type Providers2ApplyUpdateId
- func NewProviders2ApplyUpdateID(subscriptionId string, resourceGroupName string, providerName string, ...) Providers2ApplyUpdateId
- func ParseProviders2ApplyUpdateID(input string) (*Providers2ApplyUpdateId, error)
- func ParseProviders2ApplyUpdateIDInsensitively(input string) (*Providers2ApplyUpdateId, error)
- type ResourceGroupProviderId
- func NewResourceGroupProviderID(subscriptionId string, resourceGroupName string, providerName string, ...) ResourceGroupProviderId
- func ParseResourceGroupProviderID(input string) (*ResourceGroupProviderId, error)
- func ParseResourceGroupProviderIDInsensitively(input string) (*ResourceGroupProviderId, error)
- type UpdateStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForUpdateStatus ¶
func PossibleValuesForUpdateStatus() []string
func ValidateApplyUpdateID ¶
ValidateApplyUpdateID checks that 'input' can be parsed as a Apply Update ID
func ValidateProviderID ¶
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 ¶
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 ¶
func (c ApplyUpdatesClient) CreateOrUpdateParent(ctx context.Context, id ResourceGroupProviderId) (result CreateOrUpdateParentOperationResponse, err error)
CreateOrUpdateParent ...
func (ApplyUpdatesClient) Get ¶
func (c ApplyUpdatesClient) Get(ctx context.Context, id ApplyUpdateId) (result GetOperationResponse, err error)
Get ...
func (ApplyUpdatesClient) GetParent ¶
func (c ApplyUpdatesClient) GetParent(ctx context.Context, id Providers2ApplyUpdateId) (result GetParentOperationResponse, err error)
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) 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 ¶
func (id Providers2ApplyUpdateId) ID() string
ID returns the formatted Providers 2 Apply Update ID
func (Providers2ApplyUpdateId) Segments ¶
func (id Providers2ApplyUpdateId) Segments() []resourceids.Segment
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 ¶
func (id ResourceGroupProviderId) ID() string
ID returns the formatted Resource Group Provider ID
func (ResourceGroupProviderId) Segments ¶
func (id ResourceGroupProviderId) Segments() []resourceids.Segment
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" )
Source Files ¶
- client.go
- constants.go
- id_applyupdate.go
- id_provider.go
- id_providers2applyupdate.go
- id_resourcegroupprovider.go
- method_createorupdate_autorest.go
- method_createorupdateparent_autorest.go
- method_get_autorest.go
- method_getparent_autorest.go
- model_applyupdate.go
- model_applyupdateproperties.go
- version.go