Categorygithub.com/hashicorp/go-azure-sdk/resource-managercompute2023-03-01virtualmachinescalesetextensions
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/2023-03-01/virtualmachinescalesetextensions
Documentation
The virtualmachinescalesetextensions
SDK allows for interaction with the Azure Resource Manager Service compute
(API Version 2023-03-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/2023-03-01/virtualmachinescalesetextensions"
Client Initialization
client := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: VirtualMachineScaleSetExtensionsClient.CreateOrUpdate
ctx := context.TODO()
id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "extensionValue")
payload := virtualmachinescalesetextensions.VirtualMachineScaleSetExtension{
// ...
}
if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: VirtualMachineScaleSetExtensionsClient.Delete
ctx := context.TODO()
id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "extensionValue")
if err := client.DeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: VirtualMachineScaleSetExtensionsClient.Get
ctx := context.TODO()
id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "extensionValue")
read, err := client.Get(ctx, id, virtualmachinescalesetextensions.DefaultGetOperationOptions())
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: VirtualMachineScaleSetExtensionsClient.List
ctx := context.TODO()
id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue")
// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: VirtualMachineScaleSetExtensionsClient.Update
ctx := context.TODO()
id := virtualmachinescalesetextensions.NewVirtualMachineScaleSetExtensionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineScaleSetValue", "extensionValue")
payload := virtualmachinescalesetextensions.VirtualMachineScaleSetExtensionUpdate{
// ...
}
if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
# Functions
No description provided by the author
NewVirtualMachineScaleSetExtensionID returns a new VirtualMachineScaleSetExtensionId struct.
No description provided by the author
NewVirtualMachineScaleSetID returns a new VirtualMachineScaleSetId struct.
ParseVirtualMachineScaleSetExtensionID parses 'input' into a VirtualMachineScaleSetExtensionId.
ParseVirtualMachineScaleSetExtensionIDInsensitively parses 'input' case-insensitively into a VirtualMachineScaleSetExtensionId note: this method should only be used for API response data and not user input.
ParseVirtualMachineScaleSetID parses 'input' into a VirtualMachineScaleSetId.
ParseVirtualMachineScaleSetIDInsensitively parses 'input' case-insensitively into a VirtualMachineScaleSetId note: this method should only be used for API response data and not user input.
ValidateVirtualMachineScaleSetExtensionID checks that 'input' can be parsed as a Virtual Machine Scale Set Extension ID.
ValidateVirtualMachineScaleSetID checks that 'input' can be parsed as a Virtual Machine Scale Set ID.
# Structs
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
VirtualMachineScaleSetExtensionId is a struct representing the Resource ID for a Virtual Machine Scale Set Extension.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
VirtualMachineScaleSetId is a struct representing the Resource ID for a Virtual Machine Scale Set.