Categorygithub.com/hashicorp/go-azure-sdk/resource-managervmware2023-09-01workloadnetworkvirtualmachines
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/vmware/2023-09-01/workloadnetworkvirtualmachines
Documentation
The workloadnetworkvirtualmachines
SDK allows for interaction with the Azure Resource Manager Service vmware
(API Version 2023-09-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/vmware/2023-09-01/workloadnetworkvirtualmachines"
Client Initialization
client := workloadnetworkvirtualmachines.NewWorkloadNetworkVirtualMachinesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: WorkloadNetworkVirtualMachinesClient.WorkloadNetworksGetVirtualMachine
ctx := context.TODO()
id := workloadnetworkvirtualmachines.NewDefaultVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue", "virtualMachineIdValue")
read, err := client.WorkloadNetworksGetVirtualMachine(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: WorkloadNetworkVirtualMachinesClient.WorkloadNetworksListVirtualMachines
ctx := context.TODO()
id := workloadnetworkvirtualmachines.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue")
// alternatively `client.WorkloadNetworksListVirtualMachines(ctx, id)` can be used to do batched pagination
items, err := client.WorkloadNetworksListVirtualMachinesComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
# Functions
NewDefaultVirtualMachineID returns a new DefaultVirtualMachineId struct.
NewPrivateCloudID returns a new PrivateCloudId struct.
No description provided by the author
ParseDefaultVirtualMachineID parses 'input' into a DefaultVirtualMachineId.
ParseDefaultVirtualMachineIDInsensitively parses 'input' case-insensitively into a DefaultVirtualMachineId note: this method should only be used for API response data and not user input.
ParsePrivateCloudID parses 'input' into a PrivateCloudId.
ParsePrivateCloudIDInsensitively parses 'input' case-insensitively into a PrivateCloudId 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
ValidateDefaultVirtualMachineID checks that 'input' can be parsed as a Default Virtual Machine ID.
ValidatePrivateCloudID checks that 'input' can be parsed as a Private Cloud 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
# Structs
DefaultVirtualMachineId is a struct representing the Resource ID for a Default Virtual Machine.
PrivateCloudId is a struct representing the Resource ID for a Private Cloud.
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