From 28b92af8356c4957f704b9dbca0cbf11c79f5ed6 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Tue, 18 Apr 2023 13:42:52 +0200 Subject: [PATCH 1/3] vendor: updating `vmware` to `2022-05-01` --- .../2020-03-20/clusters/model_cluster.go | 12 -- .../privateclouds/model_privatecloud.go | 14 -- .../model_privatecloudupdateproperties.go | 10 -- .../authorizations/README.md | 6 +- .../authorizations/client.go | 0 .../authorizations/constants.go | 3 + .../authorizations/id_authorization.go | 0 .../authorizations/id_privatecloud.go | 0 .../method_createorupdate_autorest.go | 0 .../authorizations/method_delete_autorest.go | 0 .../authorizations/method_get_autorest.go | 0 .../authorizations/method_list_autorest.go | 0 .../model_expressrouteauthorization.go | 0 ...del_expressrouteauthorizationproperties.go | 1 + .../authorizations/predicates.go | 0 .../authorizations/version.go | 2 +- .../clusters/README.md | 6 +- .../clusters/client.go | 0 .../clusters/constants.go | 3 + .../clusters/id_cluster.go | 0 .../clusters/id_privatecloud.go | 0 .../method_createorupdate_autorest.go | 0 .../clusters/method_delete_autorest.go | 0 .../clusters/method_get_autorest.go | 0 .../clusters/method_list_autorest.go | 0 .../clusters/method_update_autorest.go | 0 .../2022-05-01/clusters/model_cluster.go | 12 ++ .../clusters/model_clusterupdate.go | 0 .../clusters/model_clusterupdateproperties.go | 3 +- .../model_commonclusterproperties.go} | 4 +- .../clusters/model_sku.go | 0 .../clusters/predicates.go | 0 .../clusters/version.go | 2 +- .../datastores/README.md | 6 +- .../datastores/client.go | 0 .../datastores/constants.go | 3 + .../datastores/id_cluster.go | 0 .../datastores/id_datastore.go | 0 .../method_createorupdate_autorest.go | 0 .../datastores/method_delete_autorest.go | 0 .../datastores/method_get_autorest.go | 0 .../datastores/method_list_autorest.go | 0 .../datastores/model_datastore.go | 0 .../datastores/model_datastoreproperties.go | 0 .../datastores/model_diskpoolvolume.go | 0 .../datastores/model_netappvolume.go | 0 .../datastores/predicates.go | 0 .../datastores/version.go | 2 +- .../privateclouds/README.md | 30 +++- .../privateclouds/client.go | 0 .../privateclouds/constants.go | 146 ++++++++++++++++++ .../privateclouds/id_privatecloud.go | 0 .../method_createorupdate_autorest.go | 0 .../privateclouds/method_delete_autorest.go | 0 .../privateclouds/method_get_autorest.go | 0 .../privateclouds/method_list_autorest.go | 0 .../method_listadmincredentials_autorest.go | 0 .../method_listinsubscription_autorest.go | 0 .../method_rotatensxtpassword_autorest.go | 78 ++++++++++ .../method_rotatevcenterpassword_autorest.go | 78 ++++++++++ .../privateclouds/method_update_autorest.go | 0 .../privateclouds/model_admincredentials.go | 0 .../model_availabilityproperties.go | 10 ++ .../privateclouds/model_circuit.go | 0 .../model_commonclusterproperties.go} | 4 +- .../privateclouds/model_encryption.go | 9 ++ .../model_encryptionkeyvaultproperties.go | 13 ++ .../privateclouds/model_endpoints.go | 0 .../privateclouds/model_identitysource.go | 0 .../privateclouds/model_privatecloud.go | 19 +++ .../model_privatecloudproperties.go | 7 +- .../privateclouds/model_privatecloudupdate.go | 5 + .../model_privatecloudupdateproperties.go | 12 ++ .../privateclouds/model_sku.go | 0 .../privateclouds/predicates.go | 0 .../privateclouds/version.go | 2 +- vendor/modules.txt | 8 +- 77 files changed, 448 insertions(+), 62 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/model_cluster.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_privatecloud.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_privatecloudupdateproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/authorizations/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/authorizations/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/authorizations/constants.go (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/authorizations/id_authorization.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/authorizations/id_privatecloud.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/authorizations/method_createorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/authorizations/method_delete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/authorizations/method_get_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/authorizations/method_list_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/authorizations/model_expressrouteauthorization.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/authorizations/model_expressrouteauthorizationproperties.go (84%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/authorizations/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/authorizations/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/clusters/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/clusters/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/clusters/constants.go (89%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/clusters/id_cluster.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/clusters/id_privatecloud.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/clusters/method_createorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/clusters/method_delete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/clusters/method_get_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/clusters/method_list_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/clusters/method_update_autorest.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/model_cluster.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/clusters/model_clusterupdate.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/clusters/model_clusterupdateproperties.go (67%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20/clusters/model_clusterproperties.go => 2022-05-01/clusters/model_commonclusterproperties.go} (77%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/clusters/model_sku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/clusters/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/clusters/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2021-12-01 => 2022-05-01}/datastores/README.md (94%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2021-12-01 => 2022-05-01}/datastores/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2021-12-01 => 2022-05-01}/datastores/constants.go (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2021-12-01 => 2022-05-01}/datastores/id_cluster.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2021-12-01 => 2022-05-01}/datastores/id_datastore.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2021-12-01 => 2022-05-01}/datastores/method_createorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2021-12-01 => 2022-05-01}/datastores/method_delete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2021-12-01 => 2022-05-01}/datastores/method_get_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2021-12-01 => 2022-05-01}/datastores/method_list_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2021-12-01 => 2022-05-01}/datastores/model_datastore.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2021-12-01 => 2022-05-01}/datastores/model_datastoreproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2021-12-01 => 2022-05-01}/datastores/model_diskpoolvolume.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2021-12-01 => 2022-05-01}/datastores/model_netappvolume.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2021-12-01 => 2022-05-01}/datastores/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2021-12-01 => 2022-05-01}/datastores/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/README.md (80%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/constants.go (52%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/id_privatecloud.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/method_createorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/method_delete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/method_get_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/method_list_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/method_listadmincredentials_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/method_listinsubscription_autorest.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_rotatensxtpassword_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_rotatevcenterpassword_autorest.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/method_update_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/model_admincredentials.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_availabilityproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/model_circuit.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20/privateclouds/model_managementcluster.go => 2022-05-01/privateclouds/model_commonclusterproperties.go} (78%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_encryption.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_encryptionkeyvaultproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/model_endpoints.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/model_identitysource.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_privatecloud.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/model_privatecloudproperties.go (73%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/model_privatecloudupdate.go (70%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_privatecloudupdateproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/model_sku.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/{2020-03-20 => 2022-05-01}/privateclouds/version.go (88%) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/model_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/model_cluster.go deleted file mode 100644 index 01f966a166d3..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/model_cluster.go +++ /dev/null @@ -1,12 +0,0 @@ -package clusters - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Cluster struct { - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties ClusterProperties `json:"properties"` - Sku Sku `json:"sku"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_privatecloud.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_privatecloud.go deleted file mode 100644 index 24291a3476e8..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_privatecloud.go +++ /dev/null @@ -1,14 +0,0 @@ -package privateclouds - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateCloud struct { - Id *string `json:"id,omitempty"` - Location string `json:"location"` - Name *string `json:"name,omitempty"` - Properties PrivateCloudProperties `json:"properties"` - Sku Sku `json:"sku"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_privatecloudupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_privatecloudupdateproperties.go deleted file mode 100644 index 8d5a5601b605..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_privatecloudupdateproperties.go +++ /dev/null @@ -1,10 +0,0 @@ -package privateclouds - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PrivateCloudUpdateProperties struct { - IdentitySources *[]IdentitySource `json:"identitySources,omitempty"` - Internet *InternetEnum `json:"internet,omitempty"` - ManagementCluster *ManagementCluster `json:"managementCluster,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/README.md index d434ad485f4a..c94c92c44496 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations` Documentation -The `authorizations` SDK allows for interaction with the Azure Resource Manager Service `vmware` (API Version `2020-03-20`). +The `authorizations` SDK allows for interaction with the Azure Resource Manager Service `vmware` (API Version `2022-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations" +import "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/constants.go similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/constants.go index 119aad8e2f13..40fb29a13b93 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/constants.go @@ -8,6 +8,7 @@ import "strings" type ExpressRouteAuthorizationProvisioningState string const ( + ExpressRouteAuthorizationProvisioningStateCanceled ExpressRouteAuthorizationProvisioningState = "Canceled" ExpressRouteAuthorizationProvisioningStateFailed ExpressRouteAuthorizationProvisioningState = "Failed" ExpressRouteAuthorizationProvisioningStateSucceeded ExpressRouteAuthorizationProvisioningState = "Succeeded" ExpressRouteAuthorizationProvisioningStateUpdating ExpressRouteAuthorizationProvisioningState = "Updating" @@ -15,6 +16,7 @@ const ( func PossibleValuesForExpressRouteAuthorizationProvisioningState() []string { return []string{ + string(ExpressRouteAuthorizationProvisioningStateCanceled), string(ExpressRouteAuthorizationProvisioningStateFailed), string(ExpressRouteAuthorizationProvisioningStateSucceeded), string(ExpressRouteAuthorizationProvisioningStateUpdating), @@ -23,6 +25,7 @@ func PossibleValuesForExpressRouteAuthorizationProvisioningState() []string { func parseExpressRouteAuthorizationProvisioningState(input string) (*ExpressRouteAuthorizationProvisioningState, error) { vals := map[string]ExpressRouteAuthorizationProvisioningState{ + "canceled": ExpressRouteAuthorizationProvisioningStateCanceled, "failed": ExpressRouteAuthorizationProvisioningStateFailed, "succeeded": ExpressRouteAuthorizationProvisioningStateSucceeded, "updating": ExpressRouteAuthorizationProvisioningStateUpdating, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/id_authorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/id_authorization.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/id_authorization.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/id_authorization.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/id_privatecloud.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/id_privatecloud.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/id_privatecloud.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/id_privatecloud.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/method_createorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/method_createorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/method_createorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/method_delete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/method_delete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/method_delete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/method_get_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/method_get_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/method_get_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/method_list_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/method_list_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/method_list_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/method_list_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/model_expressrouteauthorization.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/model_expressrouteauthorization.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/model_expressrouteauthorization.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/model_expressrouteauthorization.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/model_expressrouteauthorizationproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/model_expressrouteauthorizationproperties.go similarity index 84% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/model_expressrouteauthorizationproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/model_expressrouteauthorizationproperties.go index a90f91310ec6..db4cd1369389 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/model_expressrouteauthorizationproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/model_expressrouteauthorizationproperties.go @@ -6,5 +6,6 @@ package authorizations type ExpressRouteAuthorizationProperties struct { ExpressRouteAuthorizationId *string `json:"expressRouteAuthorizationId,omitempty"` ExpressRouteAuthorizationKey *string `json:"expressRouteAuthorizationKey,omitempty"` + ExpressRouteId *string `json:"expressRouteId,omitempty"` ProvisioningState *ExpressRouteAuthorizationProvisioningState `json:"provisioningState,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/version.go index a2ced400b404..f7b5290c4a9e 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2020-03-20" +const defaultApiVersion = "2022-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/authorizations/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/README.md index 931cc65014cc..dc321bc37ae4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters` Documentation -The `clusters` SDK allows for interaction with the Azure Resource Manager Service `vmware` (API Version `2020-03-20`). +The `clusters` SDK allows for interaction with the Azure Resource Manager Service `vmware` (API Version `2022-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters" +import "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/constants.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/constants.go index bff8f45efae8..0f62bc358621 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/constants.go @@ -8,6 +8,7 @@ import "strings" type ClusterProvisioningState string const ( + ClusterProvisioningStateCanceled ClusterProvisioningState = "Canceled" ClusterProvisioningStateCancelled ClusterProvisioningState = "Cancelled" ClusterProvisioningStateDeleting ClusterProvisioningState = "Deleting" ClusterProvisioningStateFailed ClusterProvisioningState = "Failed" @@ -17,6 +18,7 @@ const ( func PossibleValuesForClusterProvisioningState() []string { return []string{ + string(ClusterProvisioningStateCanceled), string(ClusterProvisioningStateCancelled), string(ClusterProvisioningStateDeleting), string(ClusterProvisioningStateFailed), @@ -27,6 +29,7 @@ func PossibleValuesForClusterProvisioningState() []string { func parseClusterProvisioningState(input string) (*ClusterProvisioningState, error) { vals := map[string]ClusterProvisioningState{ + "canceled": ClusterProvisioningStateCanceled, "cancelled": ClusterProvisioningStateCancelled, "deleting": ClusterProvisioningStateDeleting, "failed": ClusterProvisioningStateFailed, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/id_cluster.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/id_cluster.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/id_cluster.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/id_privatecloud.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/id_privatecloud.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/id_privatecloud.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/id_privatecloud.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/method_createorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/method_createorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/method_createorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/method_delete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/method_delete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/method_delete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/method_get_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/method_get_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/method_get_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/method_list_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/method_list_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/method_list_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/method_list_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/method_update_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/method_update_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/method_update_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/method_update_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/model_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/model_cluster.go new file mode 100644 index 000000000000..e8e58b714edd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/model_cluster.go @@ -0,0 +1,12 @@ +package clusters + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Cluster struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Properties *CommonClusterProperties `json:"properties,omitempty"` + Sku Sku `json:"sku"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/model_clusterupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/model_clusterupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/model_clusterupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/model_clusterupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/model_clusterupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/model_clusterupdateproperties.go similarity index 67% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/model_clusterupdateproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/model_clusterupdateproperties.go index 21250bcc6e79..f7bad5e6a749 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/model_clusterupdateproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/model_clusterupdateproperties.go @@ -4,5 +4,6 @@ package clusters // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type ClusterUpdateProperties struct { - ClusterSize *int64 `json:"clusterSize,omitempty"` + ClusterSize *int64 `json:"clusterSize,omitempty"` + Hosts *[]string `json:"hosts,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/model_clusterproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/model_commonclusterproperties.go similarity index 77% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/model_clusterproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/model_commonclusterproperties.go index 8644b5b74e9c..aeefd0990fdd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/model_clusterproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/model_commonclusterproperties.go @@ -3,9 +3,9 @@ package clusters // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ClusterProperties struct { +type CommonClusterProperties struct { ClusterId *int64 `json:"clusterId,omitempty"` - ClusterSize int64 `json:"clusterSize"` + ClusterSize *int64 `json:"clusterSize,omitempty"` Hosts *[]string `json:"hosts,omitempty"` ProvisioningState *ClusterProvisioningState `json:"provisioningState,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/model_sku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/model_sku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/model_sku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/version.go index 69aa5d354003..eb7c3e76e0a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2020-03-20" +const defaultApiVersion = "2022-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/clusters/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/README.md similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/README.md index 1e5dca0c8aef..ababa55e7eeb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores` Documentation -The `datastores` SDK allows for interaction with the Azure Resource Manager Service `vmware` (API Version `2021-12-01`). +The `datastores` SDK allows for interaction with the Azure Resource Manager Service `vmware` (API Version `2022-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores" +import "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/constants.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/constants.go index e9467b6d650a..0a34b4a50411 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/constants.go @@ -8,6 +8,7 @@ import "strings" type DatastoreProvisioningState string const ( + DatastoreProvisioningStateCanceled DatastoreProvisioningState = "Canceled" DatastoreProvisioningStateCancelled DatastoreProvisioningState = "Cancelled" DatastoreProvisioningStateCreating DatastoreProvisioningState = "Creating" DatastoreProvisioningStateDeleting DatastoreProvisioningState = "Deleting" @@ -19,6 +20,7 @@ const ( func PossibleValuesForDatastoreProvisioningState() []string { return []string{ + string(DatastoreProvisioningStateCanceled), string(DatastoreProvisioningStateCancelled), string(DatastoreProvisioningStateCreating), string(DatastoreProvisioningStateDeleting), @@ -31,6 +33,7 @@ func PossibleValuesForDatastoreProvisioningState() []string { func parseDatastoreProvisioningState(input string) (*DatastoreProvisioningState, error) { vals := map[string]DatastoreProvisioningState{ + "canceled": DatastoreProvisioningStateCanceled, "cancelled": DatastoreProvisioningStateCancelled, "creating": DatastoreProvisioningStateCreating, "deleting": DatastoreProvisioningStateDeleting, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/id_cluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/id_cluster.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/id_cluster.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/id_cluster.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/id_datastore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/id_datastore.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/id_datastore.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/id_datastore.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/method_createorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/method_createorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/method_createorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/method_delete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/method_delete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/method_delete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/method_get_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/method_get_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/method_get_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/method_list_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/method_list_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/method_list_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/method_list_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/model_datastore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/model_datastore.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/model_datastore.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/model_datastore.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/model_datastoreproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/model_datastoreproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/model_datastoreproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/model_datastoreproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/model_diskpoolvolume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/model_diskpoolvolume.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/model_diskpoolvolume.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/model_diskpoolvolume.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/model_netappvolume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/model_netappvolume.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/model_netappvolume.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/model_netappvolume.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/version.go index 4f7442af1a68..0c329ca8cc51 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2021-12-01" +const defaultApiVersion = "2022-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/datastores/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/README.md similarity index 80% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/README.md index d97c222a5201..9c1144d7ca66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds` Documentation -The `privateclouds` SDK allows for interaction with the Azure Resource Manager Service `vmware` (API Version `2020-03-20`). +The `privateclouds` SDK allows for interaction with the Azure Resource Manager Service `vmware` (API Version `2022-05-01`). This readme covers example usages, but further information on [using this SDK can be found in the project root](https://github.com/hashicorp/go-azure-sdk/tree/main/docs). ### Import Path ```go -import "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds" +import "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds" ``` @@ -115,6 +115,30 @@ for _, item := range items { ``` +### Example Usage: `PrivateCloudsClient.RotateNsxtPassword` + +```go +ctx := context.TODO() +id := privateclouds.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue") + +if err := client.RotateNsxtPasswordThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + +### Example Usage: `PrivateCloudsClient.RotateVcenterPassword` + +```go +ctx := context.TODO() +id := privateclouds.NewPrivateCloudID("12345678-1234-9876-4563-123456789012", "example-resource-group", "privateCloudValue") + +if err := client.RotateVcenterPasswordThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + ### Example Usage: `PrivateCloudsClient.Update` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/constants.go similarity index 52% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/constants.go index d3059c253c47..c56c9eb894d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/constants.go @@ -5,9 +5,38 @@ import "strings" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. +type AvailabilityStrategy string + +const ( + AvailabilityStrategyDualZone AvailabilityStrategy = "DualZone" + AvailabilityStrategySingleZone AvailabilityStrategy = "SingleZone" +) + +func PossibleValuesForAvailabilityStrategy() []string { + return []string{ + string(AvailabilityStrategyDualZone), + string(AvailabilityStrategySingleZone), + } +} + +func parseAvailabilityStrategy(input string) (*AvailabilityStrategy, error) { + vals := map[string]AvailabilityStrategy{ + "dualzone": AvailabilityStrategyDualZone, + "singlezone": AvailabilityStrategySingleZone, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := AvailabilityStrategy(input) + return &out, nil +} + type ClusterProvisioningState string const ( + ClusterProvisioningStateCanceled ClusterProvisioningState = "Canceled" ClusterProvisioningStateCancelled ClusterProvisioningState = "Cancelled" ClusterProvisioningStateDeleting ClusterProvisioningState = "Deleting" ClusterProvisioningStateFailed ClusterProvisioningState = "Failed" @@ -17,6 +46,7 @@ const ( func PossibleValuesForClusterProvisioningState() []string { return []string{ + string(ClusterProvisioningStateCanceled), string(ClusterProvisioningStateCancelled), string(ClusterProvisioningStateDeleting), string(ClusterProvisioningStateFailed), @@ -27,6 +57,7 @@ func PossibleValuesForClusterProvisioningState() []string { func parseClusterProvisioningState(input string) (*ClusterProvisioningState, error) { vals := map[string]ClusterProvisioningState{ + "canceled": ClusterProvisioningStateCanceled, "cancelled": ClusterProvisioningStateCancelled, "deleting": ClusterProvisioningStateDeleting, "failed": ClusterProvisioningStateFailed, @@ -42,6 +73,90 @@ func parseClusterProvisioningState(input string) (*ClusterProvisioningState, err return &out, nil } +type EncryptionKeyStatus string + +const ( + EncryptionKeyStatusAccessDenied EncryptionKeyStatus = "AccessDenied" + EncryptionKeyStatusConnected EncryptionKeyStatus = "Connected" +) + +func PossibleValuesForEncryptionKeyStatus() []string { + return []string{ + string(EncryptionKeyStatusAccessDenied), + string(EncryptionKeyStatusConnected), + } +} + +func parseEncryptionKeyStatus(input string) (*EncryptionKeyStatus, error) { + vals := map[string]EncryptionKeyStatus{ + "accessdenied": EncryptionKeyStatusAccessDenied, + "connected": EncryptionKeyStatusConnected, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EncryptionKeyStatus(input) + return &out, nil +} + +type EncryptionState string + +const ( + EncryptionStateDisabled EncryptionState = "Disabled" + EncryptionStateEnabled EncryptionState = "Enabled" +) + +func PossibleValuesForEncryptionState() []string { + return []string{ + string(EncryptionStateDisabled), + string(EncryptionStateEnabled), + } +} + +func parseEncryptionState(input string) (*EncryptionState, error) { + vals := map[string]EncryptionState{ + "disabled": EncryptionStateDisabled, + "enabled": EncryptionStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EncryptionState(input) + return &out, nil +} + +type EncryptionVersionType string + +const ( + EncryptionVersionTypeAutoDetected EncryptionVersionType = "AutoDetected" + EncryptionVersionTypeFixed EncryptionVersionType = "Fixed" +) + +func PossibleValuesForEncryptionVersionType() []string { + return []string{ + string(EncryptionVersionTypeAutoDetected), + string(EncryptionVersionTypeFixed), + } +} + +func parseEncryptionVersionType(input string) (*EncryptionVersionType, error) { + vals := map[string]EncryptionVersionType{ + "autodetected": EncryptionVersionTypeAutoDetected, + "fixed": EncryptionVersionTypeFixed, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EncryptionVersionType(input) + return &out, nil +} + type InternetEnum string const ( @@ -70,10 +185,39 @@ func parseInternetEnum(input string) (*InternetEnum, error) { return &out, nil } +type NsxPublicIPQuotaRaisedEnum string + +const ( + NsxPublicIPQuotaRaisedEnumDisabled NsxPublicIPQuotaRaisedEnum = "Disabled" + NsxPublicIPQuotaRaisedEnumEnabled NsxPublicIPQuotaRaisedEnum = "Enabled" +) + +func PossibleValuesForNsxPublicIPQuotaRaisedEnum() []string { + return []string{ + string(NsxPublicIPQuotaRaisedEnumDisabled), + string(NsxPublicIPQuotaRaisedEnumEnabled), + } +} + +func parseNsxPublicIPQuotaRaisedEnum(input string) (*NsxPublicIPQuotaRaisedEnum, error) { + vals := map[string]NsxPublicIPQuotaRaisedEnum{ + "disabled": NsxPublicIPQuotaRaisedEnumDisabled, + "enabled": NsxPublicIPQuotaRaisedEnumEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := NsxPublicIPQuotaRaisedEnum(input) + return &out, nil +} + type PrivateCloudProvisioningState string const ( PrivateCloudProvisioningStateBuilding PrivateCloudProvisioningState = "Building" + PrivateCloudProvisioningStateCanceled PrivateCloudProvisioningState = "Canceled" PrivateCloudProvisioningStateCancelled PrivateCloudProvisioningState = "Cancelled" PrivateCloudProvisioningStateDeleting PrivateCloudProvisioningState = "Deleting" PrivateCloudProvisioningStateFailed PrivateCloudProvisioningState = "Failed" @@ -85,6 +229,7 @@ const ( func PossibleValuesForPrivateCloudProvisioningState() []string { return []string{ string(PrivateCloudProvisioningStateBuilding), + string(PrivateCloudProvisioningStateCanceled), string(PrivateCloudProvisioningStateCancelled), string(PrivateCloudProvisioningStateDeleting), string(PrivateCloudProvisioningStateFailed), @@ -97,6 +242,7 @@ func PossibleValuesForPrivateCloudProvisioningState() []string { func parsePrivateCloudProvisioningState(input string) (*PrivateCloudProvisioningState, error) { vals := map[string]PrivateCloudProvisioningState{ "building": PrivateCloudProvisioningStateBuilding, + "canceled": PrivateCloudProvisioningStateCanceled, "cancelled": PrivateCloudProvisioningStateCancelled, "deleting": PrivateCloudProvisioningStateDeleting, "failed": PrivateCloudProvisioningStateFailed, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/id_privatecloud.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/id_privatecloud.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/id_privatecloud.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/id_privatecloud.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_createorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/method_createorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_createorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_delete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/method_delete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_delete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_get_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/method_get_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_get_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/method_list_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_list_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/method_list_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_list_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/method_listadmincredentials_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_listadmincredentials_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/method_listadmincredentials_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_listadmincredentials_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/method_listinsubscription_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_listinsubscription_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/method_listinsubscription_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_listinsubscription_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_rotatensxtpassword_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_rotatensxtpassword_autorest.go new file mode 100644 index 000000000000..80dec2b4904a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_rotatensxtpassword_autorest.go @@ -0,0 +1,78 @@ +package privateclouds + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/polling" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RotateNsxtPasswordOperationResponse struct { + Poller polling.LongRunningPoller + HttpResponse *http.Response +} + +// RotateNsxtPassword ... +func (c PrivateCloudsClient) RotateNsxtPassword(ctx context.Context, id PrivateCloudId) (result RotateNsxtPasswordOperationResponse, err error) { + req, err := c.preparerForRotateNsxtPassword(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "privateclouds.PrivateCloudsClient", "RotateNsxtPassword", nil, "Failure preparing request") + return + } + + result, err = c.senderForRotateNsxtPassword(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "privateclouds.PrivateCloudsClient", "RotateNsxtPassword", result.HttpResponse, "Failure sending request") + return + } + + return +} + +// RotateNsxtPasswordThenPoll performs RotateNsxtPassword then polls until it's completed +func (c PrivateCloudsClient) RotateNsxtPasswordThenPoll(ctx context.Context, id PrivateCloudId) error { + result, err := c.RotateNsxtPassword(ctx, id) + if err != nil { + return fmt.Errorf("performing RotateNsxtPassword: %+v", err) + } + + if err := result.Poller.PollUntilDone(); err != nil { + return fmt.Errorf("polling after RotateNsxtPassword: %+v", err) + } + + return nil +} + +// preparerForRotateNsxtPassword prepares the RotateNsxtPassword request. +func (c PrivateCloudsClient) preparerForRotateNsxtPassword(ctx context.Context, id PrivateCloudId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/rotateNsxtPassword", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForRotateNsxtPassword sends the RotateNsxtPassword request. The method will close the +// http.Response Body if it receives an error. +func (c PrivateCloudsClient) senderForRotateNsxtPassword(ctx context.Context, req *http.Request) (future RotateNsxtPasswordOperationResponse, err error) { + var resp *http.Response + resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + return + } + + future.Poller, err = polling.NewPollerFromResponse(ctx, resp, c.Client, req.Method) + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_rotatevcenterpassword_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_rotatevcenterpassword_autorest.go new file mode 100644 index 000000000000..f88844e230b1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_rotatevcenterpassword_autorest.go @@ -0,0 +1,78 @@ +package privateclouds + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" + "github.com/hashicorp/go-azure-helpers/polling" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type RotateVcenterPasswordOperationResponse struct { + Poller polling.LongRunningPoller + HttpResponse *http.Response +} + +// RotateVcenterPassword ... +func (c PrivateCloudsClient) RotateVcenterPassword(ctx context.Context, id PrivateCloudId) (result RotateVcenterPasswordOperationResponse, err error) { + req, err := c.preparerForRotateVcenterPassword(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "privateclouds.PrivateCloudsClient", "RotateVcenterPassword", nil, "Failure preparing request") + return + } + + result, err = c.senderForRotateVcenterPassword(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "privateclouds.PrivateCloudsClient", "RotateVcenterPassword", result.HttpResponse, "Failure sending request") + return + } + + return +} + +// RotateVcenterPasswordThenPoll performs RotateVcenterPassword then polls until it's completed +func (c PrivateCloudsClient) RotateVcenterPasswordThenPoll(ctx context.Context, id PrivateCloudId) error { + result, err := c.RotateVcenterPassword(ctx, id) + if err != nil { + return fmt.Errorf("performing RotateVcenterPassword: %+v", err) + } + + if err := result.Poller.PollUntilDone(); err != nil { + return fmt.Errorf("polling after RotateVcenterPassword: %+v", err) + } + + return nil +} + +// preparerForRotateVcenterPassword prepares the RotateVcenterPassword request. +func (c PrivateCloudsClient) preparerForRotateVcenterPassword(ctx context.Context, id PrivateCloudId) (*http.Request, error) { + queryParameters := map[string]interface{}{ + "api-version": defaultApiVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPost(), + autorest.WithBaseURL(c.baseUri), + autorest.WithPath(fmt.Sprintf("%s/rotateVcenterPassword", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForRotateVcenterPassword sends the RotateVcenterPassword request. The method will close the +// http.Response Body if it receives an error. +func (c PrivateCloudsClient) senderForRotateVcenterPassword(ctx context.Context, req *http.Request) (future RotateVcenterPasswordOperationResponse, err error) { + var resp *http.Response + resp, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + return + } + + future.Poller, err = polling.NewPollerFromResponse(ctx, resp, c.Client, req.Method) + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/method_update_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_update_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/method_update_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/method_update_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_admincredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_admincredentials.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_admincredentials.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_admincredentials.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_availabilityproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_availabilityproperties.go new file mode 100644 index 000000000000..399c3e8ba463 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_availabilityproperties.go @@ -0,0 +1,10 @@ +package privateclouds + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AvailabilityProperties struct { + SecondaryZone *int64 `json:"secondaryZone,omitempty"` + Strategy *AvailabilityStrategy `json:"strategy,omitempty"` + Zone *int64 `json:"zone,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_circuit.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_circuit.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_circuit.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_circuit.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_managementcluster.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_commonclusterproperties.go similarity index 78% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_managementcluster.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_commonclusterproperties.go index 2b8e3db38e19..2928a7c6f53f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_managementcluster.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_commonclusterproperties.go @@ -3,9 +3,9 @@ package privateclouds // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type ManagementCluster struct { +type CommonClusterProperties struct { ClusterId *int64 `json:"clusterId,omitempty"` - ClusterSize int64 `json:"clusterSize"` + ClusterSize *int64 `json:"clusterSize,omitempty"` Hosts *[]string `json:"hosts,omitempty"` ProvisioningState *ClusterProvisioningState `json:"provisioningState,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_encryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_encryption.go new file mode 100644 index 000000000000..0b8ba0e3932c --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_encryption.go @@ -0,0 +1,9 @@ +package privateclouds + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Encryption struct { + KeyVaultProperties *EncryptionKeyVaultProperties `json:"keyVaultProperties,omitempty"` + Status *EncryptionState `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_encryptionkeyvaultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_encryptionkeyvaultproperties.go new file mode 100644 index 000000000000..cbb978e8c0b5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_encryptionkeyvaultproperties.go @@ -0,0 +1,13 @@ +package privateclouds + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EncryptionKeyVaultProperties struct { + AutoDetectedKeyVersion *string `json:"autoDetectedKeyVersion,omitempty"` + KeyName *string `json:"keyName,omitempty"` + KeyState *EncryptionKeyStatus `json:"keyState,omitempty"` + KeyVaultUrl *string `json:"keyVaultUrl,omitempty"` + KeyVersion *string `json:"keyVersion,omitempty"` + VersionType *EncryptionVersionType `json:"versionType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_endpoints.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_endpoints.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_endpoints.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_endpoints.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_identitysource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_identitysource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_identitysource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_identitysource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_privatecloud.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_privatecloud.go new file mode 100644 index 000000000000..ae5b1fef75ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_privatecloud.go @@ -0,0 +1,19 @@ +package privateclouds + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateCloud struct { + Id *string `json:"id,omitempty"` + Identity *identity.SystemAssigned `json:"identity,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *PrivateCloudProperties `json:"properties,omitempty"` + Sku Sku `json:"sku"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_privatecloudproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_privatecloudproperties.go similarity index 73% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_privatecloudproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_privatecloudproperties.go index 38350b541cb8..90ead46cc922 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_privatecloudproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_privatecloudproperties.go @@ -4,17 +4,22 @@ package privateclouds // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type PrivateCloudProperties struct { + Availability *AvailabilityProperties `json:"availability,omitempty"` Circuit *Circuit `json:"circuit,omitempty"` + Encryption *Encryption `json:"encryption,omitempty"` Endpoints *Endpoints `json:"endpoints,omitempty"` + ExternalCloudLinks *[]string `json:"externalCloudLinks,omitempty"` IdentitySources *[]IdentitySource `json:"identitySources,omitempty"` Internet *InternetEnum `json:"internet,omitempty"` - ManagementCluster ManagementCluster `json:"managementCluster"` + ManagementCluster CommonClusterProperties `json:"managementCluster"` ManagementNetwork *string `json:"managementNetwork,omitempty"` NetworkBlock string `json:"networkBlock"` + NsxPublicIPQuotaRaised *NsxPublicIPQuotaRaisedEnum `json:"nsxPublicIpQuotaRaised,omitempty"` NsxtCertificateThumbprint *string `json:"nsxtCertificateThumbprint,omitempty"` NsxtPassword *string `json:"nsxtPassword,omitempty"` ProvisioningNetwork *string `json:"provisioningNetwork,omitempty"` ProvisioningState *PrivateCloudProvisioningState `json:"provisioningState,omitempty"` + SecondaryCircuit *Circuit `json:"secondaryCircuit,omitempty"` VMotionNetwork *string `json:"vmotionNetwork,omitempty"` VcenterCertificateThumbprint *string `json:"vcenterCertificateThumbprint,omitempty"` VcenterPassword *string `json:"vcenterPassword,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_privatecloudupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_privatecloudupdate.go similarity index 70% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_privatecloudupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_privatecloudupdate.go index 140b298787eb..fed56a75e8c7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_privatecloudupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_privatecloudupdate.go @@ -1,9 +1,14 @@ package privateclouds +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" +) + // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type PrivateCloudUpdate struct { + Identity *identity.SystemAssigned `json:"identity,omitempty"` Properties *PrivateCloudUpdateProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_privatecloudupdateproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_privatecloudupdateproperties.go new file mode 100644 index 000000000000..a737fb11e9fd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_privatecloudupdateproperties.go @@ -0,0 +1,12 @@ +package privateclouds + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type PrivateCloudUpdateProperties struct { + Availability *AvailabilityProperties `json:"availability,omitempty"` + Encryption *Encryption `json:"encryption,omitempty"` + IdentitySources *[]IdentitySource `json:"identitySources,omitempty"` + Internet *InternetEnum `json:"internet,omitempty"` + ManagementCluster *CommonClusterProperties `json:"managementCluster,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_sku.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_sku.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/model_sku.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/model_sku.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/version.go index 7a3d40cf8e5c..f84909010307 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds/version.go @@ -5,7 +5,7 @@ import "fmt" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -const defaultApiVersion = "2020-03-20" +const defaultApiVersion = "2022-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/privateclouds/%s", defaultApiVersion) diff --git a/vendor/modules.txt b/vendor/modules.txt index 11508e168649..9dfa85758181 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -594,10 +594,10 @@ github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2018-08-01/geo github.com/hashicorp/go-azure-sdk/resource-manager/trafficmanager/2018-08-01/profiles github.com/hashicorp/go-azure-sdk/resource-manager/videoanalyzer/2021-05-01-preview/edgemodules github.com/hashicorp/go-azure-sdk/resource-manager/videoanalyzer/2021-05-01-preview/videoanalyzers -github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations -github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters -github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds -github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores +github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations +github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters +github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores +github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-01-31/communicationsgateways github.com/hashicorp/go-azure-sdk/resource-manager/voiceservices/2023-01-31/testlines github.com/hashicorp/go-azure-sdk/resource-manager/web/2016-06-01/connections From c31ef902949e268787e597c0ad2fbe40f105d0f5 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Tue, 18 Apr 2023 13:43:19 +0200 Subject: [PATCH 2/3] vmware: updating to API Version `2022-05-01` --- internal/services/vmware/client/client.go | 8 ++++---- internal/services/vmware/validate/cluster_id.go | 2 +- .../vmware/validate/express_route_authorization_id.go | 2 +- internal/services/vmware/validate/private_cloud_id.go | 2 +- internal/services/vmware/vmware_cluster_resource.go | 4 ++-- internal/services/vmware/vmware_cluster_resource_test.go | 2 +- .../vmware/vmware_express_route_authorization_resource.go | 4 ++-- .../vmware_express_route_authorization_resource_test.go | 2 +- internal/services/vmware/vmware_private_cloud.go | 2 +- .../services/vmware/vmware_private_cloud_data_source.go | 2 +- ...rivate_cloud_netapp_file_volume_attachment_resource.go | 4 ++-- ...e_cloud_netapp_file_volume_attachment_resource_test.go | 2 +- internal/services/vmware/vmware_private_cloud_resource.go | 2 +- .../services/vmware/vmware_private_cloud_resource_test.go | 2 +- 14 files changed, 20 insertions(+), 20 deletions(-) diff --git a/internal/services/vmware/client/client.go b/internal/services/vmware/client/client.go index a9785ec028dc..805ce51d3926 100644 --- a/internal/services/vmware/client/client.go +++ b/internal/services/vmware/client/client.go @@ -1,10 +1,10 @@ package client import ( - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) diff --git a/internal/services/vmware/validate/cluster_id.go b/internal/services/vmware/validate/cluster_id.go index 50b218278da5..2e921fb72a71 100644 --- a/internal/services/vmware/validate/cluster_id.go +++ b/internal/services/vmware/validate/cluster_id.go @@ -3,7 +3,7 @@ package validate import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters" ) func ClusterID(input interface{}, key string) (warnings []string, errors []error) { diff --git a/internal/services/vmware/validate/express_route_authorization_id.go b/internal/services/vmware/validate/express_route_authorization_id.go index 227ae6f6f464..2ddd5bdcb662 100644 --- a/internal/services/vmware/validate/express_route_authorization_id.go +++ b/internal/services/vmware/validate/express_route_authorization_id.go @@ -3,7 +3,7 @@ package validate import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations" ) func ExpressRouteAuthorizationID(input interface{}, key string) (warnings []string, errors []error) { diff --git a/internal/services/vmware/validate/private_cloud_id.go b/internal/services/vmware/validate/private_cloud_id.go index d1a2032b1df7..0953ffc123a6 100644 --- a/internal/services/vmware/validate/private_cloud_id.go +++ b/internal/services/vmware/validate/private_cloud_id.go @@ -3,7 +3,7 @@ package validate import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds" ) func PrivateCloudID(input interface{}, key string) (warnings []string, errors []error) { diff --git a/internal/services/vmware/vmware_cluster_resource.go b/internal/services/vmware/vmware_cluster_resource.go index c367fcd9009c..4c7dd3d8b171 100644 --- a/internal/services/vmware/vmware_cluster_resource.go +++ b/internal/services/vmware/vmware_cluster_resource.go @@ -6,8 +6,8 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/validate" diff --git a/internal/services/vmware/vmware_cluster_resource_test.go b/internal/services/vmware/vmware_cluster_resource_test.go index 2678e8ebedfb..e208cad20ca7 100644 --- a/internal/services/vmware/vmware_cluster_resource_test.go +++ b/internal/services/vmware/vmware_cluster_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/vmware/vmware_express_route_authorization_resource.go b/internal/services/vmware/vmware_express_route_authorization_resource.go index 23b32936b937..55a6375b93fa 100644 --- a/internal/services/vmware/vmware_express_route_authorization_resource.go +++ b/internal/services/vmware/vmware_express_route_authorization_resource.go @@ -6,8 +6,8 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/validate" diff --git a/internal/services/vmware/vmware_express_route_authorization_resource_test.go b/internal/services/vmware/vmware_express_route_authorization_resource_test.go index a96e9178ee66..f76a6f13a138 100644 --- a/internal/services/vmware/vmware_express_route_authorization_resource_test.go +++ b/internal/services/vmware/vmware_express_route_authorization_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/authorizations" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/authorizations" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/vmware/vmware_private_cloud.go b/internal/services/vmware/vmware_private_cloud.go index 0cafafd9086b..dd249e98b367 100644 --- a/internal/services/vmware/vmware_private_cloud.go +++ b/internal/services/vmware/vmware_private_cloud.go @@ -1,7 +1,7 @@ package vmware import ( - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds" "github.com/hashicorp/terraform-provider-azurerm/utils" ) diff --git a/internal/services/vmware/vmware_private_cloud_data_source.go b/internal/services/vmware/vmware_private_cloud_data_source.go index da674a059794..280c3a36728d 100644 --- a/internal/services/vmware/vmware_private_cloud_data_source.go +++ b/internal/services/vmware/vmware_private_cloud_data_source.go @@ -8,7 +8,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/timeouts" diff --git a/internal/services/vmware/vmware_private_cloud_netapp_file_volume_attachment_resource.go b/internal/services/vmware/vmware_private_cloud_netapp_file_volume_attachment_resource.go index bfb915a807d9..73b6396fc013 100644 --- a/internal/services/vmware/vmware_private_cloud_netapp_file_volume_attachment_resource.go +++ b/internal/services/vmware/vmware_private_cloud_netapp_file_volume_attachment_resource.go @@ -6,8 +6,8 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/clusters" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/services/vmware/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/vmware/vmware_private_cloud_netapp_file_volume_attachment_resource_test.go b/internal/services/vmware/vmware_private_cloud_netapp_file_volume_attachment_resource_test.go index 2e6fda722675..b5ce47a0d639 100644 --- a/internal/services/vmware/vmware_private_cloud_netapp_file_volume_attachment_resource_test.go +++ b/internal/services/vmware/vmware_private_cloud_netapp_file_volume_attachment_resource_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2021-12-01/datastores" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/datastores" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/vmware/vmware_private_cloud_resource.go b/internal/services/vmware/vmware_private_cloud_resource.go index 323d6237e024..6a9f083a3394 100644 --- a/internal/services/vmware/vmware_private_cloud_resource.go +++ b/internal/services/vmware/vmware_private_cloud_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/vmware/vmware_private_cloud_resource_test.go b/internal/services/vmware/vmware_private_cloud_resource_test.go index e54a905c7eef..6e76890a3660 100644 --- a/internal/services/vmware/vmware_private_cloud_resource_test.go +++ b/internal/services/vmware/vmware_private_cloud_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2020-03-20/privateclouds" + "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance" "github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/check" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" From 253cd7111eb09e570bf9dc28429ef91f705e7d21 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Tue, 18 Apr 2023 13:58:00 +0200 Subject: [PATCH 3/3] vmware: breaking changes in API version 2022-05-01 --- .../services/vmware/vmware_cluster_resource.go | 5 +++-- .../services/vmware/vmware_private_cloud.go | 2 +- .../vmware/vmware_private_cloud_resource.go | 17 +++++++++++------ 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/internal/services/vmware/vmware_cluster_resource.go b/internal/services/vmware/vmware_cluster_resource.go index 4c7dd3d8b171..db222ad36a8b 100644 --- a/internal/services/vmware/vmware_cluster_resource.go +++ b/internal/services/vmware/vmware_cluster_resource.go @@ -5,6 +5,7 @@ import ( "log" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/clusters" "github.com/hashicorp/go-azure-sdk/resource-manager/vmware/2022-05-01/privateclouds" @@ -113,8 +114,8 @@ func resourceVmwareClusterCreate(d *pluginsdk.ResourceData, meta interface{}) er Sku: clusters.Sku{ Name: d.Get("sku_name").(string), }, - Properties: clusters.ClusterProperties{ - ClusterSize: int64(d.Get("cluster_node_count").(int)), + Properties: &clusters.CommonClusterProperties{ + ClusterSize: pointer.To(int64(d.Get("cluster_node_count").(int))), }, } diff --git a/internal/services/vmware/vmware_private_cloud.go b/internal/services/vmware/vmware_private_cloud.go index dd249e98b367..9445c6b18385 100644 --- a/internal/services/vmware/vmware_private_cloud.go +++ b/internal/services/vmware/vmware_private_cloud.go @@ -5,7 +5,7 @@ import ( "github.com/hashicorp/terraform-provider-azurerm/utils" ) -func flattenPrivateCloudManagementCluster(input privateclouds.ManagementCluster) []interface{} { +func flattenPrivateCloudManagementCluster(input privateclouds.CommonClusterProperties) []interface{} { return []interface{}{ map[string]interface{}{ "size": input.ClusterSize, diff --git a/internal/services/vmware/vmware_private_cloud_resource.go b/internal/services/vmware/vmware_private_cloud_resource.go index 6a9f083a3394..923aa85f6941 100644 --- a/internal/services/vmware/vmware_private_cloud_resource.go +++ b/internal/services/vmware/vmware_private_cloud_resource.go @@ -6,6 +6,7 @@ import ( "log" "time" + "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" @@ -220,9 +221,9 @@ func resourceVmwarePrivateCloudCreate(d *pluginsdk.ResourceData, meta interface{ Sku: privateclouds.Sku{ Name: d.Get("sku_name").(string), }, - Properties: privateclouds.PrivateCloudProperties{ - ManagementCluster: privateclouds.ManagementCluster{ - ClusterSize: int64(d.Get("management_cluster.0.size").(int)), + Properties: &privateclouds.PrivateCloudProperties{ + ManagementCluster: privateclouds.CommonClusterProperties{ + ClusterSize: pointer.To(int64(d.Get("management_cluster.0.size").(int))), }, NetworkBlock: d.Get("network_subnet_cidr").(string), Internet: &internet, @@ -236,12 +237,16 @@ func resourceVmwarePrivateCloudCreate(d *pluginsdk.ResourceData, meta interface{ return fmt.Errorf("creating %s: %+v", id, err) } + deadline, ok := ctx.Deadline() + if !ok { + return fmt.Errorf("internal-error: context had no deadline") + } stateConf := &pluginsdk.StateChangeConf{ Pending: []string{string(privateclouds.PrivateCloudProvisioningStateBuilding)}, Target: []string{string(privateclouds.PrivateCloudProvisioningStateSucceeded)}, Refresh: privateCloudStateRefreshFunc(ctx, client, id), MinTimeout: 15 * time.Second, - Timeout: d.Timeout(pluginsdk.TimeoutCreate), + Timeout: time.Until(deadline), } if _, err := stateConf.WaitForStateContext(ctx); err != nil { @@ -331,8 +336,8 @@ func resourceVmwarePrivateCloudUpdate(d *pluginsdk.ResourceData, meta interface{ } if d.HasChange("management_cluster") { - privateCloudUpdate.Properties.ManagementCluster = &privateclouds.ManagementCluster{ - ClusterSize: int64(d.Get("management_cluster.0.size").(int)), + privateCloudUpdate.Properties.ManagementCluster = &privateclouds.CommonClusterProperties{ + ClusterSize: pointer.To(int64(d.Get("management_cluster.0.size").(int))), } }