From 043e4dd329048a440240056d83a16ce8741b38ad Mon Sep 17 00:00:00 2001 From: Paulo Marques Date: Fri, 16 Dec 2022 11:14:13 -0700 Subject: [PATCH] ANF Volumes - Availability Zone Support for Volumes (#19669) --- internal/services/netapp/client/client.go | 12 +- .../netapp/netapp_account_data_source.go | 2 +- .../netapp/netapp_account_resource.go | 2 +- .../netapp/netapp_account_resource_test.go | 2 +- .../netapp/netapp_pool_data_source.go | 2 +- .../services/netapp/netapp_pool_resource.go | 2 +- .../netapp/netapp_pool_resource_test.go | 2 +- .../netapp/netapp_snapshot_data_source.go | 2 +- .../netapp_snapshot_policy_data_source.go | 2 +- .../netapp/netapp_snapshot_policy_resource.go | 2 +- .../netapp/netapp_snapshot_policy_test.go | 2 +- .../netapp/netapp_snapshot_resource.go | 2 +- .../netapp/netapp_snapshot_resource_test.go | 2 +- .../netapp/netapp_volume_data_source.go | 12 +- .../services/netapp/netapp_volume_resource.go | 31 ++++- .../netapp/netapp_volume_resource_test.go | 43 ++++++- .../2021-10-01/netappaccounts/constants.go | 43 ------- .../netappaccounts/model_netappaccount.go | 19 --- .../volumes/model_volumeproperties.go | 49 -------- .../capacitypools/README.md | 6 +- .../capacitypools/client.go | 0 .../capacitypools/constants.go | 0 .../capacitypools/id_capacitypool.go | 0 .../capacitypools/id_netappaccount.go | 0 .../method_poolscreateorupdate_autorest.go | 0 .../method_poolsdelete_autorest.go | 0 .../capacitypools/method_poolsget_autorest.go | 0 .../method_poolslist_autorest.go | 0 .../method_poolsupdate_autorest.go | 0 .../capacitypools/model_capacitypool.go | 0 .../capacitypools/model_capacitypoolpatch.go | 0 .../model_poolpatchproperties.go | 5 +- .../capacitypools/model_poolproperties.go | 0 .../capacitypools/predicates.go | 0 .../capacitypools/version.go | 2 +- .../netappaccounts/README.md | 18 ++- .../netappaccounts/client.go | 0 .../2022-05-01/netappaccounts/constants.go | 108 ++++++++++++++++++ .../netappaccounts/id_netappaccount.go | 0 .../method_accountscreateorupdate_autorest.go | 0 .../method_accountsdelete_autorest.go | 0 .../method_accountsget_autorest.go | 0 .../method_accountslist_autorest.go | 0 ...hod_accountslistbysubscription_autorest.go | 0 ...ethod_accountsrenewcredentials_autorest.go | 78 +++++++++++++ .../method_accountsupdate_autorest.go | 0 .../netappaccounts/model_accountencryption.go | 10 ++ .../netappaccounts/model_accountproperties.go | 1 + .../netappaccounts/model_activedirectory.go | 0 .../model_encryptionidentity.go | 9 ++ .../model_keyvaultproperties.go | 12 ++ .../model_ldapsearchscopeopt.go | 0 .../netappaccounts/model_netappaccount.go | 21 ++++ .../model_netappaccountpatch.go | 0 .../netappaccounts/predicates.go | 0 .../netappaccounts/version.go | 2 +- .../snapshotpolicy/README.md | 6 +- .../snapshotpolicy/client.go | 0 .../snapshotpolicy/id_netappaccount.go | 0 .../snapshotpolicy/id_snapshotpolicy.go | 0 .../method_snapshotpoliciescreate_autorest.go | 0 .../method_snapshotpoliciesdelete_autorest.go | 0 .../method_snapshotpoliciesget_autorest.go | 0 .../method_snapshotpolicieslist_autorest.go | 0 .../method_snapshotpoliciesupdate_autorest.go | 0 .../snapshotpolicy/model_dailyschedule.go | 0 .../snapshotpolicy/model_hourlyschedule.go | 0 .../snapshotpolicy/model_monthlyschedule.go | 0 .../model_snapshotpolicieslist.go | 0 .../snapshotpolicy/model_snapshotpolicy.go | 0 .../model_snapshotpolicypatch.go | 0 .../model_snapshotpolicyproperties.go | 0 .../snapshotpolicy/model_weeklyschedule.go | 0 .../snapshotpolicy/version.go | 2 +- .../snapshots/README.md | 6 +- .../snapshots/client.go | 0 .../snapshots/id_snapshot.go | 0 .../snapshots/id_volume.go | 0 .../snapshots/method_create_autorest.go | 0 .../snapshots/method_delete_autorest.go | 0 .../snapshots/method_get_autorest.go | 0 .../snapshots/method_list_autorest.go | 0 .../snapshots/method_restorefiles_autorest.go | 0 .../snapshots/method_update_autorest.go | 0 .../snapshots/model_snapshot.go | 0 .../snapshots/model_snapshotproperties.go | 0 .../snapshots/model_snapshotrestorefiles.go | 0 .../snapshots/model_snapshotslist.go | 0 .../snapshots/version.go | 2 +- .../volumes/README.md | 6 +- .../volumes/client.go | 0 .../volumes/constants.go | 84 ++++++++++++++ .../volumes/id_capacitypool.go | 0 .../volumes/id_volume.go | 0 .../volumes/method_createorupdate_autorest.go | 0 .../volumes/method_delete_autorest.go | 0 .../volumes/method_get_autorest.go | 0 .../volumes/method_list_autorest.go | 0 .../volumes/method_update_autorest.go | 0 .../volumes/model_exportpolicyrule.go | 0 .../volumes/model_mounttargetproperties.go | 0 .../volumes/model_placementkeyvaluepairs.go | 0 .../volumes/model_replicationobject.go | 0 .../volumes/model_volume.go | 2 + .../volumes/model_volumebackupproperties.go | 0 .../volumes/model_volumepatch.go | 0 .../volumes/model_volumepatchproperties.go | 2 + ...del_volumepatchpropertiesdataprotection.go | 0 ...model_volumepatchpropertiesexportpolicy.go | 0 .../volumes/model_volumeproperties.go | 54 +++++++++ .../model_volumepropertiesdataprotection.go | 0 .../model_volumepropertiesexportpolicy.go | 0 .../volumes/model_volumesnapshotproperties.go | 0 .../volumes/predicates.go | 0 .../volumes/version.go | 2 +- .../volumesreplication/README.md | 39 ++++++- .../volumesreplication/client.go | 0 .../volumesreplication/constants.go | 59 ++++++++++ .../volumesreplication/id_volume.go | 0 ...od_volumesauthorizereplication_autorest.go | 0 ...method_volumesbreakreplication_autorest.go | 0 ...ethod_volumesdeletereplication_autorest.go | 0 ...method_volumeslistreplications_autorest.go | 69 +++++++++++ ..._volumesreestablishreplication_autorest.go | 79 +++++++++++++ ...volumesreinitializereplication_autorest.go | 0 ...ethod_volumesreplicationstatus_autorest.go | 0 ...ethod_volumesresyncreplication_autorest.go | 0 .../model_authorizerequest.go | 0 .../model_breakreplicationrequest.go | 0 .../model_listreplications.go} | 6 +- .../model_reestablishreplicationrequest.go | 8 ++ .../volumesreplication/model_replication.go | 11 ++ .../model_replicationstatus.go | 0 .../volumesreplication/version.go | 2 +- vendor/modules.txt | 12 +- website/docs/d/netapp_volume.html.markdown | 2 + website/docs/r/netapp_volume.html.markdown | 3 + 137 files changed, 791 insertions(+), 170 deletions(-) delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/constants.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/model_netappaccount.go delete mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumeproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/capacitypools/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/capacitypools/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/capacitypools/constants.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/capacitypools/id_capacitypool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/capacitypools/id_netappaccount.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/capacitypools/method_poolscreateorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/capacitypools/method_poolsdelete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/capacitypools/method_poolsget_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/capacitypools/method_poolslist_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/capacitypools/method_poolsupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/capacitypools/model_capacitypool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/capacitypools/model_capacitypoolpatch.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/capacitypools/model_poolpatchproperties.go (60%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/capacitypools/model_poolproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/capacitypools/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/capacitypools/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/netappaccounts/README.md (86%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/netappaccounts/client.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/constants.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/netappaccounts/id_netappaccount.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/netappaccounts/method_accountscreateorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/netappaccounts/method_accountsdelete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/netappaccounts/method_accountsget_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/netappaccounts/method_accountslist_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/netappaccounts/method_accountslistbysubscription_autorest.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/method_accountsrenewcredentials_autorest.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/netappaccounts/method_accountsupdate_autorest.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_accountencryption.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/netappaccounts/model_accountproperties.go (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/netappaccounts/model_activedirectory.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_encryptionidentity.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_keyvaultproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/netappaccounts/model_ldapsearchscopeopt.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_netappaccount.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/netappaccounts/model_netappaccountpatch.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/netappaccounts/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/netappaccounts/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/id_netappaccount.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/id_snapshotpolicy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/method_snapshotpoliciescreate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/method_snapshotpoliciesdelete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/method_snapshotpoliciesget_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/method_snapshotpolicieslist_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/method_snapshotpoliciesupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/model_dailyschedule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/model_hourlyschedule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/model_monthlyschedule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/model_snapshotpolicieslist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/model_snapshotpolicy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/model_snapshotpolicypatch.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/model_snapshotpolicyproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/model_weeklyschedule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshotpolicy/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshots/README.md (96%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshots/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshots/id_snapshot.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshots/id_volume.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshots/method_create_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshots/method_delete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshots/method_get_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshots/method_list_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshots/method_restorefiles_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshots/method_update_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshots/model_snapshot.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshots/model_snapshotproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshots/model_snapshotrestorefiles.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshots/model_snapshotslist.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/snapshots/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/README.md (95%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/constants.go (74%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/id_capacitypool.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/id_volume.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/method_createorupdate_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/method_delete_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/method_get_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/method_list_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/method_update_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/model_exportpolicyrule.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/model_mounttargetproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/model_placementkeyvaluepairs.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/model_replicationobject.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/model_volume.go (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/model_volumebackupproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/model_volumepatch.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/model_volumepatchproperties.go (85%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/model_volumepatchpropertiesdataprotection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/model_volumepatchpropertiesexportpolicy.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumeproperties.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/model_volumepropertiesdataprotection.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/model_volumepropertiesexportpolicy.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/model_volumesnapshotproperties.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/predicates.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumes/version.go (88%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumesreplication/README.md (74%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumesreplication/client.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumesreplication/constants.go (53%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumesreplication/id_volume.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumesreplication/method_volumesauthorizereplication_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumesreplication/method_volumesbreakreplication_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumesreplication/method_volumesdeletereplication_autorest.go (100%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumeslistreplications_autorest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumesreestablishreplication_autorest.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumesreplication/method_volumesreinitializereplication_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumesreplication/method_volumesreplicationstatus_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumesreplication/method_volumesresyncreplication_autorest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumesreplication/model_authorizerequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumesreplication/model_breakreplicationrequest.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01/netappaccounts/model_accountencryption.go => 2022-05-01/volumesreplication/model_listreplications.go} (60%) create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/model_reestablishreplicationrequest.go create mode 100644 vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/model_replication.go rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumesreplication/model_replicationstatus.go (100%) rename vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/{2021-10-01 => 2022-05-01}/volumesreplication/version.go (88%) diff --git a/internal/services/netapp/client/client.go b/internal/services/netapp/client/client.go index 8ff393abbfa9..73e6e75dafe9 100644 --- a/internal/services/netapp/client/client.go +++ b/internal/services/netapp/client/client.go @@ -1,12 +1,12 @@ package client import ( - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) diff --git a/internal/services/netapp/netapp_account_data_source.go b/internal/services/netapp/netapp_account_data_source.go index 6c396a627af8..a804fd8ba80a 100644 --- a/internal/services/netapp/netapp_account_data_source.go +++ b/internal/services/netapp/netapp_account_data_source.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/netapp/netapp_account_resource.go b/internal/services/netapp/netapp_account_resource.go index 69d74181d39d..dff3b7e01f4f 100644 --- a/internal/services/netapp/netapp_account_resource.go +++ b/internal/services/netapp/netapp_account_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" diff --git a/internal/services/netapp/netapp_account_resource_test.go b/internal/services/netapp/netapp_account_resource_test.go index 8d2a84e1d344..0f28f9656e55 100644 --- a/internal/services/netapp/netapp_account_resource_test.go +++ b/internal/services/netapp/netapp_account_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts" "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/netapp/netapp_pool_data_source.go b/internal/services/netapp/netapp_pool_data_source.go index 28972ab23ba7..4c0a99656dcb 100644 --- a/internal/services/netapp/netapp_pool_data_source.go +++ b/internal/services/netapp/netapp_pool_data_source.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/netapp/netapp_pool_resource.go b/internal/services/netapp/netapp_pool_resource.go index 93729af4e6b3..907472cd8554 100644 --- a/internal/services/netapp/netapp_pool_resource.go +++ b/internal/services/netapp/netapp_pool_resource.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/netapp/netapp_pool_resource_test.go b/internal/services/netapp/netapp_pool_resource_test.go index 666121999941..c42e83473ff7 100644 --- a/internal/services/netapp/netapp_pool_resource_test.go +++ b/internal/services/netapp/netapp_pool_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools" "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/netapp/netapp_snapshot_data_source.go b/internal/services/netapp/netapp_snapshot_data_source.go index e5f7e540f7c9..1ccd8ddcd11a 100644 --- a/internal/services/netapp/netapp_snapshot_data_source.go +++ b/internal/services/netapp/netapp_snapshot_data_source.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/netapp/netapp_snapshot_policy_data_source.go b/internal/services/netapp/netapp_snapshot_policy_data_source.go index 7aceeea0b901..df3a2729d724 100644 --- a/internal/services/netapp/netapp_snapshot_policy_data_source.go +++ b/internal/services/netapp/netapp_snapshot_policy_data_source.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tags" diff --git a/internal/services/netapp/netapp_snapshot_policy_resource.go b/internal/services/netapp/netapp_snapshot_policy_resource.go index caf99edc5cd3..d7601c048ab7 100644 --- a/internal/services/netapp/netapp_snapshot_policy_resource.go +++ b/internal/services/netapp/netapp_snapshot_policy_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/netapp/netapp_snapshot_policy_test.go b/internal/services/netapp/netapp_snapshot_policy_test.go index 570a58dc6ad6..47a10d44e83a 100644 --- a/internal/services/netapp/netapp_snapshot_policy_test.go +++ b/internal/services/netapp/netapp_snapshot_policy_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy" "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/netapp/netapp_snapshot_resource.go b/internal/services/netapp/netapp_snapshot_resource.go index 64c6440e53b1..d5fedc28e8aa 100644 --- a/internal/services/netapp/netapp_snapshot_resource.go +++ b/internal/services/netapp/netapp_snapshot_resource.go @@ -9,7 +9,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/netapp/netapp_snapshot_resource_test.go b/internal/services/netapp/netapp_snapshot_resource_test.go index 0321f8a671e5..feb60bfb348a 100644 --- a/internal/services/netapp/netapp_snapshot_resource_test.go +++ b/internal/services/netapp/netapp_snapshot_resource_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots" "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/netapp/netapp_volume_data_source.go b/internal/services/netapp/netapp_volume_data_source.go index b6413b4da7d5..d843b7483697 100644 --- a/internal/services/netapp/netapp_volume_data_source.go +++ b/internal/services/netapp/netapp_volume_data_source.go @@ -7,7 +7,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/netapp/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" @@ -33,6 +33,8 @@ func dataSourceNetAppVolume() *pluginsdk.Resource { "location": commonschema.LocationComputed(), + "zone": commonschema.ZoneSingleComputed(), + "account_name": { Type: pluginsdk.TypeString, Required: true, @@ -142,6 +144,14 @@ func dataSourceNetAppVolumeRead(d *pluginsdk.ResourceData, meta interface{}) err if model := resp.Model; model != nil { d.Set("location", location.NormalizeNilable(&model.Location)) + zone := "" + if model.Zones != nil { + if zones := *model.Zones; len(zones) > 0 { + zone = zones[0] + } + } + d.Set("zone", zone) + props := model.Properties d.Set("volume_path", props.CreationToken) d.Set("service_level", props.ServiceLevel) diff --git a/internal/services/netapp/netapp_volume_resource.go b/internal/services/netapp/netapp_volume_resource.go index 91069e532489..323d9b36ee0f 100644 --- a/internal/services/netapp/netapp_volume_resource.go +++ b/internal/services/netapp/netapp_volume_resource.go @@ -12,9 +12,9 @@ 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/netapp/2021-10-01/snapshots" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication" "github.com/hashicorp/terraform-provider-azurerm/helpers/azure" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" @@ -56,6 +56,8 @@ func resourceNetAppVolume() *pluginsdk.Resource { "location": commonschema.Location(), + "zone": commonschema.ZoneSingleOptionalForceNew(), + "account_name": { Type: pluginsdk.TypeString, Required: true, @@ -306,6 +308,14 @@ func resourceNetAppVolumeCreate(d *pluginsdk.ResourceData, meta interface{}) err } location := azure.NormalizeLocation(d.Get("location").(string)) + + zones := &[]string{} + if v, ok := d.GetOk("zone"); ok { + zones = &[]string{ + v.(string), + } + } + volumePath := d.Get("volume_path").(string) serviceLevel := volumes.ServiceLevel(d.Get("service_level").(string)) subnetID := d.Get("subnet_id").(string) @@ -445,7 +455,8 @@ func resourceNetAppVolumeCreate(d *pluginsdk.ResourceData, meta interface{}) err AvsDataStore: &avsDataStoreEnabled, SnapshotDirectoryVisible: utils.Bool(snapshotDirectoryVisible), }, - Tags: tags.Expand(d.Get("tags").(map[string]interface{})), + Tags: tags.Expand(d.Get("tags").(map[string]interface{})), + Zones: zones, } if throughputMibps, ok := d.GetOk("throughput_in_mibps"); ok { @@ -503,6 +514,10 @@ func resourceNetAppVolumeUpdate(d *pluginsdk.ResourceData, meta interface{}) err Properties: &volumes.VolumePatchProperties{}, } + if d.HasChange("zones") { + return fmt.Errorf("zone changes are not supported after volume is already created, %s", id) + } + if d.HasChange("storage_quota_in_gb") { shouldUpdate = true storageQuotaInBytes := int64(d.Get("storage_quota_in_gb").(int) * 1073741824) @@ -585,6 +600,14 @@ func resourceNetAppVolumeRead(d *pluginsdk.ResourceData, meta interface{}) error if model := resp.Model; model != nil { d.Set("location", azure.NormalizeLocation(model.Location)) + zone := "" + if model.Zones != nil { + if zones := *model.Zones; len(zones) > 0 { + zone = zones[0] + } + } + d.Set("zone", zone) + props := model.Properties d.Set("volume_path", props.CreationToken) d.Set("service_level", props.ServiceLevel) diff --git a/internal/services/netapp/netapp_volume_resource_test.go b/internal/services/netapp/netapp_volume_resource_test.go index a29b8404a24a..959b0eda1b4f 100644 --- a/internal/services/netapp/netapp_volume_resource_test.go +++ b/internal/services/netapp/netapp_volume_resource_test.go @@ -7,7 +7,7 @@ import ( "regexp" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes" + "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes" "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" @@ -32,6 +32,22 @@ func TestAccNetAppVolume_basic(t *testing.T) { }) } +func TestAccNetAppVolume_availabilityZone(t *testing.T) { + data := acceptance.BuildTestData(t, "azurerm_netapp_volume", "test") + r := NetAppVolumeResource{} + + data.ResourceTest(t, r, []acceptance.TestStep{ + { + Config: r.availabilityZone(data), + Check: acceptance.ComposeTestCheckFunc( + check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("zone").HasValue("1"), + ), + }, + data.ImportStep(), + }) +} + func TestAccNetAppVolume_nfsv41(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_netapp_volume", "test") r := NetAppVolumeResource{} @@ -295,6 +311,31 @@ resource "azurerm_netapp_volume" "test" { `, template, data.RandomInteger, data.RandomInteger) } +func (NetAppVolumeResource) availabilityZone(data acceptance.TestData) string { + template := NetAppVolumeResource{}.template(data) + return fmt.Sprintf(` +%s + +resource "azurerm_netapp_volume" "test" { + name = "acctest-NetAppVolume-%d" + location = azurerm_resource_group.test.location + zone = "1" + resource_group_name = azurerm_resource_group.test.name + account_name = azurerm_netapp_account.test.name + pool_name = azurerm_netapp_pool.test.name + volume_path = "my-unique-file-path-%d" + service_level = "Standard" + subnet_id = azurerm_subnet.test.id + storage_quota_in_gb = 100 + + tags = { + "CreatedOnDate" = "2022-07-08T23:50:21Z", + "SkipASMAzSecPack" = "true" + } +} +`, template, data.RandomInteger, data.RandomInteger) +} + func (NetAppVolumeResource) nfsv41(data acceptance.TestData) string { template := NetAppVolumeResource{}.template(data) return fmt.Sprintf(` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/constants.go deleted file mode 100644 index 6e41970873a4..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/constants.go +++ /dev/null @@ -1,43 +0,0 @@ -package netappaccounts - -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 ActiveDirectoryStatus string - -const ( - ActiveDirectoryStatusCreated ActiveDirectoryStatus = "Created" - ActiveDirectoryStatusDeleted ActiveDirectoryStatus = "Deleted" - ActiveDirectoryStatusError ActiveDirectoryStatus = "Error" - ActiveDirectoryStatusInUse ActiveDirectoryStatus = "InUse" - ActiveDirectoryStatusUpdating ActiveDirectoryStatus = "Updating" -) - -func PossibleValuesForActiveDirectoryStatus() []string { - return []string{ - string(ActiveDirectoryStatusCreated), - string(ActiveDirectoryStatusDeleted), - string(ActiveDirectoryStatusError), - string(ActiveDirectoryStatusInUse), - string(ActiveDirectoryStatusUpdating), - } -} - -func parseActiveDirectoryStatus(input string) (*ActiveDirectoryStatus, error) { - vals := map[string]ActiveDirectoryStatus{ - "created": ActiveDirectoryStatusCreated, - "deleted": ActiveDirectoryStatusDeleted, - "error": ActiveDirectoryStatusError, - "inuse": ActiveDirectoryStatusInUse, - "updating": ActiveDirectoryStatusUpdating, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := ActiveDirectoryStatus(input) - return &out, nil -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/model_netappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/model_netappaccount.go deleted file mode 100644 index ec2ed4aa10c5..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/model_netappaccount.go +++ /dev/null @@ -1,19 +0,0 @@ -package netappaccounts - -import ( - "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" -) - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type NetAppAccount struct { - Etag *string `json:"etag,omitempty"` - Id *string `json:"id,omitempty"` - Location string `json:"location"` - Name *string `json:"name,omitempty"` - Properties *AccountProperties `json:"properties,omitempty"` - SystemData *systemdata.SystemData `json:"systemData,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumeproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumeproperties.go deleted file mode 100644 index 6ae23e00b8da..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumeproperties.go +++ /dev/null @@ -1,49 +0,0 @@ -package volumes - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type VolumeProperties struct { - AvsDataStore *AvsDataStore `json:"avsDataStore,omitempty"` - BackupId *string `json:"backupId,omitempty"` - BaremetalTenantId *string `json:"baremetalTenantId,omitempty"` - CapacityPoolResourceId *string `json:"capacityPoolResourceId,omitempty"` - CloneProgress *int64 `json:"cloneProgress,omitempty"` - CoolAccess *bool `json:"coolAccess,omitempty"` - CoolnessPeriod *int64 `json:"coolnessPeriod,omitempty"` - CreationToken string `json:"creationToken"` - DataProtection *VolumePropertiesDataProtection `json:"dataProtection,omitempty"` - DefaultGroupQuotaInKiBs *int64 `json:"defaultGroupQuotaInKiBs,omitempty"` - DefaultUserQuotaInKiBs *int64 `json:"defaultUserQuotaInKiBs,omitempty"` - EnableSubvolumes *EnableSubvolumes `json:"enableSubvolumes,omitempty"` - EncryptionKeySource *string `json:"encryptionKeySource,omitempty"` - ExportPolicy *VolumePropertiesExportPolicy `json:"exportPolicy,omitempty"` - FileSystemId *string `json:"fileSystemId,omitempty"` - IsDefaultQuotaEnabled *bool `json:"isDefaultQuotaEnabled,omitempty"` - IsRestoring *bool `json:"isRestoring,omitempty"` - KerberosEnabled *bool `json:"kerberosEnabled,omitempty"` - LdapEnabled *bool `json:"ldapEnabled,omitempty"` - MaximumNumberOfFiles *int64 `json:"maximumNumberOfFiles,omitempty"` - MountTargets *[]MountTargetProperties `json:"mountTargets,omitempty"` - NetworkFeatures *NetworkFeatures `json:"networkFeatures,omitempty"` - NetworkSiblingSetId *string `json:"networkSiblingSetId,omitempty"` - PlacementRules *[]PlacementKeyValuePairs `json:"placementRules,omitempty"` - ProtocolTypes *[]string `json:"protocolTypes,omitempty"` - ProvisioningState *string `json:"provisioningState,omitempty"` - ProximityPlacementGroup *string `json:"proximityPlacementGroup,omitempty"` - SecurityStyle *SecurityStyle `json:"securityStyle,omitempty"` - ServiceLevel *ServiceLevel `json:"serviceLevel,omitempty"` - SmbContinuouslyAvailable *bool `json:"smbContinuouslyAvailable,omitempty"` - SmbEncryption *bool `json:"smbEncryption,omitempty"` - SnapshotDirectoryVisible *bool `json:"snapshotDirectoryVisible,omitempty"` - SnapshotId *string `json:"snapshotId,omitempty"` - StorageToNetworkProximity *VolumeStorageToNetworkProximity `json:"storageToNetworkProximity,omitempty"` - SubnetId string `json:"subnetId"` - T2Network *string `json:"t2Network,omitempty"` - ThroughputMibps *float64 `json:"throughputMibps,omitempty"` - UnixPermissions *string `json:"unixPermissions,omitempty"` - UsageThreshold int64 `json:"usageThreshold"` - VolumeGroupName *string `json:"volumeGroupName,omitempty"` - VolumeSpecName *string `json:"volumeSpecName,omitempty"` - VolumeType *string `json:"volumeType,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/README.md index a47f3c6bf12f..3d58c52acfff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools` Documentation -The `capacitypools` SDK allows for interaction with the Azure Resource Manager Service `netapp` (API Version `2021-10-01`). +The `capacitypools` SDK allows for interaction with the Azure Resource Manager Service `netapp` (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/netapp/2021-10-01/capacitypools" +import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/id_capacitypool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/id_capacitypool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/id_capacitypool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/id_capacitypool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/id_netappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/id_netappaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/id_netappaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/id_netappaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/method_poolscreateorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/method_poolscreateorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/method_poolscreateorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/method_poolscreateorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/method_poolsdelete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/method_poolsdelete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/method_poolsdelete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/method_poolsdelete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/method_poolsget_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/method_poolsget_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/method_poolsget_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/method_poolsget_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/method_poolslist_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/method_poolslist_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/method_poolslist_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/method_poolslist_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/method_poolsupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/method_poolsupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/method_poolsupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/method_poolsupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/model_capacitypool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/model_capacitypool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/model_capacitypool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/model_capacitypool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/model_capacitypoolpatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/model_capacitypoolpatch.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/model_capacitypoolpatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/model_capacitypoolpatch.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/model_poolpatchproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/model_poolpatchproperties.go similarity index 60% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/model_poolpatchproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/model_poolpatchproperties.go index 071dba445599..c971dd8637c2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/model_poolpatchproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/model_poolpatchproperties.go @@ -4,6 +4,7 @@ package capacitypools // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type PoolPatchProperties struct { - QosType *QosType `json:"qosType,omitempty"` - Size *int64 `json:"size,omitempty"` + CoolAccess *bool `json:"coolAccess,omitempty"` + QosType *QosType `json:"qosType,omitempty"` + Size *int64 `json:"size,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/model_poolproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/model_poolproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/model_poolproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/model_poolproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/version.go index c647e1604368..f29d61d60efd 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools/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-10-01" +const defaultApiVersion = "2022-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/capacitypools/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/README.md similarity index 86% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/README.md index d011b7423309..0d3ea6ecc3e8 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts` Documentation -The `netappaccounts` SDK allows for interaction with the Azure Resource Manager Service `netapp` (API Version `2021-10-01`). +The `netappaccounts` SDK allows for interaction with the Azure Resource Manager Service `netapp` (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/netapp/2021-10-01/netappaccounts" +import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts" ``` @@ -99,6 +99,18 @@ for _, item := range items { ``` +### Example Usage: `NetAppAccountsClient.AccountsRenewCredentials` + +```go +ctx := context.TODO() +id := netappaccounts.NewNetAppAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue") + +if err := client.AccountsRenewCredentialsThenPoll(ctx, id); err != nil { + // handle the error +} +``` + + ### Example Usage: `NetAppAccountsClient.AccountsUpdate` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/constants.go new file mode 100644 index 000000000000..2af15654e918 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/constants.go @@ -0,0 +1,108 @@ +package netappaccounts + +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 ActiveDirectoryStatus string + +const ( + ActiveDirectoryStatusCreated ActiveDirectoryStatus = "Created" + ActiveDirectoryStatusDeleted ActiveDirectoryStatus = "Deleted" + ActiveDirectoryStatusError ActiveDirectoryStatus = "Error" + ActiveDirectoryStatusInUse ActiveDirectoryStatus = "InUse" + ActiveDirectoryStatusUpdating ActiveDirectoryStatus = "Updating" +) + +func PossibleValuesForActiveDirectoryStatus() []string { + return []string{ + string(ActiveDirectoryStatusCreated), + string(ActiveDirectoryStatusDeleted), + string(ActiveDirectoryStatusError), + string(ActiveDirectoryStatusInUse), + string(ActiveDirectoryStatusUpdating), + } +} + +func parseActiveDirectoryStatus(input string) (*ActiveDirectoryStatus, error) { + vals := map[string]ActiveDirectoryStatus{ + "created": ActiveDirectoryStatusCreated, + "deleted": ActiveDirectoryStatusDeleted, + "error": ActiveDirectoryStatusError, + "inuse": ActiveDirectoryStatusInUse, + "updating": ActiveDirectoryStatusUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ActiveDirectoryStatus(input) + return &out, nil +} + +type KeySource string + +const ( + KeySourceMicrosoftPointKeyVault KeySource = "Microsoft.KeyVault" + KeySourceMicrosoftPointNetApp KeySource = "Microsoft.NetApp" +) + +func PossibleValuesForKeySource() []string { + return []string{ + string(KeySourceMicrosoftPointKeyVault), + string(KeySourceMicrosoftPointNetApp), + } +} + +func parseKeySource(input string) (*KeySource, error) { + vals := map[string]KeySource{ + "microsoft.keyvault": KeySourceMicrosoftPointKeyVault, + "microsoft.netapp": KeySourceMicrosoftPointNetApp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := KeySource(input) + return &out, nil +} + +type KeyVaultStatus string + +const ( + KeyVaultStatusCreated KeyVaultStatus = "Created" + KeyVaultStatusDeleted KeyVaultStatus = "Deleted" + KeyVaultStatusError KeyVaultStatus = "Error" + KeyVaultStatusInUse KeyVaultStatus = "InUse" + KeyVaultStatusUpdating KeyVaultStatus = "Updating" +) + +func PossibleValuesForKeyVaultStatus() []string { + return []string{ + string(KeyVaultStatusCreated), + string(KeyVaultStatusDeleted), + string(KeyVaultStatusError), + string(KeyVaultStatusInUse), + string(KeyVaultStatusUpdating), + } +} + +func parseKeyVaultStatus(input string) (*KeyVaultStatus, error) { + vals := map[string]KeyVaultStatus{ + "created": KeyVaultStatusCreated, + "deleted": KeyVaultStatusDeleted, + "error": KeyVaultStatusError, + "inuse": KeyVaultStatusInUse, + "updating": KeyVaultStatusUpdating, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := KeyVaultStatus(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/id_netappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/id_netappaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/id_netappaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/id_netappaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/method_accountscreateorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/method_accountscreateorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/method_accountscreateorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/method_accountscreateorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/method_accountsdelete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/method_accountsdelete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/method_accountsdelete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/method_accountsdelete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/method_accountsget_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/method_accountsget_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/method_accountsget_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/method_accountsget_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/method_accountslist_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/method_accountslist_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/method_accountslist_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/method_accountslist_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/method_accountslistbysubscription_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/method_accountslistbysubscription_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/method_accountslistbysubscription_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/method_accountslistbysubscription_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/method_accountsrenewcredentials_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/method_accountsrenewcredentials_autorest.go new file mode 100644 index 000000000000..5b89b6f76a38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/method_accountsrenewcredentials_autorest.go @@ -0,0 +1,78 @@ +package netappaccounts + +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 AccountsRenewCredentialsOperationResponse struct { + Poller polling.LongRunningPoller + HttpResponse *http.Response +} + +// AccountsRenewCredentials ... +func (c NetAppAccountsClient) AccountsRenewCredentials(ctx context.Context, id NetAppAccountId) (result AccountsRenewCredentialsOperationResponse, err error) { + req, err := c.preparerForAccountsRenewCredentials(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "netappaccounts.NetAppAccountsClient", "AccountsRenewCredentials", nil, "Failure preparing request") + return + } + + result, err = c.senderForAccountsRenewCredentials(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "netappaccounts.NetAppAccountsClient", "AccountsRenewCredentials", result.HttpResponse, "Failure sending request") + return + } + + return +} + +// AccountsRenewCredentialsThenPoll performs AccountsRenewCredentials then polls until it's completed +func (c NetAppAccountsClient) AccountsRenewCredentialsThenPoll(ctx context.Context, id NetAppAccountId) error { + result, err := c.AccountsRenewCredentials(ctx, id) + if err != nil { + return fmt.Errorf("performing AccountsRenewCredentials: %+v", err) + } + + if err := result.Poller.PollUntilDone(); err != nil { + return fmt.Errorf("polling after AccountsRenewCredentials: %+v", err) + } + + return nil +} + +// preparerForAccountsRenewCredentials prepares the AccountsRenewCredentials request. +func (c NetAppAccountsClient) preparerForAccountsRenewCredentials(ctx context.Context, id NetAppAccountId) (*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/renewCredentials", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForAccountsRenewCredentials sends the AccountsRenewCredentials request. The method will close the +// http.Response Body if it receives an error. +func (c NetAppAccountsClient) senderForAccountsRenewCredentials(ctx context.Context, req *http.Request) (future AccountsRenewCredentialsOperationResponse, 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/netapp/2021-10-01/netappaccounts/method_accountsupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/method_accountsupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/method_accountsupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/method_accountsupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_accountencryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_accountencryption.go new file mode 100644 index 000000000000..93f1a662f776 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_accountencryption.go @@ -0,0 +1,10 @@ +package netappaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type AccountEncryption struct { + Identity *EncryptionIdentity `json:"identity,omitempty"` + KeySource *KeySource `json:"keySource,omitempty"` + KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/model_accountproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_accountproperties.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/model_accountproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_accountproperties.go index b158b47fc946..18428908f562 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/model_accountproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_accountproperties.go @@ -5,6 +5,7 @@ package netappaccounts type AccountProperties struct { ActiveDirectories *[]ActiveDirectory `json:"activeDirectories,omitempty"` + DisableShowmount *bool `json:"disableShowmount,omitempty"` Encryption *AccountEncryption `json:"encryption,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/model_activedirectory.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_activedirectory.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/model_activedirectory.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_activedirectory.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_encryptionidentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_encryptionidentity.go new file mode 100644 index 000000000000..50cf4dbf6791 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_encryptionidentity.go @@ -0,0 +1,9 @@ +package netappaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type EncryptionIdentity struct { + PrincipalId *string `json:"principalId,omitempty"` + UserAssignedIdentity *string `json:"userAssignedIdentity,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_keyvaultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_keyvaultproperties.go new file mode 100644 index 000000000000..ac5d8c6afa48 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_keyvaultproperties.go @@ -0,0 +1,12 @@ +package netappaccounts + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type KeyVaultProperties struct { + KeyName string `json:"keyName"` + KeyVaultId *string `json:"keyVaultId,omitempty"` + KeyVaultResourceId string `json:"keyVaultResourceId"` + KeyVaultUri string `json:"keyVaultUri"` + Status *KeyVaultStatus `json:"status,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/model_ldapsearchscopeopt.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_ldapsearchscopeopt.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/model_ldapsearchscopeopt.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_ldapsearchscopeopt.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_netappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_netappaccount.go new file mode 100644 index 000000000000..ae38663e1261 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_netappaccount.go @@ -0,0 +1,21 @@ +package netappaccounts + +import ( + "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" + "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NetAppAccount struct { + Etag *string `json:"etag,omitempty"` + Id *string `json:"id,omitempty"` + Identity *identity.LegacySystemAndUserAssignedMap `json:"identity,omitempty"` + Location string `json:"location"` + Name *string `json:"name,omitempty"` + Properties *AccountProperties `json:"properties,omitempty"` + SystemData *systemdata.SystemData `json:"systemData,omitempty"` + Tags *map[string]string `json:"tags,omitempty"` + Type *string `json:"type,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/model_netappaccountpatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_netappaccountpatch.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/model_netappaccountpatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/model_netappaccountpatch.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/version.go index 3de2667a1a82..968fe11ac73f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts/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-10-01" +const defaultApiVersion = "2022-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/netappaccounts/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/README.md index 3fcab33d905b..3bbe03bafd43 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy` Documentation -The `snapshotpolicy` SDK allows for interaction with the Azure Resource Manager Service `netapp` (API Version `2021-10-01`). +The `snapshotpolicy` SDK allows for interaction with the Azure Resource Manager Service `netapp` (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/netapp/2021-10-01/snapshotpolicy" +import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/id_netappaccount.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/id_netappaccount.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/id_netappaccount.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/id_netappaccount.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/id_snapshotpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/id_snapshotpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/id_snapshotpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/id_snapshotpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/method_snapshotpoliciescreate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/method_snapshotpoliciescreate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/method_snapshotpoliciescreate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/method_snapshotpoliciescreate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/method_snapshotpoliciesdelete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/method_snapshotpoliciesdelete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/method_snapshotpoliciesdelete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/method_snapshotpoliciesdelete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/method_snapshotpoliciesget_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/method_snapshotpoliciesget_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/method_snapshotpoliciesget_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/method_snapshotpoliciesget_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/method_snapshotpolicieslist_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/method_snapshotpolicieslist_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/method_snapshotpolicieslist_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/method_snapshotpolicieslist_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/method_snapshotpoliciesupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/method_snapshotpoliciesupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/method_snapshotpoliciesupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/method_snapshotpoliciesupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/model_dailyschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/model_dailyschedule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/model_dailyschedule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/model_dailyschedule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/model_hourlyschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/model_hourlyschedule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/model_hourlyschedule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/model_hourlyschedule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/model_monthlyschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/model_monthlyschedule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/model_monthlyschedule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/model_monthlyschedule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/model_snapshotpolicieslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/model_snapshotpolicieslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/model_snapshotpolicieslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/model_snapshotpolicieslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/model_snapshotpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/model_snapshotpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/model_snapshotpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/model_snapshotpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/model_snapshotpolicypatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/model_snapshotpolicypatch.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/model_snapshotpolicypatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/model_snapshotpolicypatch.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/model_snapshotpolicyproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/model_snapshotpolicyproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/model_snapshotpolicyproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/model_snapshotpolicyproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/model_weeklyschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/model_weeklyschedule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/model_weeklyschedule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/model_weeklyschedule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/version.go index 00061163a3a7..c2169f8dcf75 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy/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-10-01" +const defaultApiVersion = "2022-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/snapshotpolicy/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/README.md similarity index 96% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/README.md index e6d357e24b68..4a2a3aa6c0d4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots` Documentation -The `snapshots` SDK allows for interaction with the Azure Resource Manager Service `netapp` (API Version `2021-10-01`). +The `snapshots` SDK allows for interaction with the Azure Resource Manager Service `netapp` (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/netapp/2021-10-01/snapshots" +import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/id_snapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/id_snapshot.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/id_snapshot.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/id_snapshot.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/id_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/id_volume.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/id_volume.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/id_volume.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/method_create_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/method_create_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/method_create_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/method_create_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/method_delete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/method_delete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/method_delete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/method_get_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/method_get_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/method_get_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/method_list_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/method_list_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/method_list_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/method_list_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/method_restorefiles_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/method_restorefiles_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/method_restorefiles_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/method_restorefiles_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/method_update_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/method_update_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/method_update_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/method_update_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/model_snapshot.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/model_snapshot.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/model_snapshot.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/model_snapshot.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/model_snapshotproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/model_snapshotproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/model_snapshotproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/model_snapshotproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/model_snapshotrestorefiles.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/model_snapshotrestorefiles.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/model_snapshotrestorefiles.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/model_snapshotrestorefiles.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/model_snapshotslist.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/model_snapshotslist.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/model_snapshotslist.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/model_snapshotslist.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/version.go index 90179a6f56ae..5a40a00ed726 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots/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-10-01" +const defaultApiVersion = "2022-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/snapshots/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/README.md similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/README.md index c42f7262724b..95b153f55908 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes` Documentation -The `volumes` SDK allows for interaction with the Azure Resource Manager Service `netapp` (API Version `2021-10-01`). +The `volumes` SDK allows for interaction with the Azure Resource Manager Service `netapp` (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/netapp/2021-10-01/volumes" +import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/constants.go similarity index 74% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/constants.go index 4c9bed0d63be..fa6be5b8058a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/constants.go @@ -89,6 +89,34 @@ func parseEnableSubvolumes(input string) (*EnableSubvolumes, error) { return &out, nil } +type EncryptionKeySource string + +const ( + EncryptionKeySourceMicrosoftPointKeyVault EncryptionKeySource = "Microsoft.KeyVault" + EncryptionKeySourceMicrosoftPointNetApp EncryptionKeySource = "Microsoft.NetApp" +) + +func PossibleValuesForEncryptionKeySource() []string { + return []string{ + string(EncryptionKeySourceMicrosoftPointKeyVault), + string(EncryptionKeySourceMicrosoftPointNetApp), + } +} + +func parseEncryptionKeySource(input string) (*EncryptionKeySource, error) { + vals := map[string]EncryptionKeySource{ + "microsoft.keyvault": EncryptionKeySourceMicrosoftPointKeyVault, + "microsoft.netapp": EncryptionKeySourceMicrosoftPointNetApp, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EncryptionKeySource(input) + return &out, nil +} + type EndpointType string const ( @@ -238,6 +266,62 @@ func parseServiceLevel(input string) (*ServiceLevel, error) { return &out, nil } +type SmbAccessBasedEnumeration string + +const ( + SmbAccessBasedEnumerationDisabled SmbAccessBasedEnumeration = "Disabled" + SmbAccessBasedEnumerationEnabled SmbAccessBasedEnumeration = "Enabled" +) + +func PossibleValuesForSmbAccessBasedEnumeration() []string { + return []string{ + string(SmbAccessBasedEnumerationDisabled), + string(SmbAccessBasedEnumerationEnabled), + } +} + +func parseSmbAccessBasedEnumeration(input string) (*SmbAccessBasedEnumeration, error) { + vals := map[string]SmbAccessBasedEnumeration{ + "disabled": SmbAccessBasedEnumerationDisabled, + "enabled": SmbAccessBasedEnumerationEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SmbAccessBasedEnumeration(input) + return &out, nil +} + +type SmbNonBrowsable string + +const ( + SmbNonBrowsableDisabled SmbNonBrowsable = "Disabled" + SmbNonBrowsableEnabled SmbNonBrowsable = "Enabled" +) + +func PossibleValuesForSmbNonBrowsable() []string { + return []string{ + string(SmbNonBrowsableDisabled), + string(SmbNonBrowsableEnabled), + } +} + +func parseSmbNonBrowsable(input string) (*SmbNonBrowsable, error) { + vals := map[string]SmbNonBrowsable{ + "disabled": SmbNonBrowsableDisabled, + "enabled": SmbNonBrowsableEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SmbNonBrowsable(input) + return &out, nil +} + type VolumeStorageToNetworkProximity string const ( diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/id_capacitypool.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/id_capacitypool.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/id_capacitypool.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/id_capacitypool.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/id_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/id_volume.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/id_volume.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/id_volume.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/method_createorupdate_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/method_createorupdate_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/method_createorupdate_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/method_createorupdate_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/method_delete_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/method_delete_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/method_delete_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/method_delete_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/method_get_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/method_get_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/method_get_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/method_get_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/method_list_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/method_list_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/method_list_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/method_list_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/method_update_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/method_update_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/method_update_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/method_update_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_exportpolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_exportpolicyrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_exportpolicyrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_exportpolicyrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_mounttargetproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_mounttargetproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_mounttargetproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_mounttargetproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_placementkeyvaluepairs.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_placementkeyvaluepairs.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_placementkeyvaluepairs.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_placementkeyvaluepairs.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_replicationobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_replicationobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_replicationobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_replicationobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volume.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volume.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volume.go index f92955c95e93..1679818444b4 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volume.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volume.go @@ -2,6 +2,7 @@ package volumes import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/systemdata" + "github.com/hashicorp/go-azure-helpers/resourcemanager/zones" ) // Copyright (c) Microsoft Corporation. All rights reserved. @@ -16,4 +17,5 @@ type Volume struct { SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` + Zones *zones.Schema `json:"zones,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumebackupproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumebackupproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumebackupproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumebackupproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumepatch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumepatch.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumepatch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumepatch.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumepatchproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumepatchproperties.go similarity index 85% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumepatchproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumepatchproperties.go index ed4479ca252b..5fab8a90ed1a 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumepatchproperties.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumepatchproperties.go @@ -4,6 +4,8 @@ package volumes // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type VolumePatchProperties struct { + CoolAccess *bool `json:"coolAccess,omitempty"` + CoolnessPeriod *int64 `json:"coolnessPeriod,omitempty"` DataProtection *VolumePatchPropertiesDataProtection `json:"dataProtection,omitempty"` DefaultGroupQuotaInKiBs *int64 `json:"defaultGroupQuotaInKiBs,omitempty"` DefaultUserQuotaInKiBs *int64 `json:"defaultUserQuotaInKiBs,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumepatchpropertiesdataprotection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumepatchpropertiesdataprotection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumepatchpropertiesdataprotection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumepatchpropertiesdataprotection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumepatchpropertiesexportpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumepatchpropertiesexportpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumepatchpropertiesexportpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumepatchpropertiesexportpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumeproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumeproperties.go new file mode 100644 index 000000000000..834a68fdb6ec --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumeproperties.go @@ -0,0 +1,54 @@ +package volumes + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VolumeProperties struct { + AvsDataStore *AvsDataStore `json:"avsDataStore,omitempty"` + BackupId *string `json:"backupId,omitempty"` + BaremetalTenantId *string `json:"baremetalTenantId,omitempty"` + CapacityPoolResourceId *string `json:"capacityPoolResourceId,omitempty"` + CloneProgress *int64 `json:"cloneProgress,omitempty"` + CoolAccess *bool `json:"coolAccess,omitempty"` + CoolnessPeriod *int64 `json:"coolnessPeriod,omitempty"` + CreationToken string `json:"creationToken"` + DataProtection *VolumePropertiesDataProtection `json:"dataProtection,omitempty"` + DefaultGroupQuotaInKiBs *int64 `json:"defaultGroupQuotaInKiBs,omitempty"` + DefaultUserQuotaInKiBs *int64 `json:"defaultUserQuotaInKiBs,omitempty"` + DeleteBaseSnapshot *bool `json:"deleteBaseSnapshot,omitempty"` + EnableSubvolumes *EnableSubvolumes `json:"enableSubvolumes,omitempty"` + Encrypted *bool `json:"encrypted,omitempty"` + EncryptionKeySource *EncryptionKeySource `json:"encryptionKeySource,omitempty"` + ExportPolicy *VolumePropertiesExportPolicy `json:"exportPolicy,omitempty"` + FileSystemId *string `json:"fileSystemId,omitempty"` + IsDefaultQuotaEnabled *bool `json:"isDefaultQuotaEnabled,omitempty"` + IsRestoring *bool `json:"isRestoring,omitempty"` + KerberosEnabled *bool `json:"kerberosEnabled,omitempty"` + KeyVaultPrivateEndpointResourceId *string `json:"keyVaultPrivateEndpointResourceId,omitempty"` + LdapEnabled *bool `json:"ldapEnabled,omitempty"` + MaximumNumberOfFiles *int64 `json:"maximumNumberOfFiles,omitempty"` + MountTargets *[]MountTargetProperties `json:"mountTargets,omitempty"` + NetworkFeatures *NetworkFeatures `json:"networkFeatures,omitempty"` + NetworkSiblingSetId *string `json:"networkSiblingSetId,omitempty"` + PlacementRules *[]PlacementKeyValuePairs `json:"placementRules,omitempty"` + ProtocolTypes *[]string `json:"protocolTypes,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + ProximityPlacementGroup *string `json:"proximityPlacementGroup,omitempty"` + SecurityStyle *SecurityStyle `json:"securityStyle,omitempty"` + ServiceLevel *ServiceLevel `json:"serviceLevel,omitempty"` + SmbAccessBasedEnumeration *SmbAccessBasedEnumeration `json:"smbAccessBasedEnumeration,omitempty"` + SmbContinuouslyAvailable *bool `json:"smbContinuouslyAvailable,omitempty"` + SmbEncryption *bool `json:"smbEncryption,omitempty"` + SmbNonBrowsable *SmbNonBrowsable `json:"smbNonBrowsable,omitempty"` + SnapshotDirectoryVisible *bool `json:"snapshotDirectoryVisible,omitempty"` + SnapshotId *string `json:"snapshotId,omitempty"` + StorageToNetworkProximity *VolumeStorageToNetworkProximity `json:"storageToNetworkProximity,omitempty"` + SubnetId string `json:"subnetId"` + T2Network *string `json:"t2Network,omitempty"` + ThroughputMibps *float64 `json:"throughputMibps,omitempty"` + UnixPermissions *string `json:"unixPermissions,omitempty"` + UsageThreshold int64 `json:"usageThreshold"` + VolumeGroupName *string `json:"volumeGroupName,omitempty"` + VolumeSpecName *string `json:"volumeSpecName,omitempty"` + VolumeType *string `json:"volumeType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumepropertiesdataprotection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumepropertiesdataprotection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumepropertiesdataprotection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumepropertiesdataprotection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumepropertiesexportpolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumepropertiesexportpolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumepropertiesexportpolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumepropertiesexportpolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumesnapshotproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumesnapshotproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/model_volumesnapshotproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/model_volumesnapshotproperties.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/version.go index 55ac8a54fde6..9ccb3fd80933 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes/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-10-01" +const defaultApiVersion = "2022-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/volumes/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/README.md similarity index 74% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/README.md index 037bd15af1bb..91e1f1bd4fb7 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication` Documentation -The `volumesreplication` SDK allows for interaction with the Azure Resource Manager Service `netapp` (API Version `2021-10-01`). +The `volumesreplication` SDK allows for interaction with the Azure Resource Manager Service `netapp` (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/netapp/2021-10-01/volumesreplication" +import "github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication" ``` @@ -66,6 +66,22 @@ if err := client.VolumesDeleteReplicationThenPoll(ctx, id); err != nil { ``` +### Example Usage: `VolumesReplicationClient.VolumesListReplications` + +```go +ctx := context.TODO() +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "poolValue", "volumeValue") + +read, err := client.VolumesListReplications(ctx, id) +if err != nil { + // handle the error +} +if model := read.Model; model != nil { + // do something with the model/response object +} +``` + + ### Example Usage: `VolumesReplicationClient.VolumesReInitializeReplication` ```go @@ -78,6 +94,23 @@ if err := client.VolumesReInitializeReplicationThenPoll(ctx, id); err != nil { ``` +### Example Usage: `VolumesReplicationClient.VolumesReestablishReplication` + +```go +ctx := context.TODO() +id := volumesreplication.NewVolumeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "poolValue", "volumeValue") + +payload := volumesreplication.ReestablishReplicationRequest{ + // ... +} + + +if err := client.VolumesReestablishReplicationThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + ### Example Usage: `VolumesReplicationClient.VolumesReplicationStatus` ```go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/constants.go similarity index 53% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/constants.go index 6b67c17d5884..a82a488bb410 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/constants.go @@ -5,6 +5,34 @@ 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 EndpointType string + +const ( + EndpointTypeDst EndpointType = "dst" + EndpointTypeSrc EndpointType = "src" +) + +func PossibleValuesForEndpointType() []string { + return []string{ + string(EndpointTypeDst), + string(EndpointTypeSrc), + } +} + +func parseEndpointType(input string) (*EndpointType, error) { + vals := map[string]EndpointType{ + "dst": EndpointTypeDst, + "src": EndpointTypeSrc, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EndpointType(input) + return &out, nil +} + type MirrorState string const ( @@ -63,3 +91,34 @@ func parseRelationshipStatus(input string) (*RelationshipStatus, error) { out := RelationshipStatus(input) return &out, nil } + +type ReplicationSchedule string + +const ( + ReplicationScheduleDaily ReplicationSchedule = "daily" + ReplicationScheduleHourly ReplicationSchedule = "hourly" + ReplicationScheduleOneZerominutely ReplicationSchedule = "_10minutely" +) + +func PossibleValuesForReplicationSchedule() []string { + return []string{ + string(ReplicationScheduleDaily), + string(ReplicationScheduleHourly), + string(ReplicationScheduleOneZerominutely), + } +} + +func parseReplicationSchedule(input string) (*ReplicationSchedule, error) { + vals := map[string]ReplicationSchedule{ + "daily": ReplicationScheduleDaily, + "hourly": ReplicationScheduleHourly, + "_10minutely": ReplicationScheduleOneZerominutely, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ReplicationSchedule(input) + return &out, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/id_volume.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/id_volume.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/id_volume.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/id_volume.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/method_volumesauthorizereplication_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumesauthorizereplication_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/method_volumesauthorizereplication_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumesauthorizereplication_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/method_volumesbreakreplication_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumesbreakreplication_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/method_volumesbreakreplication_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumesbreakreplication_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/method_volumesdeletereplication_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumesdeletereplication_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/method_volumesdeletereplication_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumesdeletereplication_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumeslistreplications_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumeslistreplications_autorest.go new file mode 100644 index 000000000000..bd62eeedb160 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumeslistreplications_autorest.go @@ -0,0 +1,69 @@ +package volumesreplication + +import ( + "context" + "fmt" + "net/http" + + "github.com/Azure/go-autorest/autorest" + "github.com/Azure/go-autorest/autorest/azure" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type VolumesListReplicationsOperationResponse struct { + HttpResponse *http.Response + Model *ListReplications +} + +// VolumesListReplications ... +func (c VolumesReplicationClient) VolumesListReplications(ctx context.Context, id VolumeId) (result VolumesListReplicationsOperationResponse, err error) { + req, err := c.preparerForVolumesListReplications(ctx, id) + if err != nil { + err = autorest.NewErrorWithError(err, "volumesreplication.VolumesReplicationClient", "VolumesListReplications", nil, "Failure preparing request") + return + } + + result.HttpResponse, err = c.Client.Send(req, azure.DoRetryWithRegistration(c.Client)) + if err != nil { + err = autorest.NewErrorWithError(err, "volumesreplication.VolumesReplicationClient", "VolumesListReplications", result.HttpResponse, "Failure sending request") + return + } + + result, err = c.responderForVolumesListReplications(result.HttpResponse) + if err != nil { + err = autorest.NewErrorWithError(err, "volumesreplication.VolumesReplicationClient", "VolumesListReplications", result.HttpResponse, "Failure responding to request") + return + } + + return +} + +// preparerForVolumesListReplications prepares the VolumesListReplications request. +func (c VolumesReplicationClient) preparerForVolumesListReplications(ctx context.Context, id VolumeId) (*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/listReplications", id.ID())), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// responderForVolumesListReplications handles the response to the VolumesListReplications request. The method always +// closes the http.Response Body. +func (c VolumesReplicationClient) responderForVolumesListReplications(resp *http.Response) (result VolumesListReplicationsOperationResponse, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result.Model), + autorest.ByClosing()) + result.HttpResponse = resp + + return +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumesreestablishreplication_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumesreestablishreplication_autorest.go new file mode 100644 index 000000000000..e8086e14aba5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumesreestablishreplication_autorest.go @@ -0,0 +1,79 @@ +package volumesreplication + +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 VolumesReestablishReplicationOperationResponse struct { + Poller polling.LongRunningPoller + HttpResponse *http.Response +} + +// VolumesReestablishReplication ... +func (c VolumesReplicationClient) VolumesReestablishReplication(ctx context.Context, id VolumeId, input ReestablishReplicationRequest) (result VolumesReestablishReplicationOperationResponse, err error) { + req, err := c.preparerForVolumesReestablishReplication(ctx, id, input) + if err != nil { + err = autorest.NewErrorWithError(err, "volumesreplication.VolumesReplicationClient", "VolumesReestablishReplication", nil, "Failure preparing request") + return + } + + result, err = c.senderForVolumesReestablishReplication(ctx, req) + if err != nil { + err = autorest.NewErrorWithError(err, "volumesreplication.VolumesReplicationClient", "VolumesReestablishReplication", result.HttpResponse, "Failure sending request") + return + } + + return +} + +// VolumesReestablishReplicationThenPoll performs VolumesReestablishReplication then polls until it's completed +func (c VolumesReplicationClient) VolumesReestablishReplicationThenPoll(ctx context.Context, id VolumeId, input ReestablishReplicationRequest) error { + result, err := c.VolumesReestablishReplication(ctx, id, input) + if err != nil { + return fmt.Errorf("performing VolumesReestablishReplication: %+v", err) + } + + if err := result.Poller.PollUntilDone(); err != nil { + return fmt.Errorf("polling after VolumesReestablishReplication: %+v", err) + } + + return nil +} + +// preparerForVolumesReestablishReplication prepares the VolumesReestablishReplication request. +func (c VolumesReplicationClient) preparerForVolumesReestablishReplication(ctx context.Context, id VolumeId, input ReestablishReplicationRequest) (*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/reestablishReplication", id.ID())), + autorest.WithJSON(input), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// senderForVolumesReestablishReplication sends the VolumesReestablishReplication request. The method will close the +// http.Response Body if it receives an error. +func (c VolumesReplicationClient) senderForVolumesReestablishReplication(ctx context.Context, req *http.Request) (future VolumesReestablishReplicationOperationResponse, 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/netapp/2021-10-01/volumesreplication/method_volumesreinitializereplication_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumesreinitializereplication_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/method_volumesreinitializereplication_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumesreinitializereplication_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/method_volumesreplicationstatus_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumesreplicationstatus_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/method_volumesreplicationstatus_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumesreplicationstatus_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/method_volumesresyncreplication_autorest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumesresyncreplication_autorest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/method_volumesresyncreplication_autorest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/method_volumesresyncreplication_autorest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/model_authorizerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/model_authorizerequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/model_authorizerequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/model_authorizerequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/model_breakreplicationrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/model_breakreplicationrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/model_breakreplicationrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/model_breakreplicationrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/model_accountencryption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/model_listreplications.go similarity index 60% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/model_accountencryption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/model_listreplications.go index 39a9282ce500..7929ea4ace49 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts/model_accountencryption.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/model_listreplications.go @@ -1,8 +1,8 @@ -package netappaccounts +package volumesreplication // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type AccountEncryption struct { - KeySource *string `json:"keySource,omitempty"` +type ListReplications struct { + Value *[]Replication `json:"value,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/model_reestablishreplicationrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/model_reestablishreplicationrequest.go new file mode 100644 index 000000000000..193b71f14903 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/model_reestablishreplicationrequest.go @@ -0,0 +1,8 @@ +package volumesreplication + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ReestablishReplicationRequest struct { + SourceVolumeId *string `json:"sourceVolumeId,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/model_replication.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/model_replication.go new file mode 100644 index 000000000000..06e345fdb5e6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/model_replication.go @@ -0,0 +1,11 @@ +package volumesreplication + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Replication struct { + EndpointType *EndpointType `json:"endpointType,omitempty"` + RemoteVolumeRegion *string `json:"remoteVolumeRegion,omitempty"` + RemoteVolumeResourceId string `json:"remoteVolumeResourceId"` + ReplicationSchedule *ReplicationSchedule `json:"replicationSchedule,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/model_replicationstatus.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/model_replicationstatus.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/model_replicationstatus.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/model_replicationstatus.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/version.go index 5a6266022a22..5bed92cb09ff 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication/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-10-01" +const defaultApiVersion = "2022-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/volumesreplication/%s", defaultApiVersion) diff --git a/vendor/modules.txt b/vendor/modules.txt index 71c6e66eb268..5933468b8107 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -336,12 +336,12 @@ github.com/hashicorp/go-azure-sdk/resource-manager/media/2022-08-01/streamingend github.com/hashicorp/go-azure-sdk/resource-manager/media/2022-08-01/streamingendpoints github.com/hashicorp/go-azure-sdk/resource-manager/media/2022-08-01/streamingpoliciesandstreaminglocators github.com/hashicorp/go-azure-sdk/resource-manager/mixedreality/2021-01-01/resource -github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/capacitypools -github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/netappaccounts -github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshotpolicy -github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/snapshots -github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumes -github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2021-10-01/volumesreplication +github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/capacitypools +github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/netappaccounts +github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshotpolicy +github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/snapshots +github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumes +github.com/hashicorp/go-azure-sdk/resource-manager/netapp/2022-05-01/volumesreplication github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01 github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxcertificate github.com/hashicorp/go-azure-sdk/resource-manager/nginx/2022-08-01/nginxconfiguration diff --git a/website/docs/d/netapp_volume.html.markdown b/website/docs/d/netapp_volume.html.markdown index 997d9372f70d..b19af556d80f 100644 --- a/website/docs/d/netapp_volume.html.markdown +++ b/website/docs/d/netapp_volume.html.markdown @@ -42,6 +42,8 @@ The following arguments are supported: The following attributes are exported: * `location` - The Azure Region where the NetApp Volume exists. + +* `zone` - The Availability Zone in which the Volume is located. * `mount_ip_addresses` - A list of IPv4 Addresses which should be used to mount the volume. diff --git a/website/docs/r/netapp_volume.html.markdown b/website/docs/r/netapp_volume.html.markdown index 44357ef45655..3f3f91f4e9de 100644 --- a/website/docs/r/netapp_volume.html.markdown +++ b/website/docs/r/netapp_volume.html.markdown @@ -63,6 +63,7 @@ resource "azurerm_netapp_volume" "example" { name = "example-netappvolume" location = azurerm_resource_group.example.location + zone = "1" resource_group_name = azurerm_resource_group.example.name account_name = azurerm_netapp_account.example.name pool_name = azurerm_netapp_pool.example.name @@ -105,6 +106,8 @@ The following arguments are supported: * `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. +* `zone` - (Optional) Specifies the Availability Zone in which the Volume should be located. Possible values are `1`, `2` and `3`. This feature is currently in preview, for more information on how to enable it, please refer to [Manage availability zone volume placement for Azure NetApp Files](https://learn.microsoft.com/en-us/azure/azure-netapp-files/manage-availability-zone-volume-placement#register-the-feature) + * `account_name` - (Required) The name of the NetApp account in which the NetApp Pool should be created. Changing this forces a new resource to be created. * `volume_path` - (Required) A unique file path for the volume. Used when creating mount targets. Changing this forces a new resource to be created.