Categorygithub.com/hashicorp/go-azure-sdk/resource-managercompute2021-07-01galleryapplicationversions
package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev
# README
github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/galleryapplicationversions
Documentation
The galleryapplicationversions
SDK allows for interaction with the Azure Resource Manager Service compute
(API Version 2021-07-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/compute/2021-07-01/galleryapplicationversions"
Client Initialization
client := galleryapplicationversions.NewGalleryApplicationVersionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: GalleryApplicationVersionsClient.CreateOrUpdate
ctx := context.TODO()
id := galleryapplicationversions.NewApplicationVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue", "versionValue")
payload := galleryapplicationversions.GalleryApplicationVersion{
// ...
}
if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: GalleryApplicationVersionsClient.Delete
ctx := context.TODO()
id := galleryapplicationversions.NewApplicationVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue", "versionValue")
if err := client.DeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: GalleryApplicationVersionsClient.Get
ctx := context.TODO()
id := galleryapplicationversions.NewApplicationVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue", "versionValue")
read, err := client.Get(ctx, id, galleryapplicationversions.DefaultGetOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: GalleryApplicationVersionsClient.ListByGalleryApplication
ctx := context.TODO()
id := galleryapplicationversions.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue")
// alternatively `client.ListByGalleryApplication(ctx, id)` can be used to do batched pagination
items, err := client.ListByGalleryApplicationComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: GalleryApplicationVersionsClient.Update
ctx := context.TODO()
id := galleryapplicationversions.NewApplicationVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue", "versionValue")
payload := galleryapplicationversions.GalleryApplicationVersionUpdate{
// ...
}
if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
# Functions
No description provided by the author
NewApplicationID returns a new ApplicationId struct.
NewApplicationVersionID returns a new ApplicationVersionId struct.
No description provided by the author
ParseApplicationID parses 'input' into a ApplicationId.
ParseApplicationIDInsensitively parses 'input' case-insensitively into a ApplicationId note: this method should only be used for API response data and not user input.
ParseApplicationVersionID parses 'input' into a ApplicationVersionId.
ParseApplicationVersionIDInsensitively parses 'input' case-insensitively into a ApplicationVersionId note: this method should only be used for API response data and not user input.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ValidateApplicationID checks that 'input' can be parsed as a Application ID.
ValidateApplicationVersionID checks that 'input' can be parsed as a Application Version ID.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
ApplicationId is a struct representing the Resource ID for a Application.
ApplicationVersionId is a struct representing the Resource ID for a Application Version.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author