From 50fdf2eacc14a2d1aeecbea1a3cbda1f94935356 Mon Sep 17 00:00:00 2001 From: Bevan Arps Date: Thu, 18 Apr 2024 14:55:36 +1200 Subject: [PATCH] Update generated files --- ...ault_resource_status_arm_types_gen_test.go | 8 +++++-- .../backup_vault_spec_arm_types_gen_test.go | 8 +++++-- .../backup_vault_types_gen_test.go | 12 +++++++--- ...backup_instance_spec_arm_types_gen_test.go | 4 +++- ...ckup_instance_status_arm_types_gen_test.go | 20 ++++++++++++---- ...p_vaults_backup_instance_types_gen_test.go | 24 ++++++++++++++----- .../storage/backup_vault_types_gen_test.go | 12 +++++++--- ...p_vaults_backup_instance_types_gen_test.go | 24 ++++++++++++++----- ...protection_backupinstance_20231101_test.go | 2 +- 9 files changed, 85 insertions(+), 29 deletions(-) diff --git a/v2/api/dataprotection/v1api20231101/backup_vault_resource_status_arm_types_gen_test.go b/v2/api/dataprotection/v1api20231101/backup_vault_resource_status_arm_types_gen_test.go index 82c50e8d030..41f479d382d 100644 --- a/v2/api/dataprotection/v1api20231101/backup_vault_resource_status_arm_types_gen_test.go +++ b/v2/api/dataprotection/v1api20231101/backup_vault_resource_status_arm_types_gen_test.go @@ -88,7 +88,9 @@ func AddIndependentPropertyGeneratorsForBackupVaultResource_STATUS_ARM(gens map[ gens["Id"] = gen.PtrOf(gen.AlphaString()) gens["Location"] = gen.PtrOf(gen.AlphaString()) gens["Name"] = gen.PtrOf(gen.AlphaString()) - gens["Tags"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Tags"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["Type"] = gen.PtrOf(gen.AlphaString()) } @@ -276,7 +278,9 @@ func AddIndependentPropertyGeneratorsForDppIdentityDetails_STATUS_ARM(gens map[s // AddRelatedPropertyGeneratorsForDppIdentityDetails_STATUS_ARM is a factory method for creating gopter generators func AddRelatedPropertyGeneratorsForDppIdentityDetails_STATUS_ARM(gens map[string]gopter.Gen) { - gens["UserAssignedIdentities"] = gen.MapOf(gen.AlphaString(), UserAssignedIdentity_STATUS_ARMGenerator()) + gens["UserAssignedIdentities"] = gen.MapOf( + gen.AlphaString(), + UserAssignedIdentity_STATUS_ARMGenerator()) } func Test_SystemData_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { diff --git a/v2/api/dataprotection/v1api20231101/backup_vault_spec_arm_types_gen_test.go b/v2/api/dataprotection/v1api20231101/backup_vault_spec_arm_types_gen_test.go index 6ca2ac31198..f06012000b6 100644 --- a/v2/api/dataprotection/v1api20231101/backup_vault_spec_arm_types_gen_test.go +++ b/v2/api/dataprotection/v1api20231101/backup_vault_spec_arm_types_gen_test.go @@ -86,7 +86,9 @@ func BackupVault_Spec_ARMGenerator() gopter.Gen { func AddIndependentPropertyGeneratorsForBackupVault_Spec_ARM(gens map[string]gopter.Gen) { gens["Location"] = gen.PtrOf(gen.AlphaString()) gens["Name"] = gen.AlphaString() - gens["Tags"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Tags"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) } // AddRelatedPropertyGeneratorsForBackupVault_Spec_ARM is a factory method for creating gopter generators @@ -245,7 +247,9 @@ func AddIndependentPropertyGeneratorsForDppIdentityDetails_ARM(gens map[string]g // AddRelatedPropertyGeneratorsForDppIdentityDetails_ARM is a factory method for creating gopter generators func AddRelatedPropertyGeneratorsForDppIdentityDetails_ARM(gens map[string]gopter.Gen) { - gens["UserAssignedIdentities"] = gen.MapOf(gen.AlphaString(), UserAssignedIdentityDetails_ARMGenerator()) + gens["UserAssignedIdentities"] = gen.MapOf( + gen.AlphaString(), + UserAssignedIdentityDetails_ARMGenerator()) } func Test_FeatureSettings_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { diff --git a/v2/api/dataprotection/v1api20231101/backup_vault_types_gen_test.go b/v2/api/dataprotection/v1api20231101/backup_vault_types_gen_test.go index 59e6ef15e25..7e614db9d5f 100644 --- a/v2/api/dataprotection/v1api20231101/backup_vault_types_gen_test.go +++ b/v2/api/dataprotection/v1api20231101/backup_vault_types_gen_test.go @@ -274,7 +274,9 @@ func BackupVault_SpecGenerator() gopter.Gen { func AddIndependentPropertyGeneratorsForBackupVault_Spec(gens map[string]gopter.Gen) { gens["AzureName"] = gen.AlphaString() gens["Location"] = gen.PtrOf(gen.AlphaString()) - gens["Tags"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Tags"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) } // AddRelatedPropertyGeneratorsForBackupVault_Spec is a factory method for creating gopter generators @@ -397,7 +399,9 @@ func AddIndependentPropertyGeneratorsForBackupVaultResource_STATUS(gens map[stri gens["Id"] = gen.PtrOf(gen.AlphaString()) gens["Location"] = gen.PtrOf(gen.AlphaString()) gens["Name"] = gen.PtrOf(gen.AlphaString()) - gens["Tags"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Tags"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["Type"] = gen.PtrOf(gen.AlphaString()) } @@ -1006,7 +1010,9 @@ func AddIndependentPropertyGeneratorsForDppIdentityDetails_STATUS(gens map[strin // AddRelatedPropertyGeneratorsForDppIdentityDetails_STATUS is a factory method for creating gopter generators func AddRelatedPropertyGeneratorsForDppIdentityDetails_STATUS(gens map[string]gopter.Gen) { - gens["UserAssignedIdentities"] = gen.MapOf(gen.AlphaString(), UserAssignedIdentity_STATUSGenerator()) + gens["UserAssignedIdentities"] = gen.MapOf( + gen.AlphaString(), + UserAssignedIdentity_STATUSGenerator()) } func Test_SystemData_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { diff --git a/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_spec_arm_types_gen_test.go b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_spec_arm_types_gen_test.go index 26f92564fe0..db0a55b5016 100644 --- a/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_spec_arm_types_gen_test.go +++ b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_spec_arm_types_gen_test.go @@ -85,7 +85,9 @@ func BackupVaults_BackupInstance_Spec_ARMGenerator() gopter.Gen { // AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_Spec_ARM is a factory method for creating gopter generators func AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_Spec_ARM(gens map[string]gopter.Gen) { gens["Name"] = gen.AlphaString() - gens["Tags"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Tags"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) } // AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_Spec_ARM is a factory method for creating gopter generators diff --git a/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_status_arm_types_gen_test.go b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_status_arm_types_gen_test.go index 0da33432610..9d08479080d 100644 --- a/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_status_arm_types_gen_test.go +++ b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_status_arm_types_gen_test.go @@ -86,7 +86,9 @@ func BackupVaults_BackupInstance_STATUS_ARMGenerator() gopter.Gen { func AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_STATUS_ARM(gens map[string]gopter.Gen) { gens["Id"] = gen.PtrOf(gen.AlphaString()) gens["Name"] = gen.PtrOf(gen.AlphaString()) - gens["Tags"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Tags"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["Type"] = gen.PtrOf(gen.AlphaString()) } @@ -714,7 +716,9 @@ func AddIndependentPropertyGeneratorsForUserFacingError_STATUS_ARM(gens map[stri gens["IsRetryable"] = gen.PtrOf(gen.Bool()) gens["IsUserError"] = gen.PtrOf(gen.Bool()) gens["Message"] = gen.PtrOf(gen.AlphaString()) - gens["Properties"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Properties"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["RecommendedAction"] = gen.SliceOf(gen.AlphaString()) gens["Target"] = gen.PtrOf(gen.AlphaString()) } @@ -861,7 +865,9 @@ func InnerError_STATUS_ARMGenerator() gopter.Gen { // AddIndependentPropertyGeneratorsForInnerError_STATUS_ARM is a factory method for creating gopter generators func AddIndependentPropertyGeneratorsForInnerError_STATUS_ARM(gens map[string]gopter.Gen) { - gens["AdditionalInfo"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["AdditionalInfo"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["Code"] = gen.PtrOf(gen.AlphaString()) } @@ -1078,7 +1084,9 @@ func AddIndependentPropertyGeneratorsForUserFacingError_STATUS_Unrolled_ARM(gens gens["IsRetryable"] = gen.PtrOf(gen.Bool()) gens["IsUserError"] = gen.PtrOf(gen.Bool()) gens["Message"] = gen.PtrOf(gen.AlphaString()) - gens["Properties"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Properties"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["RecommendedAction"] = gen.SliceOf(gen.AlphaString()) gens["Target"] = gen.PtrOf(gen.AlphaString()) } @@ -1348,7 +1356,9 @@ func InnerError_STATUS_Unrolled_ARMGenerator() gopter.Gen { // AddIndependentPropertyGeneratorsForInnerError_STATUS_Unrolled_ARM is a factory method for creating gopter generators func AddIndependentPropertyGeneratorsForInnerError_STATUS_Unrolled_ARM(gens map[string]gopter.Gen) { - gens["AdditionalInfo"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["AdditionalInfo"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["Code"] = gen.PtrOf(gen.AlphaString()) } diff --git a/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_types_gen_test.go b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_types_gen_test.go index 0cfabb4a87d..c4a20a55f07 100644 --- a/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_types_gen_test.go +++ b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_types_gen_test.go @@ -275,7 +275,9 @@ func BackupVaults_BackupInstance_SpecGenerator() gopter.Gen { // AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_Spec is a factory method for creating gopter generators func AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_Spec(gens map[string]gopter.Gen) { gens["AzureName"] = gen.AlphaString() - gens["Tags"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Tags"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) } // AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_Spec is a factory method for creating gopter generators @@ -394,7 +396,9 @@ func BackupVaults_BackupInstance_STATUSGenerator() gopter.Gen { func AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_STATUS(gens map[string]gopter.Gen) { gens["Id"] = gen.PtrOf(gen.AlphaString()) gens["Name"] = gen.PtrOf(gen.AlphaString()) - gens["Tags"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Tags"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["Type"] = gen.PtrOf(gen.AlphaString()) } @@ -2035,7 +2039,9 @@ func AddIndependentPropertyGeneratorsForUserFacingError_STATUS(gens map[string]g gens["IsRetryable"] = gen.PtrOf(gen.Bool()) gens["IsUserError"] = gen.PtrOf(gen.Bool()) gens["Message"] = gen.PtrOf(gen.AlphaString()) - gens["Properties"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Properties"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["RecommendedAction"] = gen.SliceOf(gen.AlphaString()) gens["Target"] = gen.PtrOf(gen.AlphaString()) } @@ -2376,7 +2382,9 @@ func InnerError_STATUSGenerator() gopter.Gen { // AddIndependentPropertyGeneratorsForInnerError_STATUS is a factory method for creating gopter generators func AddIndependentPropertyGeneratorsForInnerError_STATUS(gens map[string]gopter.Gen) { - gens["AdditionalInfo"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["AdditionalInfo"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["Code"] = gen.PtrOf(gen.AlphaString()) } @@ -2939,7 +2947,9 @@ func AddIndependentPropertyGeneratorsForUserFacingError_STATUS_Unrolled(gens map gens["IsRetryable"] = gen.PtrOf(gen.Bool()) gens["IsUserError"] = gen.PtrOf(gen.Bool()) gens["Message"] = gen.PtrOf(gen.AlphaString()) - gens["Properties"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Properties"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["RecommendedAction"] = gen.SliceOf(gen.AlphaString()) gens["Target"] = gen.PtrOf(gen.AlphaString()) } @@ -3705,7 +3715,9 @@ func InnerError_STATUS_UnrolledGenerator() gopter.Gen { // AddIndependentPropertyGeneratorsForInnerError_STATUS_Unrolled is a factory method for creating gopter generators func AddIndependentPropertyGeneratorsForInnerError_STATUS_Unrolled(gens map[string]gopter.Gen) { - gens["AdditionalInfo"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["AdditionalInfo"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["Code"] = gen.PtrOf(gen.AlphaString()) } diff --git a/v2/api/dataprotection/v1api20231101/storage/backup_vault_types_gen_test.go b/v2/api/dataprotection/v1api20231101/storage/backup_vault_types_gen_test.go index 3194e2b88a8..4ad861eac3e 100644 --- a/v2/api/dataprotection/v1api20231101/storage/backup_vault_types_gen_test.go +++ b/v2/api/dataprotection/v1api20231101/storage/backup_vault_types_gen_test.go @@ -147,7 +147,9 @@ func AddIndependentPropertyGeneratorsForBackupVault_Spec(gens map[string]gopter. gens["AzureName"] = gen.AlphaString() gens["Location"] = gen.PtrOf(gen.AlphaString()) gens["OriginalVersion"] = gen.AlphaString() - gens["Tags"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Tags"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) } // AddRelatedPropertyGeneratorsForBackupVault_Spec is a factory method for creating gopter generators @@ -228,7 +230,9 @@ func AddIndependentPropertyGeneratorsForBackupVaultResource_STATUS(gens map[stri gens["Id"] = gen.PtrOf(gen.AlphaString()) gens["Location"] = gen.PtrOf(gen.AlphaString()) gens["Name"] = gen.PtrOf(gen.AlphaString()) - gens["Tags"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Tags"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["Type"] = gen.PtrOf(gen.AlphaString()) } @@ -607,7 +611,9 @@ func AddIndependentPropertyGeneratorsForDppIdentityDetails_STATUS(gens map[strin // AddRelatedPropertyGeneratorsForDppIdentityDetails_STATUS is a factory method for creating gopter generators func AddRelatedPropertyGeneratorsForDppIdentityDetails_STATUS(gens map[string]gopter.Gen) { - gens["UserAssignedIdentities"] = gen.MapOf(gen.AlphaString(), UserAssignedIdentity_STATUSGenerator()) + gens["UserAssignedIdentities"] = gen.MapOf( + gen.AlphaString(), + UserAssignedIdentity_STATUSGenerator()) } func Test_SystemData_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { diff --git a/v2/api/dataprotection/v1api20231101/storage/backup_vaults_backup_instance_types_gen_test.go b/v2/api/dataprotection/v1api20231101/storage/backup_vaults_backup_instance_types_gen_test.go index 8c53c47a005..fa82dd8aebc 100644 --- a/v2/api/dataprotection/v1api20231101/storage/backup_vaults_backup_instance_types_gen_test.go +++ b/v2/api/dataprotection/v1api20231101/storage/backup_vaults_backup_instance_types_gen_test.go @@ -148,7 +148,9 @@ func BackupVaults_BackupInstance_SpecGenerator() gopter.Gen { func AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_Spec(gens map[string]gopter.Gen) { gens["AzureName"] = gen.AlphaString() gens["OriginalVersion"] = gen.AlphaString() - gens["Tags"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Tags"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) } // AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_Spec is a factory method for creating gopter generators @@ -225,7 +227,9 @@ func BackupVaults_BackupInstance_STATUSGenerator() gopter.Gen { func AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_STATUS(gens map[string]gopter.Gen) { gens["Id"] = gen.PtrOf(gen.AlphaString()) gens["Name"] = gen.PtrOf(gen.AlphaString()) - gens["Tags"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Tags"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["Type"] = gen.PtrOf(gen.AlphaString()) } @@ -1260,7 +1264,9 @@ func AddIndependentPropertyGeneratorsForUserFacingError_STATUS(gens map[string]g gens["IsRetryable"] = gen.PtrOf(gen.Bool()) gens["IsUserError"] = gen.PtrOf(gen.Bool()) gens["Message"] = gen.PtrOf(gen.AlphaString()) - gens["Properties"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Properties"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["RecommendedAction"] = gen.SliceOf(gen.AlphaString()) gens["Target"] = gen.PtrOf(gen.AlphaString()) } @@ -1475,7 +1481,9 @@ func InnerError_STATUSGenerator() gopter.Gen { // AddIndependentPropertyGeneratorsForInnerError_STATUS is a factory method for creating gopter generators func AddIndependentPropertyGeneratorsForInnerError_STATUS(gens map[string]gopter.Gen) { - gens["AdditionalInfo"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["AdditionalInfo"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["Code"] = gen.PtrOf(gen.AlphaString()) } @@ -1828,7 +1836,9 @@ func AddIndependentPropertyGeneratorsForUserFacingError_STATUS_Unrolled(gens map gens["IsRetryable"] = gen.PtrOf(gen.Bool()) gens["IsUserError"] = gen.PtrOf(gen.Bool()) gens["Message"] = gen.PtrOf(gen.AlphaString()) - gens["Properties"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["Properties"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["RecommendedAction"] = gen.SliceOf(gen.AlphaString()) gens["Target"] = gen.PtrOf(gen.AlphaString()) } @@ -2300,7 +2310,9 @@ func InnerError_STATUS_UnrolledGenerator() gopter.Gen { // AddIndependentPropertyGeneratorsForInnerError_STATUS_Unrolled is a factory method for creating gopter generators func AddIndependentPropertyGeneratorsForInnerError_STATUS_Unrolled(gens map[string]gopter.Gen) { - gens["AdditionalInfo"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) + gens["AdditionalInfo"] = gen.MapOf( + gen.AlphaString(), + gen.AlphaString()) gens["Code"] = gen.PtrOf(gen.AlphaString()) } diff --git a/v2/internal/controllers/crd_dataprotection_backupinstance_20231101_test.go b/v2/internal/controllers/crd_dataprotection_backupinstance_20231101_test.go index f7d66a13e7d..d828fd109be 100644 --- a/v2/internal/controllers/crd_dataprotection_backupinstance_20231101_test.go +++ b/v2/internal/controllers/crd_dataprotection_backupinstance_20231101_test.go @@ -213,7 +213,7 @@ func Test_Dataprotection_Backupinstace_20231101_CRUD(t *testing.T) { }, } - //create backup instance + // create backup instance biName := "asotestbackupinstance" backupInstance := &dataprotection.BackupVaultsBackupInstance{ ObjectMeta: tc.MakeObjectMeta(biName),