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/networkcloud/2023-07-01/networkclouds
Documentation
The networkclouds
SDK allows for interaction with the Azure Resource Manager Service networkcloud
(API Version 2023-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/networkcloud/2023-07-01/networkclouds"
Client Initialization
client := networkclouds.NewNetworkcloudsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: NetworkcloudsClient.AgentPoolsCreateOrUpdate
ctx := context.TODO()
id := networkclouds.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kubernetesClusterValue", "agentPoolValue")
payload := networkclouds.AgentPool{
// ...
}
if err := client.AgentPoolsCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.AgentPoolsDelete
ctx := context.TODO()
id := networkclouds.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kubernetesClusterValue", "agentPoolValue")
if err := client.AgentPoolsDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.AgentPoolsGet
ctx := context.TODO()
id := networkclouds.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kubernetesClusterValue", "agentPoolValue")
read, err := client.AgentPoolsGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.AgentPoolsListByKubernetesCluster
ctx := context.TODO()
id := networkclouds.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kubernetesClusterValue")
// alternatively `client.AgentPoolsListByKubernetesCluster(ctx, id)` can be used to do batched pagination
items, err := client.AgentPoolsListByKubernetesClusterComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.AgentPoolsUpdate
ctx := context.TODO()
id := networkclouds.NewAgentPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kubernetesClusterValue", "agentPoolValue")
payload := networkclouds.AgentPoolPatchParameters{
// ...
}
if err := client.AgentPoolsUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BareMetalMachineKeySetsCreateOrUpdate
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineKeySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "bareMetalMachineKeySetValue")
payload := networkclouds.BareMetalMachineKeySet{
// ...
}
if err := client.BareMetalMachineKeySetsCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BareMetalMachineKeySetsDelete
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineKeySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "bareMetalMachineKeySetValue")
if err := client.BareMetalMachineKeySetsDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BareMetalMachineKeySetsGet
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineKeySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "bareMetalMachineKeySetValue")
read, err := client.BareMetalMachineKeySetsGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.BareMetalMachineKeySetsListByCluster
ctx := context.TODO()
id := networkclouds.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")
// alternatively `client.BareMetalMachineKeySetsListByCluster(ctx, id)` can be used to do batched pagination
items, err := client.BareMetalMachineKeySetsListByClusterComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.BareMetalMachineKeySetsUpdate
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineKeySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "bareMetalMachineKeySetValue")
payload := networkclouds.BareMetalMachineKeySetPatchParameters{
// ...
}
if err := client.BareMetalMachineKeySetsUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BareMetalMachinesCordon
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bareMetalMachineValue")
payload := networkclouds.BareMetalMachineCordonParameters{
// ...
}
if err := client.BareMetalMachinesCordonThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BareMetalMachinesCreateOrUpdate
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bareMetalMachineValue")
payload := networkclouds.BareMetalMachine{
// ...
}
if err := client.BareMetalMachinesCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BareMetalMachinesDelete
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bareMetalMachineValue")
if err := client.BareMetalMachinesDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BareMetalMachinesGet
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bareMetalMachineValue")
read, err := client.BareMetalMachinesGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.BareMetalMachinesListByResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.BareMetalMachinesListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.BareMetalMachinesListByResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.BareMetalMachinesListBySubscription
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.BareMetalMachinesListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.BareMetalMachinesListBySubscriptionComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.BareMetalMachinesPowerOff
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bareMetalMachineValue")
payload := networkclouds.BareMetalMachinePowerOffParameters{
// ...
}
if err := client.BareMetalMachinesPowerOffThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BareMetalMachinesReimage
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bareMetalMachineValue")
if err := client.BareMetalMachinesReimageThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BareMetalMachinesReplace
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bareMetalMachineValue")
payload := networkclouds.BareMetalMachineReplaceParameters{
// ...
}
if err := client.BareMetalMachinesReplaceThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BareMetalMachinesRestart
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bareMetalMachineValue")
if err := client.BareMetalMachinesRestartThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BareMetalMachinesRunCommand
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bareMetalMachineValue")
payload := networkclouds.BareMetalMachineRunCommandParameters{
// ...
}
if err := client.BareMetalMachinesRunCommandThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BareMetalMachinesRunDataExtracts
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bareMetalMachineValue")
payload := networkclouds.BareMetalMachineRunDataExtractsParameters{
// ...
}
if err := client.BareMetalMachinesRunDataExtractsThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BareMetalMachinesRunReadCommands
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bareMetalMachineValue")
payload := networkclouds.BareMetalMachineRunReadCommandsParameters{
// ...
}
if err := client.BareMetalMachinesRunReadCommandsThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BareMetalMachinesStart
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bareMetalMachineValue")
if err := client.BareMetalMachinesStartThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BareMetalMachinesUncordon
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bareMetalMachineValue")
if err := client.BareMetalMachinesUncordonThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BareMetalMachinesUpdate
ctx := context.TODO()
id := networkclouds.NewBareMetalMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "bareMetalMachineValue")
payload := networkclouds.BareMetalMachinePatchParameters{
// ...
}
if err := client.BareMetalMachinesUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BmcKeySetsCreateOrUpdate
ctx := context.TODO()
id := networkclouds.NewBmcKeySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "bmcKeySetValue")
payload := networkclouds.BmcKeySet{
// ...
}
if err := client.BmcKeySetsCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BmcKeySetsDelete
ctx := context.TODO()
id := networkclouds.NewBmcKeySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "bmcKeySetValue")
if err := client.BmcKeySetsDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.BmcKeySetsGet
ctx := context.TODO()
id := networkclouds.NewBmcKeySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "bmcKeySetValue")
read, err := client.BmcKeySetsGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.BmcKeySetsListByCluster
ctx := context.TODO()
id := networkclouds.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")
// alternatively `client.BmcKeySetsListByCluster(ctx, id)` can be used to do batched pagination
items, err := client.BmcKeySetsListByClusterComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.BmcKeySetsUpdate
ctx := context.TODO()
id := networkclouds.NewBmcKeySetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "bmcKeySetValue")
payload := networkclouds.BmcKeySetPatchParameters{
// ...
}
if err := client.BmcKeySetsUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.CloudServicesNetworksCreateOrUpdate
ctx := context.TODO()
id := networkclouds.NewCloudServicesNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServicesNetworkValue")
payload := networkclouds.CloudServicesNetwork{
// ...
}
if err := client.CloudServicesNetworksCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.CloudServicesNetworksDelete
ctx := context.TODO()
id := networkclouds.NewCloudServicesNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServicesNetworkValue")
if err := client.CloudServicesNetworksDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.CloudServicesNetworksGet
ctx := context.TODO()
id := networkclouds.NewCloudServicesNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServicesNetworkValue")
read, err := client.CloudServicesNetworksGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.CloudServicesNetworksListByResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.CloudServicesNetworksListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.CloudServicesNetworksListByResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.CloudServicesNetworksListBySubscription
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.CloudServicesNetworksListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.CloudServicesNetworksListBySubscriptionComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.CloudServicesNetworksUpdate
ctx := context.TODO()
id := networkclouds.NewCloudServicesNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "cloudServicesNetworkValue")
payload := networkclouds.CloudServicesNetworkPatchParameters{
// ...
}
if err := client.CloudServicesNetworksUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.ClusterManagersCreateOrUpdate
ctx := context.TODO()
id := networkclouds.NewClusterManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterManagerValue")
payload := networkclouds.ClusterManager{
// ...
}
if err := client.ClusterManagersCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.ClusterManagersDelete
ctx := context.TODO()
id := networkclouds.NewClusterManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterManagerValue")
if err := client.ClusterManagersDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.ClusterManagersGet
ctx := context.TODO()
id := networkclouds.NewClusterManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterManagerValue")
read, err := client.ClusterManagersGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.ClusterManagersListByResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.ClusterManagersListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ClusterManagersListByResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.ClusterManagersListBySubscription
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.ClusterManagersListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.ClusterManagersListBySubscriptionComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.ClusterManagersUpdate
ctx := context.TODO()
id := networkclouds.NewClusterManagerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterManagerValue")
payload := networkclouds.ClusterManagerPatchParameters{
// ...
}
read, err := client.ClusterManagersUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.ClustersCreateOrUpdate
ctx := context.TODO()
id := networkclouds.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")
payload := networkclouds.Cluster{
// ...
}
if err := client.ClustersCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.ClustersDelete
ctx := context.TODO()
id := networkclouds.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")
if err := client.ClustersDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.ClustersDeploy
ctx := context.TODO()
id := networkclouds.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")
payload := networkclouds.ClusterDeployParameters{
// ...
}
if err := client.ClustersDeployThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.ClustersGet
ctx := context.TODO()
id := networkclouds.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")
read, err := client.ClustersGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.ClustersListByResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.ClustersListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ClustersListByResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.ClustersListBySubscription
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.ClustersListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.ClustersListBySubscriptionComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.ClustersUpdate
ctx := context.TODO()
id := networkclouds.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")
payload := networkclouds.ClusterPatchParameters{
// ...
}
if err := client.ClustersUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.ClustersUpdateVersion
ctx := context.TODO()
id := networkclouds.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")
payload := networkclouds.ClusterUpdateVersionParameters{
// ...
}
if err := client.ClustersUpdateVersionThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.ConsolesCreateOrUpdate
ctx := context.TODO()
id := networkclouds.NewConsoleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "consoleValue")
payload := networkclouds.Console{
// ...
}
if err := client.ConsolesCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.ConsolesDelete
ctx := context.TODO()
id := networkclouds.NewConsoleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "consoleValue")
if err := client.ConsolesDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.ConsolesGet
ctx := context.TODO()
id := networkclouds.NewConsoleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "consoleValue")
read, err := client.ConsolesGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.ConsolesListByVirtualMachine
ctx := context.TODO()
id := networkclouds.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")
// alternatively `client.ConsolesListByVirtualMachine(ctx, id)` can be used to do batched pagination
items, err := client.ConsolesListByVirtualMachineComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.ConsolesUpdate
ctx := context.TODO()
id := networkclouds.NewConsoleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue", "consoleValue")
payload := networkclouds.ConsolePatchParameters{
// ...
}
if err := client.ConsolesUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.KubernetesClustersCreateOrUpdate
ctx := context.TODO()
id := networkclouds.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kubernetesClusterValue")
payload := networkclouds.KubernetesCluster{
// ...
}
if err := client.KubernetesClustersCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.KubernetesClustersDelete
ctx := context.TODO()
id := networkclouds.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kubernetesClusterValue")
if err := client.KubernetesClustersDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.KubernetesClustersGet
ctx := context.TODO()
id := networkclouds.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kubernetesClusterValue")
read, err := client.KubernetesClustersGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.KubernetesClustersListByResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.KubernetesClustersListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.KubernetesClustersListByResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.KubernetesClustersListBySubscription
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.KubernetesClustersListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.KubernetesClustersListBySubscriptionComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.KubernetesClustersRestartNode
ctx := context.TODO()
id := networkclouds.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kubernetesClusterValue")
payload := networkclouds.KubernetesClusterRestartNodeParameters{
// ...
}
if err := client.KubernetesClustersRestartNodeThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.KubernetesClustersUpdate
ctx := context.TODO()
id := networkclouds.NewKubernetesClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "kubernetesClusterValue")
payload := networkclouds.KubernetesClusterPatchParameters{
// ...
}
if err := client.KubernetesClustersUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.L2NetworksCreateOrUpdate
ctx := context.TODO()
id := networkclouds.NewL2NetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "l2NetworkValue")
payload := networkclouds.L2Network{
// ...
}
if err := client.L2NetworksCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.L2NetworksDelete
ctx := context.TODO()
id := networkclouds.NewL2NetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "l2NetworkValue")
if err := client.L2NetworksDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.L2NetworksGet
ctx := context.TODO()
id := networkclouds.NewL2NetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "l2NetworkValue")
read, err := client.L2NetworksGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.L2NetworksListByResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.L2NetworksListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.L2NetworksListByResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.L2NetworksListBySubscription
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.L2NetworksListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.L2NetworksListBySubscriptionComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.L2NetworksUpdate
ctx := context.TODO()
id := networkclouds.NewL2NetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "l2NetworkValue")
payload := networkclouds.L2NetworkPatchParameters{
// ...
}
read, err := client.L2NetworksUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.L3NetworksCreateOrUpdate
ctx := context.TODO()
id := networkclouds.NewL3NetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "l3NetworkValue")
payload := networkclouds.L3Network{
// ...
}
if err := client.L3NetworksCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.L3NetworksDelete
ctx := context.TODO()
id := networkclouds.NewL3NetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "l3NetworkValue")
if err := client.L3NetworksDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.L3NetworksGet
ctx := context.TODO()
id := networkclouds.NewL3NetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "l3NetworkValue")
read, err := client.L3NetworksGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.L3NetworksListByResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.L3NetworksListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.L3NetworksListByResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.L3NetworksListBySubscription
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.L3NetworksListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.L3NetworksListBySubscriptionComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.L3NetworksUpdate
ctx := context.TODO()
id := networkclouds.NewL3NetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "l3NetworkValue")
payload := networkclouds.L3NetworkPatchParameters{
// ...
}
read, err := client.L3NetworksUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.MetricsConfigurationsCreateOrUpdate
ctx := context.TODO()
id := networkclouds.NewMetricsConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "metricsConfigurationValue")
payload := networkclouds.ClusterMetricsConfiguration{
// ...
}
if err := client.MetricsConfigurationsCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.MetricsConfigurationsDelete
ctx := context.TODO()
id := networkclouds.NewMetricsConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "metricsConfigurationValue")
if err := client.MetricsConfigurationsDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.MetricsConfigurationsGet
ctx := context.TODO()
id := networkclouds.NewMetricsConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "metricsConfigurationValue")
read, err := client.MetricsConfigurationsGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.MetricsConfigurationsListByCluster
ctx := context.TODO()
id := networkclouds.NewClusterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue")
// alternatively `client.MetricsConfigurationsListByCluster(ctx, id)` can be used to do batched pagination
items, err := client.MetricsConfigurationsListByClusterComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.MetricsConfigurationsUpdate
ctx := context.TODO()
id := networkclouds.NewMetricsConfigurationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "clusterValue", "metricsConfigurationValue")
payload := networkclouds.ClusterMetricsConfigurationPatchParameters{
// ...
}
if err := client.MetricsConfigurationsUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.RackSkusGet
ctx := context.TODO()
id := networkclouds.NewRackSkuID("12345678-1234-9876-4563-123456789012", "rackSkuValue")
read, err := client.RackSkusGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.RackSkusListBySubscription
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.RackSkusListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.RackSkusListBySubscriptionComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.RacksCreateOrUpdate
ctx := context.TODO()
id := networkclouds.NewRackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "rackValue")
payload := networkclouds.Rack{
// ...
}
if err := client.RacksCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.RacksDelete
ctx := context.TODO()
id := networkclouds.NewRackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "rackValue")
if err := client.RacksDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.RacksGet
ctx := context.TODO()
id := networkclouds.NewRackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "rackValue")
read, err := client.RacksGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.RacksListByResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.RacksListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.RacksListByResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.RacksListBySubscription
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.RacksListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.RacksListBySubscriptionComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.RacksUpdate
ctx := context.TODO()
id := networkclouds.NewRackID("12345678-1234-9876-4563-123456789012", "example-resource-group", "rackValue")
payload := networkclouds.RackPatchParameters{
// ...
}
if err := client.RacksUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.StorageAppliancesCreateOrUpdate
ctx := context.TODO()
id := networkclouds.NewStorageApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageApplianceValue")
payload := networkclouds.StorageAppliance{
// ...
}
if err := client.StorageAppliancesCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.StorageAppliancesDelete
ctx := context.TODO()
id := networkclouds.NewStorageApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageApplianceValue")
if err := client.StorageAppliancesDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.StorageAppliancesDisableRemoteVendorManagement
ctx := context.TODO()
id := networkclouds.NewStorageApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageApplianceValue")
if err := client.StorageAppliancesDisableRemoteVendorManagementThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.StorageAppliancesEnableRemoteVendorManagement
ctx := context.TODO()
id := networkclouds.NewStorageApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageApplianceValue")
payload := networkclouds.StorageApplianceEnableRemoteVendorManagementParameters{
// ...
}
if err := client.StorageAppliancesEnableRemoteVendorManagementThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.StorageAppliancesGet
ctx := context.TODO()
id := networkclouds.NewStorageApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageApplianceValue")
read, err := client.StorageAppliancesGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.StorageAppliancesListByResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.StorageAppliancesListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.StorageAppliancesListByResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.StorageAppliancesListBySubscription
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.StorageAppliancesListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.StorageAppliancesListBySubscriptionComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.StorageAppliancesUpdate
ctx := context.TODO()
id := networkclouds.NewStorageApplianceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageApplianceValue")
payload := networkclouds.StorageAppliancePatchParameters{
// ...
}
if err := client.StorageAppliancesUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.TrunkedNetworksCreateOrUpdate
ctx := context.TODO()
id := networkclouds.NewTrunkedNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trunkedNetworkValue")
payload := networkclouds.TrunkedNetwork{
// ...
}
if err := client.TrunkedNetworksCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.TrunkedNetworksDelete
ctx := context.TODO()
id := networkclouds.NewTrunkedNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trunkedNetworkValue")
if err := client.TrunkedNetworksDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.TrunkedNetworksGet
ctx := context.TODO()
id := networkclouds.NewTrunkedNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trunkedNetworkValue")
read, err := client.TrunkedNetworksGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.TrunkedNetworksListByResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.TrunkedNetworksListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.TrunkedNetworksListByResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.TrunkedNetworksListBySubscription
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.TrunkedNetworksListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.TrunkedNetworksListBySubscriptionComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.TrunkedNetworksUpdate
ctx := context.TODO()
id := networkclouds.NewTrunkedNetworkID("12345678-1234-9876-4563-123456789012", "example-resource-group", "trunkedNetworkValue")
payload := networkclouds.TrunkedNetworkPatchParameters{
// ...
}
read, err := client.TrunkedNetworksUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.VirtualMachinesCreateOrUpdate
ctx := context.TODO()
id := networkclouds.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")
payload := networkclouds.VirtualMachine{
// ...
}
if err := client.VirtualMachinesCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.VirtualMachinesDelete
ctx := context.TODO()
id := networkclouds.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")
if err := client.VirtualMachinesDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.VirtualMachinesGet
ctx := context.TODO()
id := networkclouds.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")
read, err := client.VirtualMachinesGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.VirtualMachinesListByResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.VirtualMachinesListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.VirtualMachinesListByResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.VirtualMachinesListBySubscription
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.VirtualMachinesListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.VirtualMachinesListBySubscriptionComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.VirtualMachinesPowerOff
ctx := context.TODO()
id := networkclouds.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")
payload := networkclouds.VirtualMachinePowerOffParameters{
// ...
}
if err := client.VirtualMachinesPowerOffThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.VirtualMachinesReimage
ctx := context.TODO()
id := networkclouds.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")
if err := client.VirtualMachinesReimageThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.VirtualMachinesRestart
ctx := context.TODO()
id := networkclouds.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")
if err := client.VirtualMachinesRestartThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.VirtualMachinesStart
ctx := context.TODO()
id := networkclouds.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")
if err := client.VirtualMachinesStartThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.VirtualMachinesUpdate
ctx := context.TODO()
id := networkclouds.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")
payload := networkclouds.VirtualMachinePatchParameters{
// ...
}
if err := client.VirtualMachinesUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.VolumesCreateOrUpdate
ctx := context.TODO()
id := networkclouds.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "volumeValue")
payload := networkclouds.Volume{
// ...
}
if err := client.VolumesCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.VolumesDelete
ctx := context.TODO()
id := networkclouds.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "volumeValue")
if err := client.VolumesDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: NetworkcloudsClient.VolumesGet
ctx := context.TODO()
id := networkclouds.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "volumeValue")
read, err := client.VolumesGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: NetworkcloudsClient.VolumesListByResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.VolumesListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.VolumesListByResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.VolumesListBySubscription
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.VolumesListBySubscription(ctx, id)` can be used to do batched pagination
items, err := client.VolumesListBySubscriptionComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: NetworkcloudsClient.VolumesUpdate
ctx := context.TODO()
id := networkclouds.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "volumeValue")
payload := networkclouds.VolumePatchParameters{
// ...
}
read, err := client.VolumesUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}