diff --git a/internal/services/dataprotection/client/client.go b/internal/services/dataprotection/client/client.go index 1e905112bb6c..ff4c54af734e 100644 --- a/internal/services/dataprotection/client/client.go +++ b/internal/services/dataprotection/client/client.go @@ -6,10 +6,10 @@ package client import ( "fmt" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards" "github.com/hashicorp/terraform-provider-azurerm/internal/common" ) diff --git a/internal/services/dataprotection/data_protection_backup_instance_blob_storage_resource.go b/internal/services/dataprotection/data_protection_backup_instance_blob_storage_resource.go index b50d5f837c6e..70772091c900 100644 --- a/internal/services/dataprotection/data_protection_backup_instance_blob_storage_resource.go +++ b/internal/services/dataprotection/data_protection_backup_instance_blob_storage_resource.go @@ -12,8 +12,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/dataprotection/data_protection_backup_instance_blob_storage_resource_test.go b/internal/services/dataprotection/data_protection_backup_instance_blob_storage_resource_test.go index 8e90b965637b..f23b73ca1c9b 100644 --- a/internal/services/dataprotection/data_protection_backup_instance_blob_storage_resource_test.go +++ b/internal/services/dataprotection/data_protection_backup_instance_blob_storage_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances" "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/dataprotection/data_protection_backup_instance_disk_resource.go b/internal/services/dataprotection/data_protection_backup_instance_disk_resource.go index 6bcab8333bba..1834609aedd1 100644 --- a/internal/services/dataprotection/data_protection_backup_instance_disk_resource.go +++ b/internal/services/dataprotection/data_protection_backup_instance_disk_resource.go @@ -12,8 +12,8 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-sdk/resource-manager/compute/2023-04-02/disks" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/dataprotection/data_protection_backup_instance_disk_resource_test.go b/internal/services/dataprotection/data_protection_backup_instance_disk_resource_test.go index f1ccd1614df4..c8812ba97858 100644 --- a/internal/services/dataprotection/data_protection_backup_instance_disk_resource_test.go +++ b/internal/services/dataprotection/data_protection_backup_instance_disk_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances" "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/dataprotection/data_protection_backup_instance_postgresql_resource.go b/internal/services/dataprotection/data_protection_backup_instance_postgresql_resource.go index 508df042ab73..91e48c371530 100644 --- a/internal/services/dataprotection/data_protection_backup_instance_postgresql_resource.go +++ b/internal/services/dataprotection/data_protection_backup_instance_postgresql_resource.go @@ -12,8 +12,8 @@ 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/dataprotection/2022-04-01/backupinstances" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies" "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/databases" "github.com/hashicorp/go-azure-sdk/resource-manager/postgresql/2017-12-01/servers" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/internal/services/dataprotection/data_protection_backup_instance_postgresql_resource_test.go b/internal/services/dataprotection/data_protection_backup_instance_postgresql_resource_test.go index 588d740e4ee5..39739ee89ed3 100644 --- a/internal/services/dataprotection/data_protection_backup_instance_postgresql_resource_test.go +++ b/internal/services/dataprotection/data_protection_backup_instance_postgresql_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances" "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/dataprotection/data_protection_backup_policy_blob_storage_resource.go b/internal/services/dataprotection/data_protection_backup_policy_blob_storage_resource.go index 2c0454165918..0a8721d9e98a 100644 --- a/internal/services/dataprotection/data_protection_backup_policy_blob_storage_resource.go +++ b/internal/services/dataprotection/data_protection_backup_policy_blob_storage_resource.go @@ -10,7 +10,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" helperValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" diff --git a/internal/services/dataprotection/data_protection_backup_policy_blob_storage_resource_test.go b/internal/services/dataprotection/data_protection_backup_policy_blob_storage_resource_test.go index 971a01005600..87859071b5a7 100644 --- a/internal/services/dataprotection/data_protection_backup_policy_blob_storage_resource_test.go +++ b/internal/services/dataprotection/data_protection_backup_policy_blob_storage_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies" "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/dataprotection/data_protection_backup_policy_disk_resource.go b/internal/services/dataprotection/data_protection_backup_policy_disk_resource.go index ec2ccff37bfb..a0d2ac5a8aa7 100644 --- a/internal/services/dataprotection/data_protection_backup_policy_disk_resource.go +++ b/internal/services/dataprotection/data_protection_backup_policy_disk_resource.go @@ -11,7 +11,7 @@ import ( "time" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" helperValidate "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" diff --git a/internal/services/dataprotection/data_protection_backup_policy_disk_resource_test.go b/internal/services/dataprotection/data_protection_backup_policy_disk_resource_test.go index 54f59c15225d..4dce324b28bb 100644 --- a/internal/services/dataprotection/data_protection_backup_policy_disk_resource_test.go +++ b/internal/services/dataprotection/data_protection_backup_policy_disk_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies" "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/dataprotection/data_protection_backup_policy_postgresql_resource.go b/internal/services/dataprotection/data_protection_backup_policy_postgresql_resource.go index bc9f60bbe5e9..f49bd11dd6a1 100644 --- a/internal/services/dataprotection/data_protection_backup_policy_postgresql_resource.go +++ b/internal/services/dataprotection/data_protection_backup_policy_postgresql_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-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" diff --git a/internal/services/dataprotection/data_protection_backup_policy_postgresql_resource_test.go b/internal/services/dataprotection/data_protection_backup_policy_postgresql_resource_test.go index e6f413e23894..2ab374449bc7 100644 --- a/internal/services/dataprotection/data_protection_backup_policy_postgresql_resource_test.go +++ b/internal/services/dataprotection/data_protection_backup_policy_postgresql_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies" "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/dataprotection/data_protection_backup_vault_data_source.go b/internal/services/dataprotection/data_protection_backup_vault_data_source.go index 3b5e112bb492..2f9923cdb73d 100644 --- a/internal/services/dataprotection/data_protection_backup_vault_data_source.go +++ b/internal/services/dataprotection/data_protection_backup_vault_data_source.go @@ -13,7 +13,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/dataprotection/data_protection_backup_vault_data_source_test.go b/internal/services/dataprotection/data_protection_backup_vault_data_source_test.go index 9944007c0093..9d9a9f9998f4 100644 --- a/internal/services/dataprotection/data_protection_backup_vault_data_source_test.go +++ b/internal/services/dataprotection/data_protection_backup_vault_data_source_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults" "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/dataprotection/data_protection_backup_vault_resource.go b/internal/services/dataprotection/data_protection_backup_vault_resource.go index a82a42c28689..ff2faabcd9eb 100644 --- a/internal/services/dataprotection/data_protection_backup_vault_resource.go +++ b/internal/services/dataprotection/data_protection_backup_vault_resource.go @@ -14,9 +14,10 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/identity" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" + "github.com/hashicorp/terraform-provider-azurerm/internal/features" "github.com/hashicorp/terraform-provider-azurerm/internal/tags" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/validation" @@ -25,7 +26,7 @@ import ( ) func resourceDataProtectionBackupVault() *pluginsdk.Resource { - return &pluginsdk.Resource{ + resource := &pluginsdk.Resource{ Create: resourceDataProtectionBackupVaultCreateUpdate, Read: resourceDataProtectionBackupVaultRead, Update: resourceDataProtectionBackupVaultCreateUpdate, @@ -58,17 +59,6 @@ func resourceDataProtectionBackupVault() *pluginsdk.Resource { "location": commonschema.Location(), - "datastore_type": { - Type: pluginsdk.TypeString, - Required: true, - ForceNew: true, - ValidateFunc: validation.StringInSlice([]string{ - string(backupvaults.StorageSettingStoreTypesArchiveStore), - string(backupvaults.StorageSettingStoreTypesSnapshotStore), - string(backupvaults.StorageSettingStoreTypesVaultStore), - }, false), - }, - "redundancy": { Type: pluginsdk.TypeString, Required: true, @@ -84,6 +74,33 @@ func resourceDataProtectionBackupVault() *pluginsdk.Resource { "tags": tags.Schema(), }, } + + // Confirmed with the service team that `SnapshotStore` has been replaced with `OperationalStore`. + if !features.FourPointOhBeta() { + resource.Schema["datastore_type"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringInSlice([]string{ + string(backupvaults.StorageSettingStoreTypesArchiveStore), + "SnapshotStore", + string(backupvaults.StorageSettingStoreTypesOperationalStore), + string(backupvaults.StorageSettingStoreTypesVaultStore), + }, false), + } + } else { + resource.Schema["datastore_type"] = &pluginsdk.Schema{ + Type: pluginsdk.TypeString, + Required: true, + ForceNew: true, + ValidateFunc: validation.StringInSlice([]string{ + string(backupvaults.StorageSettingStoreTypesArchiveStore), + string(backupvaults.StorageSettingStoreTypesOperationalStore), + string(backupvaults.StorageSettingStoreTypesVaultStore), + }, false), + } + } + return resource } func resourceDataProtectionBackupVaultCreateUpdate(d *pluginsdk.ResourceData, meta interface{}) error { diff --git a/internal/services/dataprotection/data_protection_backup_vault_resource_test.go b/internal/services/dataprotection/data_protection_backup_vault_resource_test.go index 96e3eafc3154..cc6cde56585a 100644 --- a/internal/services/dataprotection/data_protection_backup_vault_resource_test.go +++ b/internal/services/dataprotection/data_protection_backup_vault_resource_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults" "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/dataprotection/data_protection_resource_guard_resource.go b/internal/services/dataprotection/data_protection_resource_guard_resource.go index 39dd231ba6c1..7820375cfd28 100644 --- a/internal/services/dataprotection/data_protection_resource_guard_resource.go +++ b/internal/services/dataprotection/data_protection_resource_guard_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" "github.com/hashicorp/go-azure-helpers/resourcemanager/location" "github.com/hashicorp/go-azure-helpers/resourcemanager/tags" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards" "github.com/hashicorp/terraform-provider-azurerm/helpers/tf" "github.com/hashicorp/terraform-provider-azurerm/internal/clients" "github.com/hashicorp/terraform-provider-azurerm/internal/services/dataprotection/validate" diff --git a/internal/services/dataprotection/data_protection_resource_guard_resource_test.go b/internal/services/dataprotection/data_protection_resource_guard_resource_test.go index 02af16357a0a..6fc058812e18 100644 --- a/internal/services/dataprotection/data_protection_resource_guard_resource_test.go +++ b/internal/services/dataprotection/data_protection_resource_guard_resource_test.go @@ -8,7 +8,7 @@ import ( "fmt" "testing" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards" "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/recoveryservices/recovery_services_vault_resource_guard_association_resource.go b/internal/services/recoveryservices/recovery_services_vault_resource_guard_association_resource.go index 422abd6e572a..6ca29985f6d8 100644 --- a/internal/services/recoveryservices/recovery_services_vault_resource_guard_association_resource.go +++ b/internal/services/recoveryservices/recovery_services_vault_resource_guard_association_resource.go @@ -11,7 +11,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonschema" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards" "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2022-10-01/vaults" "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservicesbackup/2023-02-01/resourceguardproxy" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_datasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_datasource.go deleted file mode 100644 index f54567895fd0..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_datasource.go +++ /dev/null @@ -1,14 +0,0 @@ -package backupinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type Datasource struct { - DatasourceType *string `json:"datasourceType,omitempty"` - ObjectType *string `json:"objectType,omitempty"` - ResourceID string `json:"resourceID"` - ResourceLocation *string `json:"resourceLocation,omitempty"` - ResourceName *string `json:"resourceName,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ResourceUri *string `json:"resourceUri,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_datasourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_datasourceset.go deleted file mode 100644 index 665d80c0d140..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_datasourceset.go +++ /dev/null @@ -1,14 +0,0 @@ -package backupinstances - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DatasourceSet struct { - DatasourceType *string `json:"datasourceType,omitempty"` - ObjectType *string `json:"objectType,omitempty"` - ResourceID string `json:"resourceID"` - ResourceLocation *string `json:"resourceLocation,omitempty"` - ResourceName *string `json:"resourceName,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ResourceUri *string `json:"resourceUri,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_backupvault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_backupvault.go deleted file mode 100644 index 833a20c17e91..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_backupvault.go +++ /dev/null @@ -1,12 +0,0 @@ -package backupvaults - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type BackupVault struct { - MonitoringSettings *MonitoringSettings `json:"monitoringSettings,omitempty"` - ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - ResourceMoveDetails *ResourceMoveDetails `json:"resourceMoveDetails,omitempty"` - ResourceMoveState *ResourceMoveState `json:"resourceMoveState,omitempty"` - StorageSettings []StorageSetting `json:"storageSettings"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_dppidentitydetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_dppidentitydetails.go deleted file mode 100644 index 0bdda7794929..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_dppidentitydetails.go +++ /dev/null @@ -1,10 +0,0 @@ -package resourceguards - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type DppIdentityDetails struct { - PrincipalId *string `json:"principalId,omitempty"` - TenantId *string `json:"tenantId,omitempty"` - Type *string `json:"type,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_monitoringsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_monitoringsettings.go deleted file mode 100644 index 5b235dfc25ff..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_monitoringsettings.go +++ /dev/null @@ -1,8 +0,0 @@ -package resourceguards - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type MonitoringSettings struct { - AzureMonitorAlertSettings *AzureMonitorAlertSettings `json:"azureMonitorAlertSettings,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_patchresourcerequestinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_patchresourcerequestinput.go deleted file mode 100644 index bd691b1a9e34..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_patchresourcerequestinput.go +++ /dev/null @@ -1,10 +0,0 @@ -package resourceguards - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See NOTICE.txt in the project root for license information. - -type PatchResourceRequestInput struct { - Identity *DppIdentityDetails `json:"identity,omitempty"` - Properties *PatchBackupVaultInput `json:"properties,omitempty"` - Tags *map[string]string `json:"tags,omitempty"` -} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/README.md similarity index 97% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/README.md index 0575ce8d2b92..b894eea6aec6 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances` Documentation -The `backupinstances` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2022-04-01`). +The `backupinstances` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2023-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/dataprotection/2022-04-01/backupinstances" +import "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/constants.go similarity index 77% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/constants.go index 112428d45911..6ea153cb9527 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/constants.go @@ -124,6 +124,88 @@ func parseDataStoreTypes(input string) (*DataStoreTypes, error) { return &out, nil } +type ExistingResourcePolicy string + +const ( + ExistingResourcePolicyPatch ExistingResourcePolicy = "Patch" + ExistingResourcePolicySkip ExistingResourcePolicy = "Skip" +) + +func PossibleValuesForExistingResourcePolicy() []string { + return []string{ + string(ExistingResourcePolicyPatch), + string(ExistingResourcePolicySkip), + } +} + +func (s *ExistingResourcePolicy) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseExistingResourcePolicy(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseExistingResourcePolicy(input string) (*ExistingResourcePolicy, error) { + vals := map[string]ExistingResourcePolicy{ + "patch": ExistingResourcePolicyPatch, + "skip": ExistingResourcePolicySkip, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ExistingResourcePolicy(input) + return &out, nil +} + +type PersistentVolumeRestoreMode string + +const ( + PersistentVolumeRestoreModeRestoreWithVolumeData PersistentVolumeRestoreMode = "RestoreWithVolumeData" + PersistentVolumeRestoreModeRestoreWithoutVolumeData PersistentVolumeRestoreMode = "RestoreWithoutVolumeData" +) + +func PossibleValuesForPersistentVolumeRestoreMode() []string { + return []string{ + string(PersistentVolumeRestoreModeRestoreWithVolumeData), + string(PersistentVolumeRestoreModeRestoreWithoutVolumeData), + } +} + +func (s *PersistentVolumeRestoreMode) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parsePersistentVolumeRestoreMode(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parsePersistentVolumeRestoreMode(input string) (*PersistentVolumeRestoreMode, error) { + vals := map[string]PersistentVolumeRestoreMode{ + "restorewithvolumedata": PersistentVolumeRestoreModeRestoreWithVolumeData, + "restorewithoutvolumedata": PersistentVolumeRestoreModeRestoreWithoutVolumeData, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := PersistentVolumeRestoreMode(input) + return &out, nil +} + type RecoveryOption string const ( @@ -206,6 +288,44 @@ func parseRehydrationPriority(input string) (*RehydrationPriority, error) { return &out, nil } +type ResourcePropertiesObjectType string + +const ( + ResourcePropertiesObjectTypeDefaultResourceProperties ResourcePropertiesObjectType = "DefaultResourceProperties" +) + +func PossibleValuesForResourcePropertiesObjectType() []string { + return []string{ + string(ResourcePropertiesObjectTypeDefaultResourceProperties), + } +} + +func (s *ResourcePropertiesObjectType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseResourcePropertiesObjectType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseResourcePropertiesObjectType(input string) (*ResourcePropertiesObjectType, error) { + vals := map[string]ResourcePropertiesObjectType{ + "defaultresourceproperties": ResourcePropertiesObjectTypeDefaultResourceProperties, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ResourcePropertiesObjectType(input) + return &out, nil +} + type RestoreTargetLocationType string const ( @@ -294,14 +414,16 @@ func parseSecretStoreType(input string) (*SecretStoreType, error) { type SourceDataStoreType string const ( - SourceDataStoreTypeArchiveStore SourceDataStoreType = "ArchiveStore" - SourceDataStoreTypeSnapshotStore SourceDataStoreType = "SnapshotStore" - SourceDataStoreTypeVaultStore SourceDataStoreType = "VaultStore" + SourceDataStoreTypeArchiveStore SourceDataStoreType = "ArchiveStore" + SourceDataStoreTypeOperationalStore SourceDataStoreType = "OperationalStore" + SourceDataStoreTypeSnapshotStore SourceDataStoreType = "SnapshotStore" + SourceDataStoreTypeVaultStore SourceDataStoreType = "VaultStore" ) func PossibleValuesForSourceDataStoreType() []string { return []string{ string(SourceDataStoreTypeArchiveStore), + string(SourceDataStoreTypeOperationalStore), string(SourceDataStoreTypeSnapshotStore), string(SourceDataStoreTypeVaultStore), } @@ -322,9 +444,10 @@ func (s *SourceDataStoreType) UnmarshalJSON(bytes []byte) error { func parseSourceDataStoreType(input string) (*SourceDataStoreType, error) { vals := map[string]SourceDataStoreType{ - "archivestore": SourceDataStoreTypeArchiveStore, - "snapshotstore": SourceDataStoreTypeSnapshotStore, - "vaultstore": SourceDataStoreTypeVaultStore, + "archivestore": SourceDataStoreTypeArchiveStore, + "operationalstore": SourceDataStoreTypeOperationalStore, + "snapshotstore": SourceDataStoreTypeSnapshotStore, + "vaultstore": SourceDataStoreTypeVaultStore, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/id_backupinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/id_backupinstance.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/id_backupinstance.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/id_backupinstance.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/id_backupvault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/id_backupvault.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/id_backupvault.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/id_backupvault.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_adhocbackup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_adhocbackup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_adhocbackup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_adhocbackup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_resumebackups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_resumebackups.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_resumebackups.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_resumebackups.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_resumeprotection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_resumeprotection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_resumeprotection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_resumeprotection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_stopprotection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_stopprotection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_stopprotection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_stopprotection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_suspendbackups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_suspendbackups.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_suspendbackups.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_suspendbackups.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_syncbackupinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_syncbackupinstance.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_syncbackupinstance.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_syncbackupinstance.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_triggerrehydrate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_triggerrehydrate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_triggerrehydrate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_triggerrehydrate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_triggerrestore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_triggerrestore.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_triggerrestore.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_triggerrestore.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_validateforbackup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_validateforbackup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_validateforbackup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_validateforbackup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_validateforrestore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_validateforrestore.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/method_validateforrestore.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_validateforrestore.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_adhocbackupruleoptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_adhocbackupruleoptions.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_adhocbackupruleoptions.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_adhocbackupruleoptions.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_adhocbackuptriggeroption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_adhocbackuptriggeroption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_adhocbackuptriggeroption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_adhocbackuptriggeroption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_authcredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_authcredentials.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_authcredentials.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_authcredentials.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_azurebackuprecoverypointbasedrestorerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprecoverypointbasedrestorerequest.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_azurebackuprecoverypointbasedrestorerequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprecoverypointbasedrestorerequest.go index d6e691f7bfbe..5809de628f08 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_azurebackuprecoverypointbasedrestorerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprecoverypointbasedrestorerequest.go @@ -14,6 +14,7 @@ type AzureBackupRecoveryPointBasedRestoreRequest struct { RecoveryPointId string `json:"recoveryPointId"` // Fields inherited from AzureBackupRestoreRequest + IdentityDetails *IdentityDetails `json:"identityDetails,omitempty"` RestoreTargetInfo RestoreTargetInfoBase `json:"restoreTargetInfo"` SourceDataStoreType SourceDataStoreType `json:"sourceDataStoreType"` SourceResourceId *string `json:"sourceResourceId,omitempty"` @@ -52,6 +53,7 @@ func (s *AzureBackupRecoveryPointBasedRestoreRequest) UnmarshalJSON(bytes []byte return fmt.Errorf("unmarshaling into AzureBackupRecoveryPointBasedRestoreRequest: %+v", err) } + s.IdentityDetails = decoded.IdentityDetails s.RecoveryPointId = decoded.RecoveryPointId s.SourceDataStoreType = decoded.SourceDataStoreType s.SourceResourceId = decoded.SourceResourceId diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_azurebackuprecoverytimebasedrestorerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprecoverytimebasedrestorerequest.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_azurebackuprecoverytimebasedrestorerequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprecoverytimebasedrestorerequest.go index e67d2e54b10a..17052c6294a5 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_azurebackuprecoverytimebasedrestorerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprecoverytimebasedrestorerequest.go @@ -14,6 +14,7 @@ type AzureBackupRecoveryTimeBasedRestoreRequest struct { RecoveryPointTime string `json:"recoveryPointTime"` // Fields inherited from AzureBackupRestoreRequest + IdentityDetails *IdentityDetails `json:"identityDetails,omitempty"` RestoreTargetInfo RestoreTargetInfoBase `json:"restoreTargetInfo"` SourceDataStoreType SourceDataStoreType `json:"sourceDataStoreType"` SourceResourceId *string `json:"sourceResourceId,omitempty"` @@ -52,6 +53,7 @@ func (s *AzureBackupRecoveryTimeBasedRestoreRequest) UnmarshalJSON(bytes []byte) return fmt.Errorf("unmarshaling into AzureBackupRecoveryTimeBasedRestoreRequest: %+v", err) } + s.IdentityDetails = decoded.IdentityDetails s.RecoveryPointTime = decoded.RecoveryPointTime s.SourceDataStoreType = decoded.SourceDataStoreType s.SourceResourceId = decoded.SourceResourceId diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_azurebackuprehydrationrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprehydrationrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_azurebackuprehydrationrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprehydrationrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_azurebackuprestorerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprestorerequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_azurebackuprestorerequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprestorerequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_azurebackuprestorewithrehydrationrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprestorewithrehydrationrequest.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_azurebackuprestorewithrehydrationrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprestorewithrehydrationrequest.go index 5acc6f36bdd9..1e8e3e860891 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_azurebackuprestorewithrehydrationrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprestorewithrehydrationrequest.go @@ -16,6 +16,7 @@ type AzureBackupRestoreWithRehydrationRequest struct { RehydrationRetentionDuration string `json:"rehydrationRetentionDuration"` // Fields inherited from AzureBackupRestoreRequest + IdentityDetails *IdentityDetails `json:"identityDetails,omitempty"` RestoreTargetInfo RestoreTargetInfoBase `json:"restoreTargetInfo"` SourceDataStoreType SourceDataStoreType `json:"sourceDataStoreType"` SourceResourceId *string `json:"sourceResourceId,omitempty"` @@ -54,6 +55,7 @@ func (s *AzureBackupRestoreWithRehydrationRequest) UnmarshalJSON(bytes []byte) e return fmt.Errorf("unmarshaling into AzureBackupRestoreWithRehydrationRequest: %+v", err) } + s.IdentityDetails = decoded.IdentityDetails s.RecoveryPointId = decoded.RecoveryPointId s.RehydrationPriority = decoded.RehydrationPriority s.RehydrationRetentionDuration = decoded.RehydrationRetentionDuration diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_azureoperationalstoreparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azureoperationalstoreparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_azureoperationalstoreparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azureoperationalstoreparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_backupdatasourceparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_backupdatasourceparameters.go new file mode 100644 index 000000000000..035cc0633ac1 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_backupdatasourceparameters.go @@ -0,0 +1,61 @@ +package backupinstances + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupDatasourceParameters interface { +} + +// RawBackupDatasourceParametersImpl is returned when the Discriminated Value +// doesn't match any of the defined types +// NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) +// and is used only for Deserialization (e.g. this cannot be used as a Request Payload). +type RawBackupDatasourceParametersImpl struct { + Type string + Values map[string]interface{} +} + +func unmarshalBackupDatasourceParametersImplementation(input []byte) (BackupDatasourceParameters, error) { + if input == nil { + return nil, nil + } + + var temp map[string]interface{} + if err := json.Unmarshal(input, &temp); err != nil { + return nil, fmt.Errorf("unmarshaling BackupDatasourceParameters into map[string]interface: %+v", err) + } + + value, ok := temp["objectType"].(string) + if !ok { + return nil, nil + } + + if strings.EqualFold(value, "BlobBackupDatasourceParameters") { + var out BlobBackupDatasourceParameters + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into BlobBackupDatasourceParameters: %+v", err) + } + return out, nil + } + + if strings.EqualFold(value, "KubernetesClusterBackupDatasourceParameters") { + var out KubernetesClusterBackupDatasourceParameters + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into KubernetesClusterBackupDatasourceParameters: %+v", err) + } + return out, nil + } + + out := RawBackupDatasourceParametersImpl{ + Type: value, + Values: temp, + } + return out, nil + +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_backupinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_backupinstance.go similarity index 94% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_backupinstance.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_backupinstance.go index da27fbc8c919..73c49dd68404 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_backupinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_backupinstance.go @@ -14,6 +14,7 @@ type BackupInstance struct { DataSourceSetInfo *DatasourceSet `json:"dataSourceSetInfo,omitempty"` DatasourceAuthCredentials AuthCredentials `json:"datasourceAuthCredentials"` FriendlyName *string `json:"friendlyName,omitempty"` + IdentityDetails *IdentityDetails `json:"identityDetails,omitempty"` ObjectType string `json:"objectType"` PolicyInfo PolicyInfo `json:"policyInfo"` ProtectionErrorDetails *UserFacingError `json:"protectionErrorDetails,omitempty"` @@ -35,6 +36,7 @@ func (s *BackupInstance) UnmarshalJSON(bytes []byte) error { s.DataSourceInfo = decoded.DataSourceInfo s.DataSourceSetInfo = decoded.DataSourceSetInfo s.FriendlyName = decoded.FriendlyName + s.IdentityDetails = decoded.IdentityDetails s.ObjectType = decoded.ObjectType s.PolicyInfo = decoded.PolicyInfo s.ProtectionErrorDetails = decoded.ProtectionErrorDetails diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_backupinstanceresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_backupinstanceresource.go similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_backupinstanceresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_backupinstanceresource.go index 1b4dac59abe2..ca92f651ec68 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_backupinstanceresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_backupinstanceresource.go @@ -12,5 +12,6 @@ type BackupInstanceResource struct { Name *string `json:"name,omitempty"` Properties *BackupInstance `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/dataprotection/2023-05-01/backupinstances/model_baseresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_baseresourceproperties.go new file mode 100644 index 000000000000..fcf079323822 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_baseresourceproperties.go @@ -0,0 +1,53 @@ +package backupinstances + +import ( + "encoding/json" + "fmt" + "strings" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BaseResourceProperties interface { +} + +// RawBaseResourcePropertiesImpl is returned when the Discriminated Value +// doesn't match any of the defined types +// NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) +// and is used only for Deserialization (e.g. this cannot be used as a Request Payload). +type RawBaseResourcePropertiesImpl struct { + Type string + Values map[string]interface{} +} + +func unmarshalBaseResourcePropertiesImplementation(input []byte) (BaseResourceProperties, error) { + if input == nil { + return nil, nil + } + + var temp map[string]interface{} + if err := json.Unmarshal(input, &temp); err != nil { + return nil, fmt.Errorf("unmarshaling BaseResourceProperties into map[string]interface: %+v", err) + } + + value, ok := temp["objectType"].(string) + if !ok { + return nil, nil + } + + if strings.EqualFold(value, "DefaultResourceProperties") { + var out DefaultResourceProperties + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into DefaultResourceProperties: %+v", err) + } + return out, nil + } + + out := RawBaseResourcePropertiesImpl{ + Type: value, + Values: temp, + } + return out, nil + +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_blobbackupdatasourceparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_blobbackupdatasourceparameters.go new file mode 100644 index 000000000000..84f49ead22cc --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_blobbackupdatasourceparameters.go @@ -0,0 +1,41 @@ +package backupinstances + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ BackupDatasourceParameters = BlobBackupDatasourceParameters{} + +type BlobBackupDatasourceParameters struct { + ContainersList []string `json:"containersList"` + + // Fields inherited from BackupDatasourceParameters +} + +var _ json.Marshaler = BlobBackupDatasourceParameters{} + +func (s BlobBackupDatasourceParameters) MarshalJSON() ([]byte, error) { + type wrapper BlobBackupDatasourceParameters + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling BlobBackupDatasourceParameters: %+v", err) + } + + var decoded map[string]interface{} + if err := json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling BlobBackupDatasourceParameters: %+v", err) + } + decoded["objectType"] = "BlobBackupDatasourceParameters" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling BlobBackupDatasourceParameters: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_datasource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_datasource.go new file mode 100644 index 000000000000..a8e07a371175 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_datasource.go @@ -0,0 +1,52 @@ +package backupinstances + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type Datasource struct { + DatasourceType *string `json:"datasourceType,omitempty"` + ObjectType *string `json:"objectType,omitempty"` + ResourceID string `json:"resourceID"` + ResourceLocation *string `json:"resourceLocation,omitempty"` + ResourceName *string `json:"resourceName,omitempty"` + ResourceProperties BaseResourceProperties `json:"resourceProperties"` + ResourceType *string `json:"resourceType,omitempty"` + ResourceUri *string `json:"resourceUri,omitempty"` +} + +var _ json.Unmarshaler = &Datasource{} + +func (s *Datasource) UnmarshalJSON(bytes []byte) error { + type alias Datasource + var decoded alias + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling into Datasource: %+v", err) + } + + s.DatasourceType = decoded.DatasourceType + s.ObjectType = decoded.ObjectType + s.ResourceID = decoded.ResourceID + s.ResourceLocation = decoded.ResourceLocation + s.ResourceName = decoded.ResourceName + s.ResourceType = decoded.ResourceType + s.ResourceUri = decoded.ResourceUri + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling Datasource into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["resourceProperties"]; ok { + impl, err := unmarshalBaseResourcePropertiesImplementation(v) + if err != nil { + return fmt.Errorf("unmarshaling field 'ResourceProperties' for 'Datasource': %+v", err) + } + s.ResourceProperties = impl + } + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_datasourceset.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_datasourceset.go new file mode 100644 index 000000000000..537af263c0b5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_datasourceset.go @@ -0,0 +1,52 @@ +package backupinstances + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DatasourceSet struct { + DatasourceType *string `json:"datasourceType,omitempty"` + ObjectType *string `json:"objectType,omitempty"` + ResourceID string `json:"resourceID"` + ResourceLocation *string `json:"resourceLocation,omitempty"` + ResourceName *string `json:"resourceName,omitempty"` + ResourceProperties BaseResourceProperties `json:"resourceProperties"` + ResourceType *string `json:"resourceType,omitempty"` + ResourceUri *string `json:"resourceUri,omitempty"` +} + +var _ json.Unmarshaler = &DatasourceSet{} + +func (s *DatasourceSet) UnmarshalJSON(bytes []byte) error { + type alias DatasourceSet + var decoded alias + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling into DatasourceSet: %+v", err) + } + + s.DatasourceType = decoded.DatasourceType + s.ObjectType = decoded.ObjectType + s.ResourceID = decoded.ResourceID + s.ResourceLocation = decoded.ResourceLocation + s.ResourceName = decoded.ResourceName + s.ResourceType = decoded.ResourceType + s.ResourceUri = decoded.ResourceUri + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling DatasourceSet into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["resourceProperties"]; ok { + impl, err := unmarshalBaseResourcePropertiesImplementation(v) + if err != nil { + return fmt.Errorf("unmarshaling field 'ResourceProperties' for 'DatasourceSet': %+v", err) + } + s.ResourceProperties = impl + } + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_datastoreparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_datastoreparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_datastoreparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_datastoreparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_defaultresourceproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_defaultresourceproperties.go new file mode 100644 index 000000000000..adac6099d8b0 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_defaultresourceproperties.go @@ -0,0 +1,40 @@ +package backupinstances + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ BaseResourceProperties = DefaultResourceProperties{} + +type DefaultResourceProperties struct { + + // Fields inherited from BaseResourceProperties +} + +var _ json.Marshaler = DefaultResourceProperties{} + +func (s DefaultResourceProperties) MarshalJSON() ([]byte, error) { + type wrapper DefaultResourceProperties + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling DefaultResourceProperties: %+v", err) + } + + var decoded map[string]interface{} + if err := json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling DefaultResourceProperties: %+v", err) + } + decoded["objectType"] = "DefaultResourceProperties" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling DefaultResourceProperties: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_identitydetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_identitydetails.go new file mode 100644 index 000000000000..60ba25422361 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_identitydetails.go @@ -0,0 +1,9 @@ +package backupinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type IdentityDetails struct { + UseSystemAssignedIdentity *bool `json:"useSystemAssignedIdentity,omitempty"` + UserAssignedIdentityArmUrl *string `json:"userAssignedIdentityArmUrl,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_innererror.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_innererror.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_innererror.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_innererror.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_itemlevelrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_itemlevelrestorecriteria.go similarity index 78% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_itemlevelrestorecriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_itemlevelrestorecriteria.go index 9745f3102fea..93d51faea798 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_itemlevelrestorecriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_itemlevelrestorecriteria.go @@ -36,6 +36,22 @@ func unmarshalItemLevelRestoreCriteriaImplementation(input []byte) (ItemLevelRes return nil, nil } + if strings.EqualFold(value, "ItemPathBasedRestoreCriteria") { + var out ItemPathBasedRestoreCriteria + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into ItemPathBasedRestoreCriteria: %+v", err) + } + return out, nil + } + + if strings.EqualFold(value, "KubernetesClusterRestoreCriteria") { + var out KubernetesClusterRestoreCriteria + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into KubernetesClusterRestoreCriteria: %+v", err) + } + return out, nil + } + if strings.EqualFold(value, "KubernetesPVRestoreCriteria") { var out KubernetesPVRestoreCriteria if err := json.Unmarshal(input, &out); err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_itemlevelrestoretargetinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_itemlevelrestoretargetinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_itemlevelrestoretargetinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_itemlevelrestoretargetinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_itempathbasedrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_itempathbasedrestorecriteria.go new file mode 100644 index 000000000000..bd6640be142d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_itempathbasedrestorecriteria.go @@ -0,0 +1,43 @@ +package backupinstances + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ ItemLevelRestoreCriteria = ItemPathBasedRestoreCriteria{} + +type ItemPathBasedRestoreCriteria struct { + IsPathRelativeToBackupItem bool `json:"isPathRelativeToBackupItem"` + ItemPath string `json:"itemPath"` + SubItemPathPrefix *[]string `json:"subItemPathPrefix,omitempty"` + + // Fields inherited from ItemLevelRestoreCriteria +} + +var _ json.Marshaler = ItemPathBasedRestoreCriteria{} + +func (s ItemPathBasedRestoreCriteria) MarshalJSON() ([]byte, error) { + type wrapper ItemPathBasedRestoreCriteria + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling ItemPathBasedRestoreCriteria: %+v", err) + } + + var decoded map[string]interface{} + if err := json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling ItemPathBasedRestoreCriteria: %+v", err) + } + decoded["objectType"] = "ItemPathBasedRestoreCriteria" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling ItemPathBasedRestoreCriteria: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_kubernetesclusterbackupdatasourceparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_kubernetesclusterbackupdatasourceparameters.go new file mode 100644 index 000000000000..021230e39ac3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_kubernetesclusterbackupdatasourceparameters.go @@ -0,0 +1,48 @@ +package backupinstances + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ BackupDatasourceParameters = KubernetesClusterBackupDatasourceParameters{} + +type KubernetesClusterBackupDatasourceParameters struct { + BackupHookReferences *[]NamespacedNameResource `json:"backupHookReferences,omitempty"` + ExcludedNamespaces *[]string `json:"excludedNamespaces,omitempty"` + ExcludedResourceTypes *[]string `json:"excludedResourceTypes,omitempty"` + IncludeClusterScopeResources bool `json:"includeClusterScopeResources"` + IncludedNamespaces *[]string `json:"includedNamespaces,omitempty"` + IncludedResourceTypes *[]string `json:"includedResourceTypes,omitempty"` + LabelSelectors *[]string `json:"labelSelectors,omitempty"` + SnapshotVolumes bool `json:"snapshotVolumes"` + + // Fields inherited from BackupDatasourceParameters +} + +var _ json.Marshaler = KubernetesClusterBackupDatasourceParameters{} + +func (s KubernetesClusterBackupDatasourceParameters) MarshalJSON() ([]byte, error) { + type wrapper KubernetesClusterBackupDatasourceParameters + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling KubernetesClusterBackupDatasourceParameters: %+v", err) + } + + var decoded map[string]interface{} + if err := json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling KubernetesClusterBackupDatasourceParameters: %+v", err) + } + decoded["objectType"] = "KubernetesClusterBackupDatasourceParameters" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling KubernetesClusterBackupDatasourceParameters: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_kubernetesclusterrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_kubernetesclusterrestorecriteria.go new file mode 100644 index 000000000000..070030fbbe02 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_kubernetesclusterrestorecriteria.go @@ -0,0 +1,50 @@ +package backupinstances + +import ( + "encoding/json" + "fmt" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +var _ ItemLevelRestoreCriteria = KubernetesClusterRestoreCriteria{} + +type KubernetesClusterRestoreCriteria struct { + ConflictPolicy *ExistingResourcePolicy `json:"conflictPolicy,omitempty"` + ExcludedNamespaces *[]string `json:"excludedNamespaces,omitempty"` + ExcludedResourceTypes *[]string `json:"excludedResourceTypes,omitempty"` + IncludeClusterScopeResources bool `json:"includeClusterScopeResources"` + IncludedNamespaces *[]string `json:"includedNamespaces,omitempty"` + IncludedResourceTypes *[]string `json:"includedResourceTypes,omitempty"` + LabelSelectors *[]string `json:"labelSelectors,omitempty"` + NamespaceMappings *map[string]string `json:"namespaceMappings,omitempty"` + PersistentVolumeRestoreMode *PersistentVolumeRestoreMode `json:"persistentVolumeRestoreMode,omitempty"` + RestoreHookReferences *[]NamespacedNameResource `json:"restoreHookReferences,omitempty"` + + // Fields inherited from ItemLevelRestoreCriteria +} + +var _ json.Marshaler = KubernetesClusterRestoreCriteria{} + +func (s KubernetesClusterRestoreCriteria) MarshalJSON() ([]byte, error) { + type wrapper KubernetesClusterRestoreCriteria + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling KubernetesClusterRestoreCriteria: %+v", err) + } + + var decoded map[string]interface{} + if err := json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling KubernetesClusterRestoreCriteria: %+v", err) + } + decoded["objectType"] = "KubernetesClusterRestoreCriteria" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling KubernetesClusterRestoreCriteria: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_kubernetespvrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_kubernetespvrestorecriteria.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_kubernetespvrestorecriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_kubernetespvrestorecriteria.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_kubernetesstorageclassrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_kubernetesstorageclassrestorecriteria.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_kubernetesstorageclassrestorecriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_kubernetesstorageclassrestorecriteria.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_namespacednameresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_namespacednameresource.go new file mode 100644 index 000000000000..f0c6e7a847c9 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_namespacednameresource.go @@ -0,0 +1,9 @@ +package backupinstances + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type NamespacedNameResource struct { + Name *string `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_operationextendedinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_operationextendedinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_operationextendedinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_operationextendedinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_operationjobextendedinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_operationjobextendedinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_operationjobextendedinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_operationjobextendedinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_policyinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_policyinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_policyinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_policyinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_policyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_policyparameters.go similarity index 57% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_policyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_policyparameters.go index 8116d662aa2e..ba00f440ca81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_policyparameters.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_policyparameters.go @@ -9,7 +9,8 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type PolicyParameters struct { - DataStoreParametersList *[]DataStoreParameters `json:"dataStoreParametersList,omitempty"` + BackupDatasourceParametersList *[]BackupDatasourceParameters `json:"backupDatasourceParametersList,omitempty"` + DataStoreParametersList *[]DataStoreParameters `json:"dataStoreParametersList,omitempty"` } var _ json.Unmarshaler = &PolicyParameters{} @@ -21,6 +22,23 @@ func (s *PolicyParameters) UnmarshalJSON(bytes []byte) error { return fmt.Errorf("unmarshaling PolicyParameters into map[string]json.RawMessage: %+v", err) } + if v, ok := temp["backupDatasourceParametersList"]; ok { + var listTemp []json.RawMessage + if err := json.Unmarshal(v, &listTemp); err != nil { + return fmt.Errorf("unmarshaling BackupDatasourceParametersList into list []json.RawMessage: %+v", err) + } + + output := make([]BackupDatasourceParameters, 0) + for i, val := range listTemp { + impl, err := unmarshalBackupDatasourceParametersImplementation(val) + if err != nil { + return fmt.Errorf("unmarshaling index %d field 'BackupDatasourceParametersList' for 'PolicyParameters': %+v", i, err) + } + output = append(output, impl) + } + s.BackupDatasourceParametersList = &output + } + if v, ok := temp["dataStoreParametersList"]; ok { var listTemp []json.RawMessage if err := json.Unmarshal(v, &listTemp); err != nil { diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_protectionstatusdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_protectionstatusdetails.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_protectionstatusdetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_protectionstatusdetails.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_rangebaseditemlevelrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_rangebaseditemlevelrestorecriteria.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_rangebaseditemlevelrestorecriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_rangebaseditemlevelrestorecriteria.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_restorefilestargetinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_restorefilestargetinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_restorefilestargetinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_restorefilestargetinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_restoretargetinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_restoretargetinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_restoretargetinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_restoretargetinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_restoretargetinfobase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_restoretargetinfobase.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_restoretargetinfobase.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_restoretargetinfobase.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_secretstorebasedauthcredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_secretstorebasedauthcredentials.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_secretstorebasedauthcredentials.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_secretstorebasedauthcredentials.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_secretstoreresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_secretstoreresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_secretstoreresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_secretstoreresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_syncbackupinstancerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_syncbackupinstancerequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_syncbackupinstancerequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_syncbackupinstancerequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_targetdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_targetdetails.go similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_targetdetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_targetdetails.go index 78ddf484ca03..321cf422bffb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_targetdetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_targetdetails.go @@ -6,5 +6,6 @@ package backupinstances type TargetDetails struct { FilePrefix string `json:"filePrefix"` RestoreTargetLocationType RestoreTargetLocationType `json:"restoreTargetLocationType"` + TargetResourceArmId *string `json:"targetResourceArmId,omitempty"` Url string `json:"url"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_triggerbackuprequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_triggerbackuprequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_triggerbackuprequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_triggerbackuprequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_userfacingerror.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_userfacingerror.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_userfacingerror.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_userfacingerror.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_validateforbackuprequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_validateforbackuprequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_validateforbackuprequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_validateforbackuprequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_validaterestorerequestobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_validaterestorerequestobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/model_validaterestorerequestobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_validaterestorerequestobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/version.go index 0d7abfc24d20..dafd8149aa5c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/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 = "2022-04-01" +const defaultApiVersion = "2023-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/backupinstances/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/README.md index 58e2443288c2..64ae79b864cb 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies` Documentation -The `backuppolicies` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2022-04-01`). +The `backuppolicies` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2023-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/dataprotection/2022-04-01/backuppolicies" +import "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/id_backuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/id_backuppolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/id_backuppolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/id_backuppolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/id_backupvault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/id_backupvault.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/id_backupvault.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/id_backupvault.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_absolutedeleteoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_absolutedeleteoption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_absolutedeleteoption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_absolutedeleteoption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_adhocbasedtaggingcriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_adhocbasedtaggingcriteria.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_adhocbasedtaggingcriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_adhocbasedtaggingcriteria.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_adhocbasedtriggercontext.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_adhocbasedtriggercontext.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_adhocbasedtriggercontext.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_adhocbasedtriggercontext.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_azurebackupparams.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_azurebackupparams.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_azurebackupparams.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_azurebackupparams.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_azurebackuprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_azurebackuprule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_azurebackuprule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_azurebackuprule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_azureretentionrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_azureretentionrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_azureretentionrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_azureretentionrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_backupcriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_backupcriteria.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_backupcriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_backupcriteria.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_backupparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_backupparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_backupparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_backupparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_backuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_backuppolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_backuppolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_backuppolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_backupschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_backupschedule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_backupschedule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_backupschedule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_basebackuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_basebackuppolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_basebackuppolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_basebackuppolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_basebackuppolicyresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_basebackuppolicyresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_basebackuppolicyresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_basebackuppolicyresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_basepolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_basepolicyrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_basepolicyrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_basepolicyrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_copyonexpiryoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_copyonexpiryoption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_copyonexpiryoption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_copyonexpiryoption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_copyoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_copyoption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_copyoption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_copyoption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_customcopyoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_customcopyoption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_customcopyoption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_customcopyoption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_datastoreinfobase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_datastoreinfobase.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_datastoreinfobase.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_datastoreinfobase.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_day.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_day.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_day.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_day.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_deleteoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_deleteoption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_deleteoption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_deleteoption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_immediatecopyoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_immediatecopyoption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_immediatecopyoption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_immediatecopyoption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_retentiontag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_retentiontag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_retentiontag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_retentiontag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_schedulebasedbackupcriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_schedulebasedbackupcriteria.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_schedulebasedbackupcriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_schedulebasedbackupcriteria.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_schedulebasedtriggercontext.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_schedulebasedtriggercontext.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_schedulebasedtriggercontext.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_schedulebasedtriggercontext.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_sourcelifecycle.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_sourcelifecycle.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_sourcelifecycle.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_sourcelifecycle.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_taggingcriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_taggingcriteria.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_taggingcriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_taggingcriteria.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_targetcopysetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_targetcopysetting.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_targetcopysetting.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_targetcopysetting.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_triggercontext.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_triggercontext.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/model_triggercontext.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_triggercontext.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/version.go index 223dba72da37..57a8657aa9e0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/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 = "2022-04-01" +const defaultApiVersion = "2023-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/backuppolicies/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/README.md similarity index 91% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/README.md index 455aff5be839..763999cdd81d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults` Documentation -The `backupvaults` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2022-04-01`). +The `backupvaults` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2023-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/dataprotection/2022-04-01/backupvaults" +import "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults" ``` @@ -64,13 +64,9 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ctx := context.TODO() id := backupvaults.NewBackupVaultID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue") -read, err := client.Delete(ctx, id) -if err != nil { +if err := client.DeleteThenPoll(ctx, id); err != nil { // handle the error } -if model := read.Model; model != nil { - // do something with the model/response object -} ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/constants.go similarity index 50% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/constants.go index 594288b9b558..87272e92a796 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/constants.go @@ -50,6 +50,135 @@ func parseAlertsState(input string) (*AlertsState, error) { return &out, nil } +type CrossRegionRestoreState string + +const ( + CrossRegionRestoreStateDisabled CrossRegionRestoreState = "Disabled" + CrossRegionRestoreStateEnabled CrossRegionRestoreState = "Enabled" +) + +func PossibleValuesForCrossRegionRestoreState() []string { + return []string{ + string(CrossRegionRestoreStateDisabled), + string(CrossRegionRestoreStateEnabled), + } +} + +func (s *CrossRegionRestoreState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCrossRegionRestoreState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCrossRegionRestoreState(input string) (*CrossRegionRestoreState, error) { + vals := map[string]CrossRegionRestoreState{ + "disabled": CrossRegionRestoreStateDisabled, + "enabled": CrossRegionRestoreStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CrossRegionRestoreState(input) + return &out, nil +} + +type CrossSubscriptionRestoreState string + +const ( + CrossSubscriptionRestoreStateDisabled CrossSubscriptionRestoreState = "Disabled" + CrossSubscriptionRestoreStateEnabled CrossSubscriptionRestoreState = "Enabled" + CrossSubscriptionRestoreStatePermanentlyDisabled CrossSubscriptionRestoreState = "PermanentlyDisabled" +) + +func PossibleValuesForCrossSubscriptionRestoreState() []string { + return []string{ + string(CrossSubscriptionRestoreStateDisabled), + string(CrossSubscriptionRestoreStateEnabled), + string(CrossSubscriptionRestoreStatePermanentlyDisabled), + } +} + +func (s *CrossSubscriptionRestoreState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseCrossSubscriptionRestoreState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseCrossSubscriptionRestoreState(input string) (*CrossSubscriptionRestoreState, error) { + vals := map[string]CrossSubscriptionRestoreState{ + "disabled": CrossSubscriptionRestoreStateDisabled, + "enabled": CrossSubscriptionRestoreStateEnabled, + "permanentlydisabled": CrossSubscriptionRestoreStatePermanentlyDisabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := CrossSubscriptionRestoreState(input) + return &out, nil +} + +type ImmutabilityState string + +const ( + ImmutabilityStateDisabled ImmutabilityState = "Disabled" + ImmutabilityStateLocked ImmutabilityState = "Locked" + ImmutabilityStateUnlocked ImmutabilityState = "Unlocked" +) + +func PossibleValuesForImmutabilityState() []string { + return []string{ + string(ImmutabilityStateDisabled), + string(ImmutabilityStateLocked), + string(ImmutabilityStateUnlocked), + } +} + +func (s *ImmutabilityState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseImmutabilityState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseImmutabilityState(input string) (*ImmutabilityState, error) { + vals := map[string]ImmutabilityState{ + "disabled": ImmutabilityStateDisabled, + "locked": ImmutabilityStateLocked, + "unlocked": ImmutabilityStateUnlocked, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := ImmutabilityState(input) + return &out, nil +} + type ProvisioningState string const ( @@ -165,18 +294,112 @@ func parseResourceMoveState(input string) (*ResourceMoveState, error) { return &out, nil } +type SecureScoreLevel string + +const ( + SecureScoreLevelAdequate SecureScoreLevel = "Adequate" + SecureScoreLevelMaximum SecureScoreLevel = "Maximum" + SecureScoreLevelMinimum SecureScoreLevel = "Minimum" + SecureScoreLevelNone SecureScoreLevel = "None" + SecureScoreLevelNotSupported SecureScoreLevel = "NotSupported" +) + +func PossibleValuesForSecureScoreLevel() []string { + return []string{ + string(SecureScoreLevelAdequate), + string(SecureScoreLevelMaximum), + string(SecureScoreLevelMinimum), + string(SecureScoreLevelNone), + string(SecureScoreLevelNotSupported), + } +} + +func (s *SecureScoreLevel) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSecureScoreLevel(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSecureScoreLevel(input string) (*SecureScoreLevel, error) { + vals := map[string]SecureScoreLevel{ + "adequate": SecureScoreLevelAdequate, + "maximum": SecureScoreLevelMaximum, + "minimum": SecureScoreLevelMinimum, + "none": SecureScoreLevelNone, + "notsupported": SecureScoreLevelNotSupported, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SecureScoreLevel(input) + return &out, nil +} + +type SoftDeleteState string + +const ( + SoftDeleteStateAlwaysOn SoftDeleteState = "AlwaysOn" + SoftDeleteStateOff SoftDeleteState = "Off" + SoftDeleteStateOn SoftDeleteState = "On" +) + +func PossibleValuesForSoftDeleteState() []string { + return []string{ + string(SoftDeleteStateAlwaysOn), + string(SoftDeleteStateOff), + string(SoftDeleteStateOn), + } +} + +func (s *SoftDeleteState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseSoftDeleteState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseSoftDeleteState(input string) (*SoftDeleteState, error) { + vals := map[string]SoftDeleteState{ + "alwayson": SoftDeleteStateAlwaysOn, + "off": SoftDeleteStateOff, + "on": SoftDeleteStateOn, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := SoftDeleteState(input) + return &out, nil +} + type StorageSettingStoreTypes string const ( - StorageSettingStoreTypesArchiveStore StorageSettingStoreTypes = "ArchiveStore" - StorageSettingStoreTypesSnapshotStore StorageSettingStoreTypes = "SnapshotStore" - StorageSettingStoreTypesVaultStore StorageSettingStoreTypes = "VaultStore" + StorageSettingStoreTypesArchiveStore StorageSettingStoreTypes = "ArchiveStore" + StorageSettingStoreTypesOperationalStore StorageSettingStoreTypes = "OperationalStore" + StorageSettingStoreTypesVaultStore StorageSettingStoreTypes = "VaultStore" ) func PossibleValuesForStorageSettingStoreTypes() []string { return []string{ string(StorageSettingStoreTypesArchiveStore), - string(StorageSettingStoreTypesSnapshotStore), + string(StorageSettingStoreTypesOperationalStore), string(StorageSettingStoreTypesVaultStore), } } @@ -196,9 +419,9 @@ func (s *StorageSettingStoreTypes) UnmarshalJSON(bytes []byte) error { func parseStorageSettingStoreTypes(input string) (*StorageSettingStoreTypes, error) { vals := map[string]StorageSettingStoreTypes{ - "archivestore": StorageSettingStoreTypesArchiveStore, - "snapshotstore": StorageSettingStoreTypesSnapshotStore, - "vaultstore": StorageSettingStoreTypesVaultStore, + "archivestore": StorageSettingStoreTypesArchiveStore, + "operationalstore": StorageSettingStoreTypesOperationalStore, + "vaultstore": StorageSettingStoreTypesVaultStore, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil @@ -214,12 +437,14 @@ type StorageSettingTypes string const ( StorageSettingTypesGeoRedundant StorageSettingTypes = "GeoRedundant" StorageSettingTypesLocallyRedundant StorageSettingTypes = "LocallyRedundant" + StorageSettingTypesZoneRedundant StorageSettingTypes = "ZoneRedundant" ) func PossibleValuesForStorageSettingTypes() []string { return []string{ string(StorageSettingTypesGeoRedundant), string(StorageSettingTypesLocallyRedundant), + string(StorageSettingTypesZoneRedundant), } } @@ -240,6 +465,7 @@ func parseStorageSettingTypes(input string) (*StorageSettingTypes, error) { vals := map[string]StorageSettingTypes{ "georedundant": StorageSettingTypesGeoRedundant, "locallyredundant": StorageSettingTypesLocallyRedundant, + "zoneredundant": StorageSettingTypesZoneRedundant, } if v, ok := vals[strings.ToLower(input)]; ok { return &v, nil diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/id_backupvault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/id_backupvault.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/id_backupvault.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/id_backupvault.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/id_providerlocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/id_providerlocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/id_providerlocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_checknameavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/method_checknameavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_checknameavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_delete.go similarity index 61% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_delete.go index 6a4f4f56cbf9..6899d5db8149 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_delete.go @@ -2,9 +2,12 @@ package backupvaults import ( "context" + "fmt" "net/http" "github.com/hashicorp/go-azure-sdk/sdk/client" + "github.com/hashicorp/go-azure-sdk/sdk/client/pollers" + "github.com/hashicorp/go-azure-sdk/sdk/client/resourcemanager" "github.com/hashicorp/go-azure-sdk/sdk/odata" ) @@ -12,6 +15,7 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type DeleteOperationResponse struct { + Poller pollers.Poller HttpResponse *http.Response OData *odata.OData } @@ -44,5 +48,24 @@ func (c BackupVaultsClient) Delete(ctx context.Context, id BackupVaultId) (resul return } + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + return } + +// DeleteThenPoll performs Delete then polls until it's completed +func (c BackupVaultsClient) DeleteThenPoll(ctx context.Context, id BackupVaultId) error { + result, err := c.Delete(ctx, id) + if err != nil { + return fmt.Errorf("performing Delete: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after Delete: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/method_getinresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_getinresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/method_getinresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_getinresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/method_getinsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_getinsubscription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/method_getinsubscription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_getinsubscription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_update.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_update.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_azuremonitoralertsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_azuremonitoralertsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_azuremonitoralertsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_azuremonitoralertsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_backupvault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_backupvault.go new file mode 100644 index 000000000000..36e30b2dca5a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_backupvault.go @@ -0,0 +1,16 @@ +package backupvaults + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type BackupVault struct { + FeatureSettings *FeatureSettings `json:"featureSettings,omitempty"` + IsVaultProtectedByResourceGuard *bool `json:"isVaultProtectedByResourceGuard,omitempty"` + MonitoringSettings *MonitoringSettings `json:"monitoringSettings,omitempty"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ResourceMoveDetails *ResourceMoveDetails `json:"resourceMoveDetails,omitempty"` + ResourceMoveState *ResourceMoveState `json:"resourceMoveState,omitempty"` + SecureScore *SecureScoreLevel `json:"secureScore,omitempty"` + SecuritySettings *SecuritySettings `json:"securitySettings,omitempty"` + StorageSettings []StorageSetting `json:"storageSettings"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_backupvaultresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_backupvaultresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_backupvaultresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_backupvaultresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_checknameavailabilityrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_checknameavailabilityrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_checknameavailabilityrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_checknameavailabilityrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_checknameavailabilityresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_checknameavailabilityresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_checknameavailabilityresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_checknameavailabilityresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_azuremonitoralertsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_crossregionrestoresettings.go similarity index 52% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_azuremonitoralertsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_crossregionrestoresettings.go index 5da5f5599b66..71637991bdd2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_azuremonitoralertsettings.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_crossregionrestoresettings.go @@ -1,8 +1,8 @@ -package resourceguards +package backupvaults // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type AzureMonitorAlertSettings struct { - AlertsForAllJobFailures *AlertsState `json:"alertsForAllJobFailures,omitempty"` +type CrossRegionRestoreSettings struct { + State *CrossRegionRestoreState `json:"state,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_crosssubscriptionrestoresettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_crosssubscriptionrestoresettings.go new file mode 100644 index 000000000000..0e8ba93d0821 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_crosssubscriptionrestoresettings.go @@ -0,0 +1,8 @@ +package backupvaults + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type CrossSubscriptionRestoreSettings struct { + State *CrossSubscriptionRestoreState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_dppidentitydetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_dppidentitydetails.go new file mode 100644 index 000000000000..88294a548cd6 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_dppidentitydetails.go @@ -0,0 +1,11 @@ +package backupvaults + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type DppIdentityDetails struct { + PrincipalId *string `json:"principalId,omitempty"` + TenantId *string `json:"tenantId,omitempty"` + Type *string `json:"type,omitempty"` + UserAssignedIdentities *map[string]UserAssignedIdentity `json:"userAssignedIdentities,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_featuresettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_featuresettings.go new file mode 100644 index 000000000000..c8981f793c38 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_featuresettings.go @@ -0,0 +1,9 @@ +package backupvaults + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type FeatureSettings struct { + CrossRegionRestoreSettings *CrossRegionRestoreSettings `json:"crossRegionRestoreSettings,omitempty"` + CrossSubscriptionRestoreSettings *CrossSubscriptionRestoreSettings `json:"crossSubscriptionRestoreSettings,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_immutabilitysettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_immutabilitysettings.go new file mode 100644 index 000000000000..1e8bb471362d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_immutabilitysettings.go @@ -0,0 +1,8 @@ +package backupvaults + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ImmutabilitySettings struct { + State *ImmutabilityState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_monitoringsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_monitoringsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_monitoringsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_monitoringsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_patchbackupvaultinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_patchbackupvaultinput.go similarity index 66% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_patchbackupvaultinput.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_patchbackupvaultinput.go index 5695dea6c1b7..217d3bf07f67 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_patchbackupvaultinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_patchbackupvaultinput.go @@ -4,5 +4,7 @@ package backupvaults // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type PatchBackupVaultInput struct { + FeatureSettings *FeatureSettings `json:"featureSettings,omitempty"` MonitoringSettings *MonitoringSettings `json:"monitoringSettings,omitempty"` + SecuritySettings *SecuritySettings `json:"securitySettings,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_patchresourcerequestinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_patchresourcerequestinput.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_patchresourcerequestinput.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_patchresourcerequestinput.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_resourcemovedetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_resourcemovedetails.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_resourcemovedetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_resourcemovedetails.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_securitysettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_securitysettings.go new file mode 100644 index 000000000000..f16b74e6a449 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_securitysettings.go @@ -0,0 +1,9 @@ +package backupvaults + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SecuritySettings struct { + ImmutabilitySettings *ImmutabilitySettings `json:"immutabilitySettings,omitempty"` + SoftDeleteSettings *SoftDeleteSettings `json:"softDeleteSettings,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_softdeletesettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_softdeletesettings.go new file mode 100644 index 000000000000..903e8180d146 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_softdeletesettings.go @@ -0,0 +1,9 @@ +package backupvaults + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type SoftDeleteSettings struct { + RetentionDurationInDays *float64 `json:"retentionDurationInDays,omitempty"` + State *SoftDeleteState `json:"state,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_storagesetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_storagesetting.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_storagesetting.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_storagesetting.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_dppidentitydetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_userassignedidentity.go similarity index 64% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_dppidentitydetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_userassignedidentity.go index d9ebcf5d4169..25716effc207 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/model_dppidentitydetails.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_userassignedidentity.go @@ -3,8 +3,7 @@ package backupvaults // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type DppIdentityDetails struct { +type UserAssignedIdentity struct { + ClientId *string `json:"clientId,omitempty"` PrincipalId *string `json:"principalId,omitempty"` - TenantId *string `json:"tenantId,omitempty"` - Type *string `json:"type,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/version.go index f489aea6fa6a..4f9316699c26 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/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 = "2022-04-01" +const defaultApiVersion = "2023-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/backupvaults/%s", defaultApiVersion) diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/README.md similarity index 97% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/README.md index d443f1183e44..9e688bb79a40 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards` Documentation -The `resourceguards` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2022-04-01`). +The `resourceguards` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2023-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/dataprotection/2022-04-01/resourceguards" +import "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards" ``` @@ -290,7 +290,7 @@ for _, item := range items { ctx := context.TODO() id := resourceguards.NewResourceGuardID("12345678-1234-9876-4563-123456789012", "example-resource-group", "resourceGuardValue") -payload := resourceguards.PatchResourceRequestInput{ +payload := resourceguards.PatchResourceGuardInput{ // ... } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/constants.go similarity index 64% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/constants.go index 2bcf06a816ad..883176c506ae 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/constants.go @@ -9,47 +9,6 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type AlertsState string - -const ( - AlertsStateDisabled AlertsState = "Disabled" - AlertsStateEnabled AlertsState = "Enabled" -) - -func PossibleValuesForAlertsState() []string { - return []string{ - string(AlertsStateDisabled), - string(AlertsStateEnabled), - } -} - -func (s *AlertsState) UnmarshalJSON(bytes []byte) error { - var decoded string - if err := json.Unmarshal(bytes, &decoded); err != nil { - return fmt.Errorf("unmarshaling: %+v", err) - } - out, err := parseAlertsState(decoded) - if err != nil { - return fmt.Errorf("parsing %q: %+v", decoded, err) - } - *s = *out - return nil -} - -func parseAlertsState(input string) (*AlertsState, error) { - vals := map[string]AlertsState{ - "disabled": AlertsStateDisabled, - "enabled": AlertsStateEnabled, - } - if v, ok := vals[strings.ToLower(input)]; ok { - return &v, nil - } - - // otherwise presume it's an undefined value and best-effort it - out := AlertsState(input) - return &out, nil -} - type ProvisioningState string const ( diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/id_deleteprotecteditemrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_deleteprotecteditemrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/id_deleteprotecteditemrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_deleteprotecteditemrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/id_deleteresourceguardproxyrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_deleteresourceguardproxyrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/id_deleteresourceguardproxyrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_deleteresourceguardproxyrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/id_disablesoftdeleterequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_disablesoftdeleterequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/id_disablesoftdeleterequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_disablesoftdeleterequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/id_getbackupsecuritypinrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_getbackupsecuritypinrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/id_getbackupsecuritypinrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_getbackupsecuritypinrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/id_resourceguard.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_resourceguard.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/id_resourceguard.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_resourceguard.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/id_updateprotecteditemrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_updateprotecteditemrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/id_updateprotecteditemrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_updateprotecteditemrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/id_updateprotectionpolicyrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_updateprotectionpolicyrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/id_updateprotectionpolicyrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_updateprotectionpolicyrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdefaultbackupsecuritypinrequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultbackupsecuritypinrequestsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdefaultbackupsecuritypinrequestsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultbackupsecuritypinrequestsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdefaultdeleteprotecteditemrequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultdeleteprotecteditemrequestsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdefaultdeleteprotecteditemrequestsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultdeleteprotecteditemrequestsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdefaultdeleteresourceguardproxyrequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultdeleteresourceguardproxyrequestsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdefaultdeleteresourceguardproxyrequestsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultdeleteresourceguardproxyrequestsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdefaultdisablesoftdeleterequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultdisablesoftdeleterequestsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdefaultdisablesoftdeleterequestsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultdisablesoftdeleterequestsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdefaultupdateprotecteditemrequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultupdateprotecteditemrequestsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdefaultupdateprotecteditemrequestsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultupdateprotecteditemrequestsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdefaultupdateprotectionpolicyrequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultupdateprotectionpolicyrequestsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdefaultupdateprotectionpolicyrequestsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultupdateprotectionpolicyrequestsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getresourcesinresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getresourcesinresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getresourcesinresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getresourcesinresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getresourcesinsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getresourcesinsubscription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getresourcesinsubscription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getresourcesinsubscription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_patch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_patch.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_patch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_patch.go index a4c29ccf84ee..c7192b6e4680 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_patch.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_patch.go @@ -18,7 +18,7 @@ type PatchOperationResponse struct { } // Patch ... -func (c ResourceGuardsClient) Patch(ctx context.Context, id ResourceGuardId, input PatchResourceRequestInput) (result PatchOperationResponse, err error) { +func (c ResourceGuardsClient) Patch(ctx context.Context, id ResourceGuardId, input PatchResourceGuardInput) (result PatchOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_put.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_put.go similarity index 98% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_put.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_put.go index bcfb34fc0c6c..8230641592c9 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/method_put.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_put.go @@ -22,6 +22,7 @@ func (c ResourceGuardsClient) Put(ctx context.Context, id ResourceGuardId, input opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ + http.StatusCreated, http.StatusOK, }, HttpMethod: http.MethodPut, diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_dppbaseresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_dppbaseresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_dppbaseresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_dppbaseresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_patchbackupvaultinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_patchresourceguardinput.go similarity index 61% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_patchbackupvaultinput.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_patchresourceguardinput.go index 0261097709c3..f1fedc23f9b0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_patchbackupvaultinput.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_patchresourceguardinput.go @@ -3,6 +3,6 @@ package resourceguards // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type PatchBackupVaultInput struct { - MonitoringSettings *MonitoringSettings `json:"monitoringSettings,omitempty"` +type PatchResourceGuardInput struct { + Tags *map[string]string `json:"tags,omitempty"` } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_resourceguard.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_resourceguard.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_resourceguard.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_resourceguard.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_resourceguardoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_resourceguardoperation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_resourceguardoperation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_resourceguardoperation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_resourceguardresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_resourceguardresource.go similarity index 92% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_resourceguardresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_resourceguardresource.go index 1010f105ba4f..165080176294 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/model_resourceguardresource.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_resourceguardresource.go @@ -10,7 +10,6 @@ import ( type ResourceGuardResource struct { ETag *string `json:"eTag,omitempty"` Id *string `json:"id,omitempty"` - Identity *DppIdentityDetails `json:"identity,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *ResourceGuard `json:"properties,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/version.go index 97bbced95bdc..45497b87c082 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/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 = "2022-04-01" +const defaultApiVersion = "2023-05-01" func userAgent() string { return fmt.Sprintf("hashicorp/go-azure-sdk/resourceguards/%s", defaultApiVersion) diff --git a/vendor/modules.txt b/vendor/modules.txt index cfe587e2c8d9..89ea821def60 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -397,10 +397,10 @@ github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/manage github.com/hashicorp/go-azure-sdk/resource-manager/datafactory/2018-06-01/managedvirtualnetworks github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/projectresource github.com/hashicorp/go-azure-sdk/resource-manager/datamigration/2018-04-19/serviceresource -github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupinstances -github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backuppolicies -github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/backupvaults -github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2022-04-01/resourceguards +github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances +github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies +github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults +github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/account github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/dataset github.com/hashicorp/go-azure-sdk/resource-manager/datashare/2019-11-01/share diff --git a/website/docs/r/data_protection_backup_vault.html.markdown b/website/docs/r/data_protection_backup_vault.html.markdown index ed68234ad828..d14311865d5e 100644 --- a/website/docs/r/data_protection_backup_vault.html.markdown +++ b/website/docs/r/data_protection_backup_vault.html.markdown @@ -37,7 +37,9 @@ The following arguments are supported: * `location` - (Required) The Azure Region where the Backup Vault should exist. Changing this forces a new Backup Vault to be created. -* `datastore_type` - (Required) Specifies the type of the data store. Possible values are `ArchiveStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. +* `datastore_type` - (Required) Specifies the type of the data store. Possible values are `ArchiveStore`, `OperationalStore`, `SnapshotStore` and `VaultStore`. Changing this forces a new resource to be created. + +-> **Note:** The `SnapshotStore` will be removed in version 4.0 as it has been replaced by `OperationalStore`. * `redundancy` - (Required) Specifies the backup storage redundancy. Possible values are `GeoRedundant` and `LocallyRedundant`. Changing this forces a new Backup Vault to be created.