diff --git a/internal/services/dataprotection/azurerm_data_protection_backup_policy_kubernetes_cluster_resource.go b/internal/services/dataprotection/azurerm_data_protection_backup_policy_kubernetes_cluster_resource.go index 3073a7392555..2b3db94bbd11 100644 --- a/internal/services/dataprotection/azurerm_data_protection_backup_policy_kubernetes_cluster_resource.go +++ b/internal/services/dataprotection/azurerm_data_protection_backup_policy_kubernetes_cluster_resource.go @@ -13,7 +13,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/2023-05-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies" "github.com/hashicorp/terraform-provider-azurerm/helpers/validate" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" "github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk" diff --git a/internal/services/dataprotection/azurerm_data_protection_backup_policy_kubernetes_cluster_resource_test.go b/internal/services/dataprotection/azurerm_data_protection_backup_policy_kubernetes_cluster_resource_test.go index 9ada9a330186..3e38f78d196a 100644 --- a/internal/services/dataprotection/azurerm_data_protection_backup_policy_kubernetes_cluster_resource_test.go +++ b/internal/services/dataprotection/azurerm_data_protection_backup_policy_kubernetes_cluster_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/2023-05-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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/client/client.go b/internal/services/dataprotection/client/client.go index ff4c54af734e..5b9ad9c98940 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/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/dataprotection/2024-04-01/backupinstances" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 70772091c900..b4464347ea21 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/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/2024-04-01/backupinstances" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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" @@ -124,7 +124,7 @@ func resourceDataProtectionBackupInstanceBlobStorageCreateUpdate(d *schema.Resou }, } - if err := client.CreateOrUpdateThenPoll(ctx, id, parameters); err != nil { + if err := client.CreateOrUpdateThenPoll(ctx, id, parameters, backupinstances.DefaultCreateOrUpdateOperationOptions()); err != nil { return fmt.Errorf("creating/updating DataProtection BackupInstance (%q): %+v", id, err) } @@ -190,7 +190,7 @@ func resourceDataProtectionBackupInstanceBlobStorageDelete(d *schema.ResourceDat return err } - err = client.DeleteThenPoll(ctx, *id) + err = client.DeleteThenPoll(ctx, *id, backupinstances.DefaultDeleteOperationOptions()) if err != nil { return fmt.Errorf("deleting %s: %+v", *id, err) } 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 f23b73ca1c9b..e4b3144b5ace 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/2023-05-01/backupinstances" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 7dba6253603d..b5bd8caeec44 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/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/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/2024-04-01/backupinstances" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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" @@ -136,7 +136,7 @@ func resourceDataProtectionBackupInstanceDiskCreateUpdate(d *schema.ResourceData }, } - if err := client.CreateOrUpdateThenPoll(ctx, id, parameters); err != nil { + if err := client.CreateOrUpdateThenPoll(ctx, id, parameters, backupinstances.DefaultCreateOrUpdateOperationOptions()); err != nil { return fmt.Errorf("creating/updating DataProtection BackupInstance (%q): %+v", id, err) } @@ -215,7 +215,7 @@ func resourceDataProtectionBackupInstanceDiskDelete(d *schema.ResourceData, meta return err } - err = client.DeleteThenPoll(ctx, *id) + err = client.DeleteThenPoll(ctx, *id, backupinstances.DefaultDeleteOperationOptions()) if err != nil { return fmt.Errorf("deleting DataProtection BackupInstance (%q): %+v", id, err) } 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 9e1db88af854..7da0752205c5 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/2023-05-01/backupinstances" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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_kubernetes_cluster_resource.go b/internal/services/dataprotection/data_protection_backup_instance_kubernetes_cluster_resource.go index 2debf0ed0ab9..ae473c8abe36 100644 --- a/internal/services/dataprotection/data_protection_backup_instance_kubernetes_cluster_resource.go +++ b/internal/services/dataprotection/data_protection_backup_instance_kubernetes_cluster_resource.go @@ -13,8 +13,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/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/2024-04-01/backupinstances" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-provider-azurerm/internal/sdk" resourceParse "github.com/hashicorp/terraform-provider-azurerm/internal/services/resource/parse" @@ -235,7 +235,7 @@ func (r DataProtectionBackupInstanceKubernatesClusterResource) Create() sdk.Reso }, } - if err := client.CreateOrUpdateThenPoll(ctx, id, parameters); err != nil { + if err := client.CreateOrUpdateThenPoll(ctx, id, parameters, backupinstances.DefaultCreateOrUpdateOperationOptions()); err != nil { return fmt.Errorf("creating %s: %+v", id, err) } @@ -315,7 +315,7 @@ func (r DataProtectionBackupInstanceKubernatesClusterResource) Delete() sdk.Reso return err } - err = client.DeleteThenPoll(ctx, *id) + err = client.DeleteThenPoll(ctx, *id, backupinstances.DefaultDeleteOperationOptions()) if err != nil { return fmt.Errorf("deleting %s: %+v", *id, err) } diff --git a/internal/services/dataprotection/data_protection_backup_instance_kubernetes_cluster_resource_test.go b/internal/services/dataprotection/data_protection_backup_instance_kubernetes_cluster_resource_test.go index d0b05d54a79d..6a32139eebba 100644 --- a/internal/services/dataprotection/data_protection_backup_instance_kubernetes_cluster_resource_test.go +++ b/internal/services/dataprotection/data_protection_backup_instance_kubernetes_cluster_resource_test.go @@ -10,7 +10,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 91e48c371530..740ce2e05407 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/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/2024-04-01/backupinstances" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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" @@ -147,7 +147,7 @@ func resourceDataProtectionBackupInstancePostgreSQLCreateUpdate(d *schema.Resour } } - err := client.CreateOrUpdateThenPoll(ctx, id, parameters) + err := client.CreateOrUpdateThenPoll(ctx, id, parameters, backupinstances.DefaultCreateOrUpdateOperationOptions()) if err != nil { return fmt.Errorf("creating/updating %s: %+v", id, err) } @@ -224,7 +224,7 @@ func resourceDataProtectionBackupInstancePostgreSQLDelete(d *schema.ResourceData return err } - err = client.DeleteThenPoll(ctx, *id) + err = client.DeleteThenPoll(ctx, *id, backupinstances.DefaultDeleteOperationOptions()) if err != nil { return fmt.Errorf("deleting DataProtection BackupInstance (%q): %+v", id, err) } 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 fbad67d14bc7..6ce313d0b2a4 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/2023-05-01/backupinstances" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 0a8721d9e98a..74eb9007fd28 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/2023-05-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 87859071b5a7..3e75864b0f40 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/2023-05-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 fdb2d32848c6..ba4104b9e855 100644 --- a/internal/services/dataprotection/data_protection_backup_policy_disk_resource.go +++ b/internal/services/dataprotection/data_protection_backup_policy_disk_resource.go @@ -12,7 +12,7 @@ import ( "github.com/hashicorp/go-azure-helpers/lang/pointer" "github.com/hashicorp/go-azure-helpers/lang/response" - "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 0e9ccf258ef1..bc1f7c01aea1 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/2023-05-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 960279f8ede0..f8d7c197dae0 100644 --- a/internal/services/dataprotection/data_protection_backup_policy_postgresql_resource.go +++ b/internal/services/dataprotection/data_protection_backup_policy_postgresql_resource.go @@ -13,7 +13,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/2023-05-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 7de3b1821fea..44feec306754 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/2023-05-01/backuppolicies" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 7df10fbba663..0890affdc2ad 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/2023-05-01/backupvaults" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 9d9a9f9998f4..bd41a4ec8ab1 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/2023-05-01/backupvaults" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 002f2c4885d5..a5e7be76fa48 100644 --- a/internal/services/dataprotection/data_protection_backup_vault_resource.go +++ b/internal/services/dataprotection/data_protection_backup_vault_resource.go @@ -15,7 +15,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/2023-05-01/backupvaults" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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" @@ -179,7 +179,7 @@ func resourceDataProtectionBackupVaultCreateUpdate(d *pluginsdk.ResourceData, me parameters.Properties.SecuritySettings.SoftDeleteSettings.RetentionDurationInDays = pointer.To(v.(float64)) } - err = client.CreateOrUpdateThenPoll(ctx, id, parameters) + err = client.CreateOrUpdateThenPoll(ctx, id, parameters, backupvaults.DefaultCreateOrUpdateOperationOptions()) if err != nil { return fmt.Errorf("creating DataProtection BackupVault (%q): %+v", id, err) } 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 0cfc4287eb56..acc75c8793e1 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/2023-05-01/backupvaults" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 7820375cfd28..8339f5c5afd1 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/2023-05-01/resourceguards" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 6fc058812e18..67d8ccc44f43 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/2023-05-01/resourceguards" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 d7e6dfb698fb..bcde459da561 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/2023-05-01/resourceguards" + "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards" "github.com/hashicorp/go-azure-sdk/resource-manager/recoveryservices/2024-01-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/2023-05-01/backupvaults/model_patchbackupvaultinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_patchbackupvaultinput.go deleted file mode 100644 index 217d3bf07f67..000000000000 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_patchbackupvaultinput.go +++ /dev/null @@ -1,10 +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 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/2023-05-01/backupinstances/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/README.md similarity index 76% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/README.md index b894eea6aec6..4601327dcd81 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances` Documentation -The `backupinstances` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2023-05-01`). +The `backupinstances` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2024-04-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/2023-05-01/backupinstances" +import "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances" ``` @@ -48,7 +48,7 @@ payload := backupinstances.BackupInstanceResource{ } -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { +if err := client.CreateOrUpdateThenPoll(ctx, id, payload, backupinstances.DefaultCreateOrUpdateOperationOptions()); err != nil { // handle the error } ``` @@ -60,7 +60,7 @@ if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { ctx := context.TODO() id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue") -if err := client.DeleteThenPoll(ctx, id); err != nil { +if err := client.DeleteThenPoll(ctx, id, backupinstances.DefaultDeleteOperationOptions()); err != nil { // handle the error } ``` @@ -129,7 +129,12 @@ if err := client.ResumeProtectionThenPoll(ctx, id); err != nil { ctx := context.TODO() id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue") -if err := client.StopProtectionThenPoll(ctx, id); err != nil { +payload := backupinstances.StopProtectionRequest{ + // ... +} + + +if err := client.StopProtectionThenPoll(ctx, id, payload, backupinstances.DefaultStopProtectionOperationOptions()); err != nil { // handle the error } ``` @@ -141,7 +146,12 @@ if err := client.StopProtectionThenPoll(ctx, id); err != nil { ctx := context.TODO() id := backupinstances.NewBackupInstanceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "backupVaultValue", "backupInstanceValue") -if err := client.SuspendBackupsThenPoll(ctx, id); err != nil { +payload := backupinstances.SuspendBackupRequest{ + // ... +} + + +if err := client.SuspendBackupsThenPoll(ctx, id, payload, backupinstances.DefaultSuspendBackupsOperationOptions()); err != nil { // handle the error } ``` @@ -164,6 +174,23 @@ if err := client.SyncBackupInstanceThenPoll(ctx, id, payload); err != nil { ``` +### Example Usage: `BackupInstancesClient.TriggerCrossRegionRestore` + +```go +ctx := context.TODO() +id := backupinstances.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue") + +payload := backupinstances.CrossRegionRestoreRequestObject{ + // ... +} + + +if err := client.TriggerCrossRegionRestoreThenPoll(ctx, id, payload); err != nil { + // handle the error +} +``` + + ### Example Usage: `BackupInstancesClient.TriggerRehydrate` ```go @@ -192,7 +219,24 @@ payload := backupinstances.AzureBackupRestoreRequest{ } -if err := client.TriggerRestoreThenPoll(ctx, id, payload); err != nil { +if err := client.TriggerRestoreThenPoll(ctx, id, payload, backupinstances.DefaultTriggerRestoreOperationOptions()); err != nil { + // handle the error +} +``` + + +### Example Usage: `BackupInstancesClient.ValidateCrossRegionRestore` + +```go +ctx := context.TODO() +id := backupinstances.NewProviderLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "locationValue") + +payload := backupinstances.ValidateCrossRegionRestoreRequestObject{ + // ... +} + + +if err := client.ValidateCrossRegionRestoreThenPoll(ctx, id, payload); err != nil { // handle the error } ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/id_backupinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_backupinstance.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/id_backupinstance.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_backupinstance.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/id_backupvault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_backupvault.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/id_backupvault.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_backupvault.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_providerlocation.go new file mode 100644 index 000000000000..41446698550d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/id_providerlocation.go @@ -0,0 +1,130 @@ +package backupinstances + +import ( + "fmt" + "strings" + + "github.com/hashicorp/go-azure-helpers/resourcemanager/recaser" + "github.com/hashicorp/go-azure-helpers/resourcemanager/resourceids" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +func init() { + recaser.RegisterResourceId(&ProviderLocationId{}) +} + +var _ resourceids.ResourceId = &ProviderLocationId{} + +// ProviderLocationId is a struct representing the Resource ID for a Provider Location +type ProviderLocationId struct { + SubscriptionId string + ResourceGroupName string + LocationName string +} + +// NewProviderLocationID returns a new ProviderLocationId struct +func NewProviderLocationID(subscriptionId string, resourceGroupName string, locationName string) ProviderLocationId { + return ProviderLocationId{ + SubscriptionId: subscriptionId, + ResourceGroupName: resourceGroupName, + LocationName: locationName, + } +} + +// ParseProviderLocationID parses 'input' into a ProviderLocationId +func ParseProviderLocationID(input string) (*ProviderLocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&ProviderLocationId{}) + parsed, err := parser.Parse(input, false) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ProviderLocationId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +// ParseProviderLocationIDInsensitively parses 'input' case-insensitively into a ProviderLocationId +// note: this method should only be used for API response data and not user input +func ParseProviderLocationIDInsensitively(input string) (*ProviderLocationId, error) { + parser := resourceids.NewParserFromResourceIdType(&ProviderLocationId{}) + parsed, err := parser.Parse(input, true) + if err != nil { + return nil, fmt.Errorf("parsing %q: %+v", input, err) + } + + id := ProviderLocationId{} + if err := id.FromParseResult(*parsed); err != nil { + return nil, err + } + + return &id, nil +} + +func (id *ProviderLocationId) FromParseResult(input resourceids.ParseResult) error { + var ok bool + + if id.SubscriptionId, ok = input.Parsed["subscriptionId"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "subscriptionId", input) + } + + if id.ResourceGroupName, ok = input.Parsed["resourceGroupName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "resourceGroupName", input) + } + + if id.LocationName, ok = input.Parsed["locationName"]; !ok { + return resourceids.NewSegmentNotSpecifiedError(id, "locationName", input) + } + + return nil +} + +// ValidateProviderLocationID checks that 'input' can be parsed as a Provider Location ID +func ValidateProviderLocationID(input interface{}, key string) (warnings []string, errors []error) { + v, ok := input.(string) + if !ok { + errors = append(errors, fmt.Errorf("expected %q to be a string", key)) + return + } + + if _, err := ParseProviderLocationID(v); err != nil { + errors = append(errors, err) + } + + return +} + +// ID returns the formatted Provider Location ID +func (id ProviderLocationId) ID() string { + fmtString := "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.DataProtection/locations/%s" + return fmt.Sprintf(fmtString, id.SubscriptionId, id.ResourceGroupName, id.LocationName) +} + +// Segments returns a slice of Resource ID Segments which comprise this Provider Location ID +func (id ProviderLocationId) Segments() []resourceids.Segment { + return []resourceids.Segment{ + resourceids.StaticSegment("staticSubscriptions", "subscriptions", "subscriptions"), + resourceids.SubscriptionIdSegment("subscriptionId", "12345678-1234-9876-4563-123456789012"), + resourceids.StaticSegment("staticResourceGroups", "resourceGroups", "resourceGroups"), + resourceids.ResourceGroupSegment("resourceGroupName", "example-resource-group"), + resourceids.StaticSegment("staticProviders", "providers", "providers"), + resourceids.ResourceProviderSegment("staticMicrosoftDataProtection", "Microsoft.DataProtection", "Microsoft.DataProtection"), + resourceids.StaticSegment("staticLocations", "locations", "locations"), + resourceids.UserSpecifiedSegment("locationName", "locationValue"), + } +} + +// String returns a human-readable description of this Provider Location ID +func (id ProviderLocationId) String() string { + components := []string{ + fmt.Sprintf("Subscription: %q", id.SubscriptionId), + fmt.Sprintf("Resource Group Name: %q", id.ResourceGroupName), + fmt.Sprintf("Location Name: %q", id.LocationName), + } + return fmt.Sprintf("Provider Location (%s)", strings.Join(components, "\n")) +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_adhocbackup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_adhocbackup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_adhocbackup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_adhocbackup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_createorupdate.go similarity index 60% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_createorupdate.go index a4f0cc8610f0..8c49d6a1b1d0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_createorupdate.go @@ -21,8 +21,35 @@ type CreateOrUpdateOperationResponse struct { Model *BackupInstanceResource } +type CreateOrUpdateOperationOptions struct { + XMsAuthorizationAuxiliary *string +} + +func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions { + return CreateOrUpdateOperationOptions{} +} + +func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.XMsAuthorizationAuxiliary != nil { + out.Append("x-ms-authorization-auxiliary", fmt.Sprintf("%v", *o.XMsAuthorizationAuxiliary)) + } + return &out +} + +func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + // CreateOrUpdate ... -func (c BackupInstancesClient) CreateOrUpdate(ctx context.Context, id BackupInstanceId, input BackupInstanceResource) (result CreateOrUpdateOperationResponse, err error) { +func (c BackupInstancesClient) CreateOrUpdate(ctx context.Context, id BackupInstanceId, input BackupInstanceResource, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -30,8 +57,9 @@ func (c BackupInstancesClient) CreateOrUpdate(ctx context.Context, id BackupInst http.StatusCreated, http.StatusOK, }, - HttpMethod: http.MethodPut, - Path: id.ID(), + HttpMethod: http.MethodPut, + Path: id.ID(), + OptionsObject: options, } req, err := c.Client.NewRequest(ctx, opts) @@ -62,8 +90,8 @@ func (c BackupInstancesClient) CreateOrUpdate(ctx context.Context, id BackupInst } // CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c BackupInstancesClient) CreateOrUpdateThenPoll(ctx context.Context, id BackupInstanceId, input BackupInstanceResource) error { - result, err := c.CreateOrUpdate(ctx, id, input) +func (c BackupInstancesClient) CreateOrUpdateThenPoll(ctx context.Context, id BackupInstanceId, input BackupInstanceResource, options CreateOrUpdateOperationOptions) error { + result, err := c.CreateOrUpdate(ctx, id, input, options) if err != nil { return fmt.Errorf("performing CreateOrUpdate: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_delete.go similarity index 62% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_delete.go index c51e5ec72403..9505a3d9cf79 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_delete.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_delete.go @@ -20,8 +20,35 @@ type DeleteOperationResponse struct { OData *odata.OData } +type DeleteOperationOptions struct { + XMsAuthorizationAuxiliary *string +} + +func DefaultDeleteOperationOptions() DeleteOperationOptions { + return DeleteOperationOptions{} +} + +func (o DeleteOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.XMsAuthorizationAuxiliary != nil { + out.Append("x-ms-authorization-auxiliary", fmt.Sprintf("%v", *o.XMsAuthorizationAuxiliary)) + } + return &out +} + +func (o DeleteOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o DeleteOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + // Delete ... -func (c BackupInstancesClient) Delete(ctx context.Context, id BackupInstanceId) (result DeleteOperationResponse, err error) { +func (c BackupInstancesClient) Delete(ctx context.Context, id BackupInstanceId, options DeleteOperationOptions) (result DeleteOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -29,8 +56,9 @@ func (c BackupInstancesClient) Delete(ctx context.Context, id BackupInstanceId) http.StatusNoContent, http.StatusOK, }, - HttpMethod: http.MethodDelete, - Path: id.ID(), + HttpMethod: http.MethodDelete, + Path: id.ID(), + OptionsObject: options, } req, err := c.Client.NewRequest(ctx, opts) @@ -57,8 +85,8 @@ func (c BackupInstancesClient) Delete(ctx context.Context, id BackupInstanceId) } // DeleteThenPoll performs Delete then polls until it's completed -func (c BackupInstancesClient) DeleteThenPoll(ctx context.Context, id BackupInstanceId) error { - result, err := c.Delete(ctx, id) +func (c BackupInstancesClient) DeleteThenPoll(ctx context.Context, id BackupInstanceId, options DeleteOperationOptions) error { + result, err := c.Delete(ctx, id, options) if err != nil { return fmt.Errorf("performing Delete: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_resumebackups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_resumebackups.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_resumebackups.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_resumebackups.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_resumeprotection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_resumeprotection.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_resumeprotection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_resumeprotection.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_stopprotection.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_stopprotection.go similarity index 57% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_stopprotection.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_stopprotection.go index 680e5671808d..b2ab8a263103 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_stopprotection.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_stopprotection.go @@ -20,16 +20,44 @@ type StopProtectionOperationResponse struct { OData *odata.OData } +type StopProtectionOperationOptions struct { + XMsAuthorizationAuxiliary *string +} + +func DefaultStopProtectionOperationOptions() StopProtectionOperationOptions { + return StopProtectionOperationOptions{} +} + +func (o StopProtectionOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.XMsAuthorizationAuxiliary != nil { + out.Append("x-ms-authorization-auxiliary", fmt.Sprintf("%v", *o.XMsAuthorizationAuxiliary)) + } + return &out +} + +func (o StopProtectionOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o StopProtectionOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + // StopProtection ... -func (c BackupInstancesClient) StopProtection(ctx context.Context, id BackupInstanceId) (result StopProtectionOperationResponse, err error) { +func (c BackupInstancesClient) StopProtection(ctx context.Context, id BackupInstanceId, input StopProtectionRequest, options StopProtectionOperationOptions) (result StopProtectionOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusAccepted, http.StatusOK, }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/stopProtection", id.ID()), + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/stopProtection", id.ID()), + OptionsObject: options, } req, err := c.Client.NewRequest(ctx, opts) @@ -37,6 +65,10 @@ func (c BackupInstancesClient) StopProtection(ctx context.Context, id BackupInst return } + if err = req.Marshal(input); err != nil { + return + } + var resp *client.Response resp, err = req.Execute(ctx) if resp != nil { @@ -56,8 +88,8 @@ func (c BackupInstancesClient) StopProtection(ctx context.Context, id BackupInst } // StopProtectionThenPoll performs StopProtection then polls until it's completed -func (c BackupInstancesClient) StopProtectionThenPoll(ctx context.Context, id BackupInstanceId) error { - result, err := c.StopProtection(ctx, id) +func (c BackupInstancesClient) StopProtectionThenPoll(ctx context.Context, id BackupInstanceId, input StopProtectionRequest, options StopProtectionOperationOptions) error { + result, err := c.StopProtection(ctx, id, input, options) if err != nil { return fmt.Errorf("performing StopProtection: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_suspendbackups.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_suspendbackups.go similarity index 57% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_suspendbackups.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_suspendbackups.go index 116fc13d6bfb..8d8f1b7d43d2 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_suspendbackups.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_suspendbackups.go @@ -20,16 +20,44 @@ type SuspendBackupsOperationResponse struct { OData *odata.OData } +type SuspendBackupsOperationOptions struct { + XMsAuthorizationAuxiliary *string +} + +func DefaultSuspendBackupsOperationOptions() SuspendBackupsOperationOptions { + return SuspendBackupsOperationOptions{} +} + +func (o SuspendBackupsOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.XMsAuthorizationAuxiliary != nil { + out.Append("x-ms-authorization-auxiliary", fmt.Sprintf("%v", *o.XMsAuthorizationAuxiliary)) + } + return &out +} + +func (o SuspendBackupsOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o SuspendBackupsOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + // SuspendBackups ... -func (c BackupInstancesClient) SuspendBackups(ctx context.Context, id BackupInstanceId) (result SuspendBackupsOperationResponse, err error) { +func (c BackupInstancesClient) SuspendBackups(ctx context.Context, id BackupInstanceId, input SuspendBackupRequest, options SuspendBackupsOperationOptions) (result SuspendBackupsOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusAccepted, http.StatusOK, }, - HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/suspendBackups", id.ID()), + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/suspendBackups", id.ID()), + OptionsObject: options, } req, err := c.Client.NewRequest(ctx, opts) @@ -37,6 +65,10 @@ func (c BackupInstancesClient) SuspendBackups(ctx context.Context, id BackupInst return } + if err = req.Marshal(input); err != nil { + return + } + var resp *client.Response resp, err = req.Execute(ctx) if resp != nil { @@ -56,8 +88,8 @@ func (c BackupInstancesClient) SuspendBackups(ctx context.Context, id BackupInst } // SuspendBackupsThenPoll performs SuspendBackups then polls until it's completed -func (c BackupInstancesClient) SuspendBackupsThenPoll(ctx context.Context, id BackupInstanceId) error { - result, err := c.SuspendBackups(ctx, id) +func (c BackupInstancesClient) SuspendBackupsThenPoll(ctx context.Context, id BackupInstanceId, input SuspendBackupRequest, options SuspendBackupsOperationOptions) error { + result, err := c.SuspendBackups(ctx, id, input, options) if err != nil { return fmt.Errorf("performing SuspendBackups: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_syncbackupinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_syncbackupinstance.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_syncbackupinstance.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_syncbackupinstance.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_triggerrestore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_triggercrossregionrestore.go similarity index 60% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_triggerrestore.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_triggercrossregionrestore.go index bc9e4f95e0a2..081a04a7e832 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_triggerrestore.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_triggercrossregionrestore.go @@ -14,15 +14,15 @@ import ( // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See NOTICE.txt in the project root for license information. -type TriggerRestoreOperationResponse struct { +type TriggerCrossRegionRestoreOperationResponse struct { Poller pollers.Poller HttpResponse *http.Response OData *odata.OData Model *OperationJobExtendedInfo } -// TriggerRestore ... -func (c BackupInstancesClient) TriggerRestore(ctx context.Context, id BackupInstanceId, input AzureBackupRestoreRequest) (result TriggerRestoreOperationResponse, err error) { +// TriggerCrossRegionRestore ... +func (c BackupInstancesClient) TriggerCrossRegionRestore(ctx context.Context, id ProviderLocationId, input CrossRegionRestoreRequestObject) (result TriggerCrossRegionRestoreOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ @@ -30,7 +30,7 @@ func (c BackupInstancesClient) TriggerRestore(ctx context.Context, id BackupInst http.StatusOK, }, HttpMethod: http.MethodPost, - Path: fmt.Sprintf("%s/restore", id.ID()), + Path: fmt.Sprintf("%s/crossRegionRestore", id.ID()), } req, err := c.Client.NewRequest(ctx, opts) @@ -60,15 +60,15 @@ func (c BackupInstancesClient) TriggerRestore(ctx context.Context, id BackupInst return } -// TriggerRestoreThenPoll performs TriggerRestore then polls until it's completed -func (c BackupInstancesClient) TriggerRestoreThenPoll(ctx context.Context, id BackupInstanceId, input AzureBackupRestoreRequest) error { - result, err := c.TriggerRestore(ctx, id, input) +// TriggerCrossRegionRestoreThenPoll performs TriggerCrossRegionRestore then polls until it's completed +func (c BackupInstancesClient) TriggerCrossRegionRestoreThenPoll(ctx context.Context, id ProviderLocationId, input CrossRegionRestoreRequestObject) error { + result, err := c.TriggerCrossRegionRestore(ctx, id, input) if err != nil { - return fmt.Errorf("performing TriggerRestore: %+v", err) + return fmt.Errorf("performing TriggerCrossRegionRestore: %+v", err) } if err := result.Poller.PollUntilDone(ctx); err != nil { - return fmt.Errorf("polling after TriggerRestore: %+v", err) + return fmt.Errorf("polling after TriggerCrossRegionRestore: %+v", err) } return nil diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_triggerrehydrate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_triggerrehydrate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_triggerrehydrate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_triggerrehydrate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_triggerrestore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_triggerrestore.go new file mode 100644 index 000000000000..cce24bd0d8d5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_triggerrestore.go @@ -0,0 +1,103 @@ +package backupinstances + +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" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type TriggerRestoreOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *OperationJobExtendedInfo +} + +type TriggerRestoreOperationOptions struct { + XMsAuthorizationAuxiliary *string +} + +func DefaultTriggerRestoreOperationOptions() TriggerRestoreOperationOptions { + return TriggerRestoreOperationOptions{} +} + +func (o TriggerRestoreOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.XMsAuthorizationAuxiliary != nil { + out.Append("x-ms-authorization-auxiliary", fmt.Sprintf("%v", *o.XMsAuthorizationAuxiliary)) + } + return &out +} + +func (o TriggerRestoreOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o TriggerRestoreOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + +// TriggerRestore ... +func (c BackupInstancesClient) TriggerRestore(ctx context.Context, id BackupInstanceId, input AzureBackupRestoreRequest, options TriggerRestoreOperationOptions) (result TriggerRestoreOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/restore", id.ID()), + OptionsObject: options, + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// TriggerRestoreThenPoll performs TriggerRestore then polls until it's completed +func (c BackupInstancesClient) TriggerRestoreThenPoll(ctx context.Context, id BackupInstanceId, input AzureBackupRestoreRequest, options TriggerRestoreOperationOptions) error { + result, err := c.TriggerRestore(ctx, id, input, options) + if err != nil { + return fmt.Errorf("performing TriggerRestore: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after TriggerRestore: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_validatecrossregionrestore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_validatecrossregionrestore.go new file mode 100644 index 000000000000..f3492da21b7a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_validatecrossregionrestore.go @@ -0,0 +1,75 @@ +package backupinstances + +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" +) + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See NOTICE.txt in the project root for license information. + +type ValidateCrossRegionRestoreOperationResponse struct { + Poller pollers.Poller + HttpResponse *http.Response + OData *odata.OData + Model *OperationJobExtendedInfo +} + +// ValidateCrossRegionRestore ... +func (c BackupInstancesClient) ValidateCrossRegionRestore(ctx context.Context, id ProviderLocationId, input ValidateCrossRegionRestoreRequestObject) (result ValidateCrossRegionRestoreOperationResponse, err error) { + opts := client.RequestOptions{ + ContentType: "application/json; charset=utf-8", + ExpectedStatusCodes: []int{ + http.StatusAccepted, + http.StatusOK, + }, + HttpMethod: http.MethodPost, + Path: fmt.Sprintf("%s/validateCrossRegionRestore", id.ID()), + } + + req, err := c.Client.NewRequest(ctx, opts) + if err != nil { + return + } + + if err = req.Marshal(input); err != nil { + return + } + + var resp *client.Response + resp, err = req.Execute(ctx) + if resp != nil { + result.OData = resp.OData + result.HttpResponse = resp.Response + } + if err != nil { + return + } + + result.Poller, err = resourcemanager.PollerFromResponse(resp, c.Client) + if err != nil { + return + } + + return +} + +// ValidateCrossRegionRestoreThenPoll performs ValidateCrossRegionRestore then polls until it's completed +func (c BackupInstancesClient) ValidateCrossRegionRestoreThenPoll(ctx context.Context, id ProviderLocationId, input ValidateCrossRegionRestoreRequestObject) error { + result, err := c.ValidateCrossRegionRestore(ctx, id, input) + if err != nil { + return fmt.Errorf("performing ValidateCrossRegionRestore: %+v", err) + } + + if err := result.Poller.PollUntilDone(ctx); err != nil { + return fmt.Errorf("polling after ValidateCrossRegionRestore: %+v", err) + } + + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_validateforbackup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_validateforbackup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_validateforbackup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_validateforbackup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_validateforrestore.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_validateforrestore.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/method_validateforrestore.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/method_validateforrestore.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_adhocbackupruleoptions.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_adhocbackupruleoptions.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_adhocbackupruleoptions.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_adhocbackupruleoptions.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_adhocbackuptriggeroption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_adhocbackuptriggeroption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_adhocbackuptriggeroption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_adhocbackuptriggeroption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_authcredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_authcredentials.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_authcredentials.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_authcredentials.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprecoverypointbasedrestorerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprecoverypointbasedrestorerequest.go similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprecoverypointbasedrestorerequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprecoverypointbasedrestorerequest.go index 5809de628f08..cccd7deb636f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprecoverypointbasedrestorerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprecoverypointbasedrestorerequest.go @@ -14,10 +14,11 @@ 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"` + IdentityDetails *IdentityDetails `json:"identityDetails,omitempty"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` + RestoreTargetInfo RestoreTargetInfoBase `json:"restoreTargetInfo"` + SourceDataStoreType SourceDataStoreType `json:"sourceDataStoreType"` + SourceResourceId *string `json:"sourceResourceId,omitempty"` } var _ json.Marshaler = AzureBackupRecoveryPointBasedRestoreRequest{} @@ -55,6 +56,7 @@ func (s *AzureBackupRecoveryPointBasedRestoreRequest) UnmarshalJSON(bytes []byte s.IdentityDetails = decoded.IdentityDetails s.RecoveryPointId = decoded.RecoveryPointId + s.ResourceGuardOperationRequests = decoded.ResourceGuardOperationRequests s.SourceDataStoreType = decoded.SourceDataStoreType s.SourceResourceId = decoded.SourceResourceId diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprecoverytimebasedrestorerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprecoverytimebasedrestorerequest.go similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprecoverytimebasedrestorerequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprecoverytimebasedrestorerequest.go index 17052c6294a5..6527462cb94d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprecoverytimebasedrestorerequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprecoverytimebasedrestorerequest.go @@ -14,10 +14,11 @@ 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"` + IdentityDetails *IdentityDetails `json:"identityDetails,omitempty"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` + RestoreTargetInfo RestoreTargetInfoBase `json:"restoreTargetInfo"` + SourceDataStoreType SourceDataStoreType `json:"sourceDataStoreType"` + SourceResourceId *string `json:"sourceResourceId,omitempty"` } var _ json.Marshaler = AzureBackupRecoveryTimeBasedRestoreRequest{} @@ -55,6 +56,7 @@ func (s *AzureBackupRecoveryTimeBasedRestoreRequest) UnmarshalJSON(bytes []byte) s.IdentityDetails = decoded.IdentityDetails s.RecoveryPointTime = decoded.RecoveryPointTime + s.ResourceGuardOperationRequests = decoded.ResourceGuardOperationRequests s.SourceDataStoreType = decoded.SourceDataStoreType s.SourceResourceId = decoded.SourceResourceId diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprehydrationrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprehydrationrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprehydrationrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprehydrationrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprestorerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprestorerequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprestorerequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprestorerequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprestorewithrehydrationrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprestorewithrehydrationrequest.go similarity index 83% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprestorewithrehydrationrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprestorewithrehydrationrequest.go index 1e8e3e860891..effe61253228 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azurebackuprestorewithrehydrationrequest.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azurebackuprestorewithrehydrationrequest.go @@ -16,10 +16,11 @@ 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"` + IdentityDetails *IdentityDetails `json:"identityDetails,omitempty"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` + RestoreTargetInfo RestoreTargetInfoBase `json:"restoreTargetInfo"` + SourceDataStoreType SourceDataStoreType `json:"sourceDataStoreType"` + SourceResourceId *string `json:"sourceResourceId,omitempty"` } var _ json.Marshaler = AzureBackupRestoreWithRehydrationRequest{} @@ -59,6 +60,7 @@ func (s *AzureBackupRestoreWithRehydrationRequest) UnmarshalJSON(bytes []byte) e s.RecoveryPointId = decoded.RecoveryPointId s.RehydrationPriority = decoded.RehydrationPriority s.RehydrationRetentionDuration = decoded.RehydrationRetentionDuration + s.ResourceGuardOperationRequests = decoded.ResourceGuardOperationRequests s.SourceDataStoreType = decoded.SourceDataStoreType s.SourceResourceId = decoded.SourceResourceId diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azureoperationalstoreparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_azureoperationalstoreparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_azureoperationalstoreparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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/2024-04-01/backupinstances/model_backupdatasourceparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_backupdatasourceparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_backupdatasourceparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_backupinstance.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_backupinstance.go similarity index 54% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_backupinstance.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_backupinstance.go index 73c49dd68404..ca616f380e71 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_backupinstance.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_backupinstance.go @@ -9,18 +9,19 @@ import ( // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type BackupInstance struct { - CurrentProtectionState *CurrentProtectionState `json:"currentProtectionState,omitempty"` - DataSourceInfo Datasource `json:"dataSourceInfo"` - 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"` - ProtectionStatus *ProtectionStatusDetails `json:"protectionStatus,omitempty"` - ProvisioningState *string `json:"provisioningState,omitempty"` - ValidationType *ValidationType `json:"validationType,omitempty"` + CurrentProtectionState *CurrentProtectionState `json:"currentProtectionState,omitempty"` + DataSourceInfo Datasource `json:"dataSourceInfo"` + 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"` + ProtectionStatus *ProtectionStatusDetails `json:"protectionStatus,omitempty"` + ProvisioningState *string `json:"provisioningState,omitempty"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` + ValidationType *ValidationType `json:"validationType,omitempty"` } var _ json.Unmarshaler = &BackupInstance{} @@ -42,6 +43,7 @@ func (s *BackupInstance) UnmarshalJSON(bytes []byte) error { s.ProtectionErrorDetails = decoded.ProtectionErrorDetails s.ProtectionStatus = decoded.ProtectionStatus s.ProvisioningState = decoded.ProvisioningState + s.ResourceGuardOperationRequests = decoded.ResourceGuardOperationRequests s.ValidationType = decoded.ValidationType var temp map[string]json.RawMessage diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_backupinstanceresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_backupinstanceresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_backupinstanceresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_backupinstanceresource.go 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/2024-04-01/backupinstances/model_baseresourceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_baseresourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_baseresourceproperties.go 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/2024-04-01/backupinstances/model_blobbackupdatasourceparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_blobbackupdatasourceparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_blobbackupdatasourceparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_crossregionrestoredetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_crossregionrestoredetails.go new file mode 100644 index 000000000000..edbe7ac454bd --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_crossregionrestoredetails.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 CrossRegionRestoreDetails struct { + SourceBackupInstanceId string `json:"sourceBackupInstanceId"` + SourceRegion string `json:"sourceRegion"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_crossregionrestorerequestobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_crossregionrestorerequestobject.go new file mode 100644 index 000000000000..d958127a0de3 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_crossregionrestorerequestobject.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. + +type CrossRegionRestoreRequestObject struct { + CrossRegionRestoreDetails CrossRegionRestoreDetails `json:"crossRegionRestoreDetails"` + RestoreRequestObject AzureBackupRestoreRequest `json:"restoreRequestObject"` +} + +var _ json.Unmarshaler = &CrossRegionRestoreRequestObject{} + +func (s *CrossRegionRestoreRequestObject) UnmarshalJSON(bytes []byte) error { + type alias CrossRegionRestoreRequestObject + var decoded alias + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling into CrossRegionRestoreRequestObject: %+v", err) + } + + s.CrossRegionRestoreDetails = decoded.CrossRegionRestoreDetails + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling CrossRegionRestoreRequestObject into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["restoreRequestObject"]; ok { + impl, err := unmarshalAzureBackupRestoreRequestImplementation(v) + if err != nil { + return fmt.Errorf("unmarshaling field 'RestoreRequestObject' for 'CrossRegionRestoreRequestObject': %+v", err) + } + s.RestoreRequestObject = impl + } + return 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/2024-04-01/backupinstances/model_datasource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_datasource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_datasource.go 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/2024-04-01/backupinstances/model_datasourceset.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_datasourceset.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_datasourceset.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_datastoreparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_datastoreparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_datastoreparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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/2024-04-01/backupinstances/model_defaultresourceproperties.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_defaultresourceproperties.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_defaultresourceproperties.go 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/2024-04-01/backupinstances/model_identitydetails.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_identitydetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_identitydetails.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_innererror.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_innererror.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_innererror.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_innererror.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_itemlevelrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_itemlevelrestorecriteria.go similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_itemlevelrestorecriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_itemlevelrestorecriteria.go index 93d51faea798..5c1b5326ced0 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_itemlevelrestorecriteria.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_itemlevelrestorecriteria.go @@ -52,6 +52,14 @@ func unmarshalItemLevelRestoreCriteriaImplementation(input []byte) (ItemLevelRes return out, nil } + if strings.EqualFold(value, "KubernetesClusterVaultTierRestoreCriteria") { + var out KubernetesClusterVaultTierRestoreCriteria + if err := json.Unmarshal(input, &out); err != nil { + return nil, fmt.Errorf("unmarshaling into KubernetesClusterVaultTierRestoreCriteria: %+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/2023-05-01/backupinstances/model_itemlevelrestoretargetinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_itemlevelrestoretargetinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_itemlevelrestoretargetinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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/2024-04-01/backupinstances/model_itempathbasedrestorecriteria.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_itempathbasedrestorecriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_itempathbasedrestorecriteria.go 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/2024-04-01/backupinstances/model_kubernetesclusterbackupdatasourceparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_kubernetesclusterbackupdatasourceparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesclusterbackupdatasourceparameters.go 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/2024-04-01/backupinstances/model_kubernetesclusterrestorecriteria.go similarity index 95% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_kubernetesclusterrestorecriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesclusterrestorecriteria.go index 070030fbbe02..ab7478006ae9 100644 --- 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/2024-04-01/backupinstances/model_kubernetesclusterrestorecriteria.go @@ -20,6 +20,7 @@ type KubernetesClusterRestoreCriteria struct { LabelSelectors *[]string `json:"labelSelectors,omitempty"` NamespaceMappings *map[string]string `json:"namespaceMappings,omitempty"` PersistentVolumeRestoreMode *PersistentVolumeRestoreMode `json:"persistentVolumeRestoreMode,omitempty"` + ResourceModifierReference *NamespacedNameResource `json:"resourceModifierReference,omitempty"` RestoreHookReferences *[]NamespacedNameResource `json:"restoreHookReferences,omitempty"` // Fields inherited from ItemLevelRestoreCriteria diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesclustervaulttierrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesclustervaulttierrestorecriteria.go new file mode 100644 index 000000000000..b172d3bed60a --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesclustervaulttierrestorecriteria.go @@ -0,0 +1,53 @@ +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 = KubernetesClusterVaultTierRestoreCriteria{} + +type KubernetesClusterVaultTierRestoreCriteria 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"` + ResourceModifierReference *NamespacedNameResource `json:"resourceModifierReference,omitempty"` + RestoreHookReferences *[]NamespacedNameResource `json:"restoreHookReferences,omitempty"` + StagingResourceGroupId *string `json:"stagingResourceGroupId,omitempty"` + StagingStorageAccountId *string `json:"stagingStorageAccountId,omitempty"` + + // Fields inherited from ItemLevelRestoreCriteria +} + +var _ json.Marshaler = KubernetesClusterVaultTierRestoreCriteria{} + +func (s KubernetesClusterVaultTierRestoreCriteria) MarshalJSON() ([]byte, error) { + type wrapper KubernetesClusterVaultTierRestoreCriteria + wrapped := wrapper(s) + encoded, err := json.Marshal(wrapped) + if err != nil { + return nil, fmt.Errorf("marshaling KubernetesClusterVaultTierRestoreCriteria: %+v", err) + } + + var decoded map[string]interface{} + if err := json.Unmarshal(encoded, &decoded); err != nil { + return nil, fmt.Errorf("unmarshaling KubernetesClusterVaultTierRestoreCriteria: %+v", err) + } + decoded["objectType"] = "KubernetesClusterVaultTierRestoreCriteria" + + encoded, err = json.Marshal(decoded) + if err != nil { + return nil, fmt.Errorf("re-marshaling KubernetesClusterVaultTierRestoreCriteria: %+v", err) + } + + return encoded, nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_kubernetespvrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetespvrestorecriteria.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_kubernetespvrestorecriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetespvrestorecriteria.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_kubernetesstorageclassrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_kubernetesstorageclassrestorecriteria.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_kubernetesstorageclassrestorecriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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/2024-04-01/backupinstances/model_namespacednameresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_namespacednameresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_namespacednameresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_operationextendedinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_operationextendedinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_operationextendedinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_operationextendedinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_operationjobextendedinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_operationjobextendedinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_operationjobextendedinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_operationjobextendedinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_policyinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_policyinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_policyinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_policyinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_policyparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_policyparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_policyparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_policyparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_protectionstatusdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_protectionstatusdetails.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_protectionstatusdetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_protectionstatusdetails.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_rangebaseditemlevelrestorecriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_rangebaseditemlevelrestorecriteria.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_rangebaseditemlevelrestorecriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_rangebaseditemlevelrestorecriteria.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_restorefilestargetinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restorefilestargetinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_restorefilestargetinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restorefilestargetinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_restoretargetinfo.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restoretargetinfo.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_restoretargetinfo.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restoretargetinfo.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_restoretargetinfobase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restoretargetinfobase.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_restoretargetinfobase.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_restoretargetinfobase.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_secretstorebasedauthcredentials.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_secretstorebasedauthcredentials.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_secretstorebasedauthcredentials.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_secretstorebasedauthcredentials.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_secretstoreresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_secretstoreresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_secretstoreresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_secretstoreresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_stopprotectionrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_stopprotectionrequest.go new file mode 100644 index 000000000000..f435ab8a7671 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_stopprotectionrequest.go @@ -0,0 +1,8 @@ +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 StopProtectionRequest struct { + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_suspendbackuprequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_suspendbackuprequest.go new file mode 100644 index 000000000000..c4234efa63b4 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_suspendbackuprequest.go @@ -0,0 +1,8 @@ +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 SuspendBackupRequest struct { + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_syncbackupinstancerequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_syncbackupinstancerequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_syncbackupinstancerequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_syncbackupinstancerequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_targetdetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_targetdetails.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_targetdetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_targetdetails.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_triggerbackuprequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_triggerbackuprequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_triggerbackuprequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_triggerbackuprequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_userfacingerror.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_userfacingerror.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_userfacingerror.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_userfacingerror.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_validatecrossregionrestorerequestobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_validatecrossregionrestorerequestobject.go new file mode 100644 index 000000000000..64c70ca0be32 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_validatecrossregionrestorerequestobject.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. + +type ValidateCrossRegionRestoreRequestObject struct { + CrossRegionRestoreDetails CrossRegionRestoreDetails `json:"crossRegionRestoreDetails"` + RestoreRequestObject AzureBackupRestoreRequest `json:"restoreRequestObject"` +} + +var _ json.Unmarshaler = &ValidateCrossRegionRestoreRequestObject{} + +func (s *ValidateCrossRegionRestoreRequestObject) UnmarshalJSON(bytes []byte) error { + type alias ValidateCrossRegionRestoreRequestObject + var decoded alias + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling into ValidateCrossRegionRestoreRequestObject: %+v", err) + } + + s.CrossRegionRestoreDetails = decoded.CrossRegionRestoreDetails + + var temp map[string]json.RawMessage + if err := json.Unmarshal(bytes, &temp); err != nil { + return fmt.Errorf("unmarshaling ValidateCrossRegionRestoreRequestObject into map[string]json.RawMessage: %+v", err) + } + + if v, ok := temp["restoreRequestObject"]; ok { + impl, err := unmarshalAzureBackupRestoreRequestImplementation(v) + if err != nil { + return fmt.Errorf("unmarshaling field 'RestoreRequestObject' for 'ValidateCrossRegionRestoreRequestObject': %+v", err) + } + s.RestoreRequestObject = impl + } + return nil +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_validateforbackuprequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_validateforbackuprequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_validateforbackuprequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_validateforbackuprequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_validaterestorerequestobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_validaterestorerequestobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/model_validaterestorerequestobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/model_validaterestorerequestobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupinstances/version.go index dafd8149aa5c..eada6fa8b12f 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupinstances/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 = "2023-05-01" +const defaultApiVersion = "2024-04-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/2023-05-01/backuppolicies/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/README.md similarity index 93% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/README.md index 64ae79b864cb..61af8f9f8330 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/README.md @@ -1,14 +1,14 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies` Documentation -The `backuppolicies` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2023-05-01`). +The `backuppolicies` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2024-04-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/2023-05-01/backuppolicies" +import "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/id_backuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/id_backuppolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/id_backuppolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/id_backuppolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/id_backupvault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/id_backupvault.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/id_backupvault.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/id_backupvault.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/method_createorupdate.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/method_createorupdate.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/method_list.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/method_list.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/method_list.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/method_list.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_absolutedeleteoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_absolutedeleteoption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_absolutedeleteoption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_absolutedeleteoption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_adhocbasedtaggingcriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_adhocbasedtaggingcriteria.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_adhocbasedtaggingcriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_adhocbasedtaggingcriteria.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_adhocbasedtriggercontext.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_adhocbasedtriggercontext.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_adhocbasedtriggercontext.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_adhocbasedtriggercontext.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_azurebackupparams.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azurebackupparams.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_azurebackupparams.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azurebackupparams.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_azurebackuprule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azurebackuprule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_azurebackuprule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azurebackuprule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_azureretentionrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azureretentionrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_azureretentionrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_azureretentionrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_backupcriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backupcriteria.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_backupcriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backupcriteria.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_backupparameters.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backupparameters.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_backupparameters.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backupparameters.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_backuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backuppolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_backuppolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backuppolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_backupschedule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backupschedule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_backupschedule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_backupschedule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_basebackuppolicy.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basebackuppolicy.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_basebackuppolicy.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basebackuppolicy.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_basebackuppolicyresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basebackuppolicyresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_basebackuppolicyresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basebackuppolicyresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_basepolicyrule.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basepolicyrule.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_basepolicyrule.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_basepolicyrule.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_copyonexpiryoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_copyonexpiryoption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_copyonexpiryoption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_copyonexpiryoption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_copyoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_copyoption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_copyoption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_copyoption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_customcopyoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_customcopyoption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_customcopyoption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_customcopyoption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_datastoreinfobase.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_datastoreinfobase.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_datastoreinfobase.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_datastoreinfobase.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_day.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_day.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_day.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_day.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_deleteoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_deleteoption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_deleteoption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_deleteoption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_immediatecopyoption.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_immediatecopyoption.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_immediatecopyoption.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_immediatecopyoption.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_retentiontag.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_retentiontag.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_retentiontag.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_retentiontag.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_schedulebasedbackupcriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_schedulebasedbackupcriteria.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_schedulebasedbackupcriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_schedulebasedbackupcriteria.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_schedulebasedtriggercontext.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_schedulebasedtriggercontext.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_schedulebasedtriggercontext.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_schedulebasedtriggercontext.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_sourcelifecycle.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_sourcelifecycle.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_sourcelifecycle.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_sourcelifecycle.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_taggingcriteria.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_taggingcriteria.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_taggingcriteria.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_taggingcriteria.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_targetcopysetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_targetcopysetting.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_targetcopysetting.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_targetcopysetting.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_triggercontext.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_triggercontext.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/model_triggercontext.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/model_triggercontext.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies/version.go index 57a8657aa9e0..30df912a279d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backuppolicies/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 = "2023-05-01" +const defaultApiVersion = "2024-04-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/2023-05-01/backupvaults/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/README.md similarity index 89% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/README.md index a77289cd1ba8..7e3162863e66 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults` Documentation -The `backupvaults` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2023-05-01`). +The `backupvaults` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2024-04-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). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults" +import "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults" ``` @@ -53,7 +53,7 @@ payload := backupvaults.BackupVaultResource{ } -if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil { +if err := client.CreateOrUpdateThenPoll(ctx, id, payload, backupvaults.DefaultCreateOrUpdateOperationOptions()); err != nil { // handle the error } ``` @@ -132,7 +132,7 @@ payload := backupvaults.PatchResourceRequestInput{ } -if err := client.UpdateThenPoll(ctx, id, payload); err != nil { +if err := client.UpdateThenPoll(ctx, id, payload, backupvaults.DefaultUpdateOperationOptions()); err != nil { // handle the error } ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/constants.go similarity index 74% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/constants.go index 87272e92a796..731af7922003 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/constants.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/constants.go @@ -50,6 +50,56 @@ func parseAlertsState(input string) (*AlertsState, error) { return &out, nil } +type BCDRSecurityLevel string + +const ( + BCDRSecurityLevelExcellent BCDRSecurityLevel = "Excellent" + BCDRSecurityLevelFair BCDRSecurityLevel = "Fair" + BCDRSecurityLevelGood BCDRSecurityLevel = "Good" + BCDRSecurityLevelNotSupported BCDRSecurityLevel = "NotSupported" + BCDRSecurityLevelPoor BCDRSecurityLevel = "Poor" +) + +func PossibleValuesForBCDRSecurityLevel() []string { + return []string{ + string(BCDRSecurityLevelExcellent), + string(BCDRSecurityLevelFair), + string(BCDRSecurityLevelGood), + string(BCDRSecurityLevelNotSupported), + string(BCDRSecurityLevelPoor), + } +} + +func (s *BCDRSecurityLevel) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseBCDRSecurityLevel(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseBCDRSecurityLevel(input string) (*BCDRSecurityLevel, error) { + vals := map[string]BCDRSecurityLevel{ + "excellent": BCDRSecurityLevelExcellent, + "fair": BCDRSecurityLevelFair, + "good": BCDRSecurityLevelGood, + "notsupported": BCDRSecurityLevelNotSupported, + "poor": BCDRSecurityLevelPoor, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := BCDRSecurityLevel(input) + return &out, nil +} + type CrossRegionRestoreState string const ( @@ -135,6 +185,91 @@ func parseCrossSubscriptionRestoreState(input string) (*CrossSubscriptionRestore return &out, nil } +type EncryptionState string + +const ( + EncryptionStateDisabled EncryptionState = "Disabled" + EncryptionStateEnabled EncryptionState = "Enabled" + EncryptionStateInconsistent EncryptionState = "Inconsistent" +) + +func PossibleValuesForEncryptionState() []string { + return []string{ + string(EncryptionStateDisabled), + string(EncryptionStateEnabled), + string(EncryptionStateInconsistent), + } +} + +func (s *EncryptionState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseEncryptionState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseEncryptionState(input string) (*EncryptionState, error) { + vals := map[string]EncryptionState{ + "disabled": EncryptionStateDisabled, + "enabled": EncryptionStateEnabled, + "inconsistent": EncryptionStateInconsistent, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := EncryptionState(input) + return &out, nil +} + +type IdentityType string + +const ( + IdentityTypeSystemAssigned IdentityType = "SystemAssigned" + IdentityTypeUserAssigned IdentityType = "UserAssigned" +) + +func PossibleValuesForIdentityType() []string { + return []string{ + string(IdentityTypeSystemAssigned), + string(IdentityTypeUserAssigned), + } +} + +func (s *IdentityType) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseIdentityType(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseIdentityType(input string) (*IdentityType, error) { + vals := map[string]IdentityType{ + "systemassigned": IdentityTypeSystemAssigned, + "userassigned": IdentityTypeUserAssigned, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := IdentityType(input) + return &out, nil +} + type ImmutabilityState string const ( @@ -179,6 +314,47 @@ func parseImmutabilityState(input string) (*ImmutabilityState, error) { return &out, nil } +type InfrastructureEncryptionState string + +const ( + InfrastructureEncryptionStateDisabled InfrastructureEncryptionState = "Disabled" + InfrastructureEncryptionStateEnabled InfrastructureEncryptionState = "Enabled" +) + +func PossibleValuesForInfrastructureEncryptionState() []string { + return []string{ + string(InfrastructureEncryptionStateDisabled), + string(InfrastructureEncryptionStateEnabled), + } +} + +func (s *InfrastructureEncryptionState) UnmarshalJSON(bytes []byte) error { + var decoded string + if err := json.Unmarshal(bytes, &decoded); err != nil { + return fmt.Errorf("unmarshaling: %+v", err) + } + out, err := parseInfrastructureEncryptionState(decoded) + if err != nil { + return fmt.Errorf("parsing %q: %+v", decoded, err) + } + *s = *out + return nil +} + +func parseInfrastructureEncryptionState(input string) (*InfrastructureEncryptionState, error) { + vals := map[string]InfrastructureEncryptionState{ + "disabled": InfrastructureEncryptionStateDisabled, + "enabled": InfrastructureEncryptionStateEnabled, + } + if v, ok := vals[strings.ToLower(input)]; ok { + return &v, nil + } + + // otherwise presume it's an undefined value and best-effort it + out := InfrastructureEncryptionState(input) + return &out, nil +} + type ProvisioningState string const ( diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/id_backupvault.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/id_backupvault.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/id_backupvault.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/id_backupvault.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/id_providerlocation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/id_providerlocation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/id_providerlocation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/id_providerlocation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_checknameavailability.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_checknameavailability.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_checknameavailability.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_checknameavailability.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_createorupdate.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_createorupdate.go similarity index 60% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_createorupdate.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_createorupdate.go index beb523cbdf54..0e1892eb095c 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_createorupdate.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_createorupdate.go @@ -21,16 +21,44 @@ type CreateOrUpdateOperationResponse struct { Model *BackupVaultResource } +type CreateOrUpdateOperationOptions struct { + XMsAuthorizationAuxiliary *string +} + +func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions { + return CreateOrUpdateOperationOptions{} +} + +func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.XMsAuthorizationAuxiliary != nil { + out.Append("x-ms-authorization-auxiliary", fmt.Sprintf("%v", *o.XMsAuthorizationAuxiliary)) + } + return &out +} + +func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + // CreateOrUpdate ... -func (c BackupVaultsClient) CreateOrUpdate(ctx context.Context, id BackupVaultId, input BackupVaultResource) (result CreateOrUpdateOperationResponse, err error) { +func (c BackupVaultsClient) CreateOrUpdate(ctx context.Context, id BackupVaultId, input BackupVaultResource, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusCreated, http.StatusOK, }, - HttpMethod: http.MethodPut, - Path: id.ID(), + HttpMethod: http.MethodPut, + Path: id.ID(), + OptionsObject: options, } req, err := c.Client.NewRequest(ctx, opts) @@ -61,8 +89,8 @@ func (c BackupVaultsClient) CreateOrUpdate(ctx context.Context, id BackupVaultId } // CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed -func (c BackupVaultsClient) CreateOrUpdateThenPoll(ctx context.Context, id BackupVaultId, input BackupVaultResource) error { - result, err := c.CreateOrUpdate(ctx, id, input) +func (c BackupVaultsClient) CreateOrUpdateThenPoll(ctx context.Context, id BackupVaultId, input BackupVaultResource, options CreateOrUpdateOperationOptions) error { + result, err := c.CreateOrUpdate(ctx, id, input, options) if err != nil { return fmt.Errorf("performing CreateOrUpdate: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_getinresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_getinresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_getinresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_getinresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_getinsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_getinsubscription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_getinsubscription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_getinsubscription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_update.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_update.go similarity index 62% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_update.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_update.go index 6f03e4f28d16..999efb3f7274 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/method_update.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/method_update.go @@ -21,16 +21,44 @@ type UpdateOperationResponse struct { Model *BackupVaultResource } +type UpdateOperationOptions struct { + XMsAuthorizationAuxiliary *string +} + +func DefaultUpdateOperationOptions() UpdateOperationOptions { + return UpdateOperationOptions{} +} + +func (o UpdateOperationOptions) ToHeaders() *client.Headers { + out := client.Headers{} + if o.XMsAuthorizationAuxiliary != nil { + out.Append("x-ms-authorization-auxiliary", fmt.Sprintf("%v", *o.XMsAuthorizationAuxiliary)) + } + return &out +} + +func (o UpdateOperationOptions) ToOData() *odata.Query { + out := odata.Query{} + return &out +} + +func (o UpdateOperationOptions) ToQuery() *client.QueryParams { + out := client.QueryParams{} + + return &out +} + // Update ... -func (c BackupVaultsClient) Update(ctx context.Context, id BackupVaultId, input PatchResourceRequestInput) (result UpdateOperationResponse, err error) { +func (c BackupVaultsClient) Update(ctx context.Context, id BackupVaultId, input PatchResourceRequestInput, options UpdateOperationOptions) (result UpdateOperationResponse, err error) { opts := client.RequestOptions{ ContentType: "application/json; charset=utf-8", ExpectedStatusCodes: []int{ http.StatusAccepted, http.StatusOK, }, - HttpMethod: http.MethodPatch, - Path: id.ID(), + HttpMethod: http.MethodPatch, + Path: id.ID(), + OptionsObject: options, } req, err := c.Client.NewRequest(ctx, opts) @@ -61,8 +89,8 @@ func (c BackupVaultsClient) Update(ctx context.Context, id BackupVaultId, input } // UpdateThenPoll performs Update then polls until it's completed -func (c BackupVaultsClient) UpdateThenPoll(ctx context.Context, id BackupVaultId, input PatchResourceRequestInput) error { - result, err := c.Update(ctx, id, input) +func (c BackupVaultsClient) UpdateThenPoll(ctx context.Context, id BackupVaultId, input PatchResourceRequestInput, options UpdateOperationOptions) error { + result, err := c.Update(ctx, id, input, options) if err != nil { return fmt.Errorf("performing Update: %+v", err) } diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_azuremonitoralertsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_azuremonitoralertsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_azuremonitoralertsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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/2024-04-01/backupvaults/model_backupvault.go similarity index 78% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_backupvault.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_backupvault.go index 36e30b2dca5a..e4b439669fc1 100644 --- 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/2024-04-01/backupvaults/model_backupvault.go @@ -4,10 +4,13 @@ package backupvaults // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type BackupVault struct { + BcdrSecurityLevel *BCDRSecurityLevel `json:"bcdrSecurityLevel,omitempty"` FeatureSettings *FeatureSettings `json:"featureSettings,omitempty"` IsVaultProtectedByResourceGuard *bool `json:"isVaultProtectedByResourceGuard,omitempty"` MonitoringSettings *MonitoringSettings `json:"monitoringSettings,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` + ReplicatedRegions *[]string `json:"replicatedRegions,omitempty"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` ResourceMoveDetails *ResourceMoveDetails `json:"resourceMoveDetails,omitempty"` ResourceMoveState *ResourceMoveState `json:"resourceMoveState,omitempty"` SecureScore *SecureScoreLevel `json:"secureScore,omitempty"` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_backupvaultresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_backupvaultresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_backupvaultresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_backupvaultresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_checknameavailabilityrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_checknameavailabilityrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_checknameavailabilityrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_checknameavailabilityrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_checknameavailabilityresult.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_checknameavailabilityresult.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_checknameavailabilityresult.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_checknameavailabilityresult.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_cmkkekidentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_cmkkekidentity.go new file mode 100644 index 000000000000..5d5fa1569f4d --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_cmkkekidentity.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 CmkKekIdentity struct { + IdentityId *string `json:"identityId,omitempty"` + IdentityType *IdentityType `json:"identityType,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_cmkkeyvaultproperties.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_cmkkeyvaultproperties.go new file mode 100644 index 000000000000..b17ed0aea422 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_cmkkeyvaultproperties.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 CmkKeyVaultProperties struct { + KeyUri *string `json:"keyUri,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_crossregionrestoresettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_crossregionrestoresettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_crossregionrestoresettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_crossregionrestoresettings.go 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/2024-04-01/backupvaults/model_crosssubscriptionrestoresettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_crosssubscriptionrestoresettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_crosssubscriptionrestoresettings.go 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/2024-04-01/backupvaults/model_dppidentitydetails.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_dppidentitydetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_dppidentitydetails.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_encryptionsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_encryptionsettings.go new file mode 100644 index 000000000000..89ddfc7332b5 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_encryptionsettings.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 EncryptionSettings struct { + InfrastructureEncryption *InfrastructureEncryptionState `json:"infrastructureEncryption,omitempty"` + KekIdentity *CmkKekIdentity `json:"kekIdentity,omitempty"` + KeyVaultProperties *CmkKeyVaultProperties `json:"keyVaultProperties,omitempty"` + State *EncryptionState `json:"state,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/2024-04-01/backupvaults/model_featuresettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_featuresettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_featuresettings.go 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/2024-04-01/backupvaults/model_immutabilitysettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_immutabilitysettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_immutabilitysettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_monitoringsettings.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_monitoringsettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_monitoringsettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_monitoringsettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_patchbackupvaultinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_patchbackupvaultinput.go new file mode 100644 index 000000000000..19f63cb60495 --- /dev/null +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_patchbackupvaultinput.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 PatchBackupVaultInput struct { + FeatureSettings *FeatureSettings `json:"featureSettings,omitempty"` + MonitoringSettings *MonitoringSettings `json:"monitoringSettings,omitempty"` + ResourceGuardOperationRequests *[]string `json:"resourceGuardOperationRequests,omitempty"` + SecuritySettings *SecuritySettings `json:"securitySettings,omitempty"` +} diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_patchresourcerequestinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_patchresourcerequestinput.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_patchresourcerequestinput.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_patchresourcerequestinput.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_resourcemovedetails.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_resourcemovedetails.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_resourcemovedetails.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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/2024-04-01/backupvaults/model_securitysettings.go similarity index 82% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_securitysettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_securitysettings.go index f16b74e6a449..599a66600d92 100644 --- 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/2024-04-01/backupvaults/model_securitysettings.go @@ -4,6 +4,7 @@ package backupvaults // Licensed under the MIT License. See NOTICE.txt in the project root for license information. type SecuritySettings struct { + EncryptionSettings *EncryptionSettings `json:"encryptionSettings,omitempty"` 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/2024-04-01/backupvaults/model_softdeletesettings.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_softdeletesettings.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_softdeletesettings.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_storagesetting.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_storagesetting.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_storagesetting.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_storagesetting.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_userassignedidentity.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_userassignedidentity.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/model_userassignedidentity.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/model_userassignedidentity.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults/version.go index 4f9316699c26..fa80e7e1c215 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/backupvaults/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 = "2023-05-01" +const defaultApiVersion = "2024-04-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/2023-05-01/resourceguards/README.md b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/README.md similarity index 98% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/README.md rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/README.md index f58c7ea4b0b1..5e5686808849 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/README.md +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/README.md @@ -1,7 +1,7 @@ -## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards` Documentation +## `github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards` Documentation -The `resourceguards` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2023-05-01`). +The `resourceguards` SDK allows for interaction with the Azure Resource Manager Service `dataprotection` (API Version `2024-04-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). @@ -9,7 +9,7 @@ This readme covers example usages, but further information on [using this SDK ca ```go import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" -import "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards" +import "github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards" ``` diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/client.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/client.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/client.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/client.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/constants.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/constants.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/constants.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/constants.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_deleteprotecteditemrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_deleteprotecteditemrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_deleteprotecteditemrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_deleteprotecteditemrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_deleteresourceguardproxyrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_deleteresourceguardproxyrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_deleteresourceguardproxyrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_deleteresourceguardproxyrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_disablesoftdeleterequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_disablesoftdeleterequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_disablesoftdeleterequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_disablesoftdeleterequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_getbackupsecuritypinrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_getbackupsecuritypinrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_getbackupsecuritypinrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_getbackupsecuritypinrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_resourceguard.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_resourceguard.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_resourceguard.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_resourceguard.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_updateprotecteditemrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_updateprotecteditemrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_updateprotecteditemrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_updateprotecteditemrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_updateprotectionpolicyrequest.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_updateprotectionpolicyrequest.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/id_updateprotectionpolicyrequest.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/id_updateprotectionpolicyrequest.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_delete.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_delete.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_delete.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_delete.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_get.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_get.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_get.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_get.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getbackupsecuritypinrequestsobjects.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultbackupsecuritypinrequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultbackupsecuritypinrequestsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultbackupsecuritypinrequestsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultbackupsecuritypinrequestsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultdeleteprotecteditemrequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdeleteprotecteditemrequestsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultdeleteprotecteditemrequestsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdeleteprotecteditemrequestsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultdeleteresourceguardproxyrequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdeleteresourceguardproxyrequestsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultdeleteresourceguardproxyrequestsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdeleteresourceguardproxyrequestsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultdisablesoftdeleterequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdisablesoftdeleterequestsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultdisablesoftdeleterequestsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultdisablesoftdeleterequestsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultupdateprotecteditemrequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultupdateprotecteditemrequestsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultupdateprotecteditemrequestsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultupdateprotecteditemrequestsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultupdateprotectionpolicyrequestsobject.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultupdateprotectionpolicyrequestsobject.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdefaultupdateprotectionpolicyrequestsobject.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdefaultupdateprotectionpolicyrequestsobject.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdeleteprotecteditemrequestsobjects.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdeleteresourceguardproxyrequestsobjects.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getdisablesoftdeleterequestsobjects.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getresourcesinresourcegroup.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getresourcesinresourcegroup.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getresourcesinresourcegroup.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getresourcesinresourcegroup.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getresourcesinsubscription.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getresourcesinsubscription.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getresourcesinsubscription.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getresourcesinsubscription.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getupdateprotecteditemrequestsobjects.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_getupdateprotectionpolicyrequestsobjects.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_patch.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_patch.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_patch.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_patch.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_put.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_put.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/method_put.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/method_put.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_dppbaseresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/model_dppbaseresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_dppbaseresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/model_dppbaseresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_patchresourceguardinput.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/model_patchresourceguardinput.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_patchresourceguardinput.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/model_patchresourceguardinput.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_resourceguard.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/model_resourceguard.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_resourceguard.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/model_resourceguard.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_resourceguardoperation.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/model_resourceguardoperation.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_resourceguardoperation.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/model_resourceguardoperation.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_resourceguardresource.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/model_resourceguardresource.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/model_resourceguardresource.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/model_resourceguardresource.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/predicates.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/predicates.go similarity index 100% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/predicates.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/predicates.go diff --git a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/version.go b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/version.go similarity index 88% rename from vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/version.go rename to vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/resourceguards/version.go index 45497b87c082..501ce9c5d02d 100644 --- a/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2023-05-01/resourceguards/version.go +++ b/vendor/github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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 = "2023-05-01" +const defaultApiVersion = "2024-04-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 68d3bce344f6..7ab1976a65c2 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -429,10 +429,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/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/dataprotection/2024-04-01/backupinstances +github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backuppolicies +github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-01/backupvaults +github.com/hashicorp/go-azure-sdk/resource-manager/dataprotection/2024-04-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