diff --git a/docs/hugo/content/reference/_index.md b/docs/hugo/content/reference/_index.md index d4f960268a4..05328951577 100644 --- a/docs/hugo/content/reference/_index.md +++ b/docs/hugo/content/reference/_index.md @@ -214,14 +214,13 @@ To install the CRDs for these resources, your ASO configuration must include `da These resource(s) are available for use in the current release of ASO. Different versions of a given resource reflect different versions of the Azure ARM API. -| Resource | ARM Version | CRD Version | Supported From | Sample | -|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------|---------------|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------| -| BackupVault | 2023-12-01 | v1api20231201 | v2.2.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20231201/v1api20231201_backupvault.yaml) | -| [BackupVault](https://azure.github.io/azure-service-operator/reference/dataprotection/v1api20230101/#dataprotection.azure.com/v1api20230101.BackupVault) | 2023-01-01 | v1api20230101 | v2.2.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20230101/v1api20230101_backupvault.yaml) | -| BackupVaultsBackupInstance | 2023-12-01 | v1api20231201 | v2.5.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20231201/v1api20231201_backupvaultsbackupinstance.yaml) | -| [BackupVaultsBackupInstance](https://azure.github.io/azure-service-operator/reference/dataprotection/v1api20230101/#dataprotection.azure.com/v1api20230101.BackupVaultsBackupInstance) | 2023-01-01 | v1api20230101 | v2.5.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20230101/v1api20230101_backupvaultsbackupinstance.yaml) | -| BackupVaultsBackupPolicy | 2023-12-01 | v1api20231201 | v2.2.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20231201/v1api20231201_backupvaultsbackuppolicy.yaml) | -| [BackupVaultsBackupPolicy](https://azure.github.io/azure-service-operator/reference/dataprotection/v1api20230101/#dataprotection.azure.com/v1api20230101.BackupVaultsBackupPolicy) | 2023-01-01 | v1api20230101 | v2.2.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20230101/v1api20230101_backupvaultsbackuppolicy.yaml) | +| Resource | ARM Version | CRD Version | Supported From | Sample | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------|---------------|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------| +| BackupVault | 2023-11-01 | v1api20231101 | v2.2.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20231101/v1api20231101_backupvault.yaml) | +| [BackupVault](https://azure.github.io/azure-service-operator/reference/dataprotection/v1api20230101/#dataprotection.azure.com/v1api20230101.BackupVault) | 2023-01-01 | v1api20230101 | v2.2.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20230101/v1api20230101_backupvault.yaml) | +| BackupVaultsBackupInstance | 2023-11-01 | v1api20231101 | v2.5.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20231101/v1api20231101_backupvaultsbackupinstance.yaml) | +| BackupVaultsBackupPolicy | 2023-11-01 | v1api20231101 | v2.2.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20231101/v1api20231101_backupvaultsbackuppolicy.yaml) | +| [BackupVaultsBackupPolicy](https://azure.github.io/azure-service-operator/reference/dataprotection/v1api20230101/#dataprotection.azure.com/v1api20230101.BackupVaultsBackupPolicy) | 2023-01-01 | v1api20230101 | v2.2.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20230101/v1api20230101_backupvaultsbackuppolicy.yaml) | ## DBforMariaDB diff --git a/docs/hugo/content/reference/dataprotection/_index.md b/docs/hugo/content/reference/dataprotection/_index.md index 96285ed221c..ab3057f2103 100644 --- a/docs/hugo/content/reference/dataprotection/_index.md +++ b/docs/hugo/content/reference/dataprotection/_index.md @@ -9,12 +9,11 @@ To install the CRDs for these resources, your ASO configuration must include `da These resource(s) are available for use in the current release of ASO. Different versions of a given resource reflect different versions of the Azure ARM API. -| Resource | ARM Version | CRD Version | Supported From | Sample | -|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------|---------------|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------| -| BackupVault | 2023-12-01 | v1api20231201 | v2.2.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20231201/v1api20231201_backupvault.yaml) | -| [BackupVault](https://azure.github.io/azure-service-operator/reference/dataprotection/v1api20230101/#dataprotection.azure.com/v1api20230101.BackupVault) | 2023-01-01 | v1api20230101 | v2.2.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20230101/v1api20230101_backupvault.yaml) | -| BackupVaultsBackupInstance | 2023-12-01 | v1api20231201 | v2.5.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20231201/v1api20231201_backupvaultsbackupinstance.yaml) | -| [BackupVaultsBackupInstance](https://azure.github.io/azure-service-operator/reference/dataprotection/v1api20230101/#dataprotection.azure.com/v1api20230101.BackupVaultsBackupInstance) | 2023-01-01 | v1api20230101 | v2.5.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20230101/v1api20230101_backupvaultsbackupinstance.yaml) | -| BackupVaultsBackupPolicy | 2023-12-01 | v1api20231201 | v2.2.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20231201/v1api20231201_backupvaultsbackuppolicy.yaml) | -| [BackupVaultsBackupPolicy](https://azure.github.io/azure-service-operator/reference/dataprotection/v1api20230101/#dataprotection.azure.com/v1api20230101.BackupVaultsBackupPolicy) | 2023-01-01 | v1api20230101 | v2.2.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20230101/v1api20230101_backupvaultsbackuppolicy.yaml) | +| Resource | ARM Version | CRD Version | Supported From | Sample | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------|---------------|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------| +| BackupVault | 2023-11-01 | v1api20231101 | v2.2.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20231101/v1api20231101_backupvault.yaml) | +| [BackupVault](https://azure.github.io/azure-service-operator/reference/dataprotection/v1api20230101/#dataprotection.azure.com/v1api20230101.BackupVault) | 2023-01-01 | v1api20230101 | v2.2.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20230101/v1api20230101_backupvault.yaml) | +| BackupVaultsBackupInstance | 2023-11-01 | v1api20231101 | v2.5.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20231101/v1api20231101_backupvaultsbackupinstance.yaml) | +| BackupVaultsBackupPolicy | 2023-11-01 | v1api20231101 | v2.2.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20231101/v1api20231101_backupvaultsbackuppolicy.yaml) | +| [BackupVaultsBackupPolicy](https://azure.github.io/azure-service-operator/reference/dataprotection/v1api20230101/#dataprotection.azure.com/v1api20230101.BackupVaultsBackupPolicy) | 2023-01-01 | v1api20230101 | v2.2.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/dataprotection/v1api20230101/v1api20230101_backupvaultsbackuppolicy.yaml) | diff --git a/v2/api/dataprotection/customizations/backup_vault_extension_types_gen.go b/v2/api/dataprotection/customizations/backup_vault_extension_types_gen.go index 21051c9b511..3804bfd67b9 100644 --- a/v2/api/dataprotection/customizations/backup_vault_extension_types_gen.go +++ b/v2/api/dataprotection/customizations/backup_vault_extension_types_gen.go @@ -6,8 +6,8 @@ package customizations import ( v20230101 "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101" v20230101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101/storage" - v20231201 "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" + v20231101 "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101" + v20231101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage" "github.com/Azure/azure-service-operator/v2/pkg/genruntime" ) @@ -19,6 +19,6 @@ func (extension *BackupVaultExtension) GetExtendedResources() []genruntime.Kuber return []genruntime.KubernetesResource{ &v20230101.BackupVault{}, &v20230101s.BackupVault{}, - &v20231201.BackupVault{}, - &v20231201s.BackupVault{}} + &v20231101.BackupVault{}, + &v20231101s.BackupVault{}} } diff --git a/v2/api/dataprotection/customizations/backup_vaults_backup_instance_extension_types_gen.go b/v2/api/dataprotection/customizations/backup_vaults_backup_instance_extension_types_gen.go index 28bde02381d..9d2da38fdbe 100644 --- a/v2/api/dataprotection/customizations/backup_vaults_backup_instance_extension_types_gen.go +++ b/v2/api/dataprotection/customizations/backup_vaults_backup_instance_extension_types_gen.go @@ -4,10 +4,8 @@ package customizations import ( - v20230101 "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101" - v20230101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101/storage" - v20231201 "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" + v20231101 "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101" + v20231101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage" "github.com/Azure/azure-service-operator/v2/pkg/genruntime" ) @@ -17,8 +15,6 @@ type BackupVaultsBackupInstanceExtension struct { // GetExtendedResources Returns the KubernetesResource slice for Resource versions func (extension *BackupVaultsBackupInstanceExtension) GetExtendedResources() []genruntime.KubernetesResource { return []genruntime.KubernetesResource{ - &v20230101.BackupVaultsBackupInstance{}, - &v20230101s.BackupVaultsBackupInstance{}, - &v20231201.BackupVaultsBackupInstance{}, - &v20231201s.BackupVaultsBackupInstance{}} + &v20231101.BackupVaultsBackupInstance{}, + &v20231101s.BackupVaultsBackupInstance{}} } diff --git a/v2/api/dataprotection/customizations/backup_vaults_backup_instance_extensions.go b/v2/api/dataprotection/customizations/backup_vaults_backup_instance_extensions.go index b8dcd463671..164c8a4bb6f 100644 --- a/v2/api/dataprotection/customizations/backup_vaults_backup_instance_extensions.go +++ b/v2/api/dataprotection/customizations/backup_vaults_backup_instance_extensions.go @@ -16,7 +16,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/conversion" armdataprotection "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v3" - dataprotection "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" + dataprotection "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage" "github.com/Azure/azure-service-operator/v2/internal/genericarmclient" "github.com/Azure/azure-service-operator/v2/internal/resolver" diff --git a/v2/api/dataprotection/customizations/backup_vaults_backup_policy_extension_types_gen.go b/v2/api/dataprotection/customizations/backup_vaults_backup_policy_extension_types_gen.go index bee1b40e1d0..fdfe8a48932 100644 --- a/v2/api/dataprotection/customizations/backup_vaults_backup_policy_extension_types_gen.go +++ b/v2/api/dataprotection/customizations/backup_vaults_backup_policy_extension_types_gen.go @@ -6,8 +6,8 @@ package customizations import ( v20230101 "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101" v20230101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101/storage" - v20231201 "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" + v20231101 "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101" + v20231101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage" "github.com/Azure/azure-service-operator/v2/pkg/genruntime" ) @@ -19,6 +19,6 @@ func (extension *BackupVaultsBackupPolicyExtension) GetExtendedResources() []gen return []genruntime.KubernetesResource{ &v20230101.BackupVaultsBackupPolicy{}, &v20230101s.BackupVaultsBackupPolicy{}, - &v20231201.BackupVaultsBackupPolicy{}, - &v20231201s.BackupVaultsBackupPolicy{}} + &v20231101.BackupVaultsBackupPolicy{}, + &v20231101s.BackupVaultsBackupPolicy{}} } diff --git a/v2/api/dataprotection/v1api20230101/backup_vault_types_gen_test.go b/v2/api/dataprotection/v1api20230101/backup_vault_types_gen_test.go index 74d92ec7591..7c043ada95b 100644 --- a/v2/api/dataprotection/v1api20230101/backup_vault_types_gen_test.go +++ b/v2/api/dataprotection/v1api20230101/backup_vault_types_gen_test.go @@ -6,7 +6,7 @@ package v1api20230101 import ( "encoding/json" v20230101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101/storage" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" + v20231101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/kr/pretty" @@ -37,7 +37,7 @@ func RunResourceConversionTestForBackupVault(subject BackupVault) string { copied := subject.DeepCopy() // Convert to our hub version - var hub v20231201s.BackupVault + var hub v20231101s.BackupVault err := copied.ConvertTo(&hub) if err != nil { return err.Error() diff --git a/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_spec_arm_types_gen.go b/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_spec_arm_types_gen.go deleted file mode 100644 index 46f219ba38a..00000000000 --- a/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_spec_arm_types_gen.go +++ /dev/null @@ -1,337 +0,0 @@ -// Code generated by azure-service-operator-codegen. DO NOT EDIT. -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -package v1api20230101 - -import ( - "encoding/json" - "github.com/Azure/azure-service-operator/v2/pkg/genruntime" -) - -type BackupVaults_BackupInstance_Spec_ARM struct { - Name string `json:"name,omitempty"` - - // Properties: BackupInstanceResource properties - Properties *BackupInstance_ARM `json:"properties,omitempty"` - - // Tags: Proxy Resource tags. - Tags map[string]string `json:"tags,omitempty"` -} - -var _ genruntime.ARMResourceSpec = &BackupVaults_BackupInstance_Spec_ARM{} - -// GetAPIVersion returns the ARM API version of the resource. This is always "2023-01-01" -func (instance BackupVaults_BackupInstance_Spec_ARM) GetAPIVersion() string { - return string(APIVersion_Value) -} - -// GetName returns the Name of the resource -func (instance *BackupVaults_BackupInstance_Spec_ARM) GetName() string { - return instance.Name -} - -// GetType returns the ARM Type of the resource. This is always "Microsoft.DataProtection/backupVaults/backupInstances" -func (instance *BackupVaults_BackupInstance_Spec_ARM) GetType() string { - return "Microsoft.DataProtection/backupVaults/backupInstances" -} - -// Backup Instance -type BackupInstance_ARM struct { - // DataSourceInfo: Gets or sets the data source information. - DataSourceInfo *Datasource_ARM `json:"dataSourceInfo,omitempty"` - - // DataSourceSetInfo: Gets or sets the data source set information. - DataSourceSetInfo *DatasourceSet_ARM `json:"dataSourceSetInfo,omitempty"` - - // DatasourceAuthCredentials: Credentials to use to authenticate with data source provider. - DatasourceAuthCredentials *AuthCredentials_ARM `json:"datasourceAuthCredentials,omitempty"` - - // FriendlyName: Gets or sets the Backup Instance friendly name. - FriendlyName *string `json:"friendlyName,omitempty"` - ObjectType *string `json:"objectType,omitempty"` - - // PolicyInfo: Gets or sets the policy information. - PolicyInfo *PolicyInfo_ARM `json:"policyInfo,omitempty"` - - // ValidationType: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API - // will run again. - ValidationType *BackupInstance_ValidationType `json:"validationType,omitempty"` -} - -type AuthCredentials_ARM struct { - // SecretStoreBasedAuthCredentials: Mutually exclusive with all other properties - SecretStoreBasedAuthCredentials *SecretStoreBasedAuthCredentials_ARM `json:"secretStoreBasedAuthCredentials,omitempty"` -} - -// MarshalJSON defers JSON marshaling to the first non-nil property, because AuthCredentials_ARM represents a discriminated union (JSON OneOf) -func (credentials AuthCredentials_ARM) MarshalJSON() ([]byte, error) { - if credentials.SecretStoreBasedAuthCredentials != nil { - return json.Marshal(credentials.SecretStoreBasedAuthCredentials) - } - return nil, nil -} - -// UnmarshalJSON unmarshals the AuthCredentials_ARM -func (credentials *AuthCredentials_ARM) UnmarshalJSON(data []byte) error { - var rawJson map[string]interface{} - err := json.Unmarshal(data, &rawJson) - if err != nil { - return err - } - discriminator := rawJson["objectType"] - if discriminator == "SecretStoreBasedAuthCredentials" { - credentials.SecretStoreBasedAuthCredentials = &SecretStoreBasedAuthCredentials_ARM{} - return json.Unmarshal(data, credentials.SecretStoreBasedAuthCredentials) - } - - // No error - return nil -} - -// +kubebuilder:validation:Enum={"DeepValidation","ShallowValidation"} -type BackupInstance_ValidationType string - -const ( - BackupInstance_ValidationType_DeepValidation = BackupInstance_ValidationType("DeepValidation") - BackupInstance_ValidationType_ShallowValidation = BackupInstance_ValidationType("ShallowValidation") -) - -// Datasource to be backed up -type Datasource_ARM struct { - // DatasourceType: DatasourceType of the resource. - DatasourceType *string `json:"datasourceType,omitempty"` - - // ObjectType: Type of Datasource object, used to initialize the right inherited type - ObjectType *string `json:"objectType,omitempty"` - ResourceID *string `json:"resourceID,omitempty"` - - // ResourceLocation: Location of datasource. - ResourceLocation *string `json:"resourceLocation,omitempty"` - - // ResourceName: Unique identifier of the resource in the context of parent. - ResourceName *string `json:"resourceName,omitempty"` - - // ResourceType: Resource Type of Datasource. - ResourceType *string `json:"resourceType,omitempty"` - - // ResourceUri: Uri of the resource. - ResourceUri *string `json:"resourceUri,omitempty"` -} - -// DatasourceSet details of datasource to be backed up -type DatasourceSet_ARM struct { - // DatasourceType: DatasourceType of the resource. - DatasourceType *string `json:"datasourceType,omitempty"` - - // ObjectType: Type of Datasource object, used to initialize the right inherited type - ObjectType *string `json:"objectType,omitempty"` - ResourceID *string `json:"resourceID,omitempty"` - - // ResourceLocation: Location of datasource. - ResourceLocation *string `json:"resourceLocation,omitempty"` - - // ResourceName: Unique identifier of the resource in the context of parent. - ResourceName *string `json:"resourceName,omitempty"` - - // ResourceType: Resource Type of Datasource. - ResourceType *string `json:"resourceType,omitempty"` - - // ResourceUri: Uri of the resource. - ResourceUri *string `json:"resourceUri,omitempty"` -} - -// Policy Info in backupInstance -type PolicyInfo_ARM struct { - PolicyId *string `json:"policyId,omitempty"` - - // PolicyParameters: Policy parameters for the backup instance - PolicyParameters *PolicyParameters_ARM `json:"policyParameters,omitempty"` -} - -// Parameters in Policy -type PolicyParameters_ARM struct { - // BackupDatasourceParametersList: Gets or sets the Backup Data Source Parameters - BackupDatasourceParametersList []BackupDatasourceParameters_ARM `json:"backupDatasourceParametersList,omitempty"` - - // DataStoreParametersList: Gets or sets the DataStore Parameters - DataStoreParametersList []DataStoreParameters_ARM `json:"dataStoreParametersList,omitempty"` -} - -type SecretStoreBasedAuthCredentials_ARM struct { - // ObjectType: Type of the specific object - used for deserializing - ObjectType SecretStoreBasedAuthCredentials_ObjectType `json:"objectType,omitempty"` - - // SecretStoreResource: Secret store resource - SecretStoreResource *SecretStoreResource_ARM `json:"secretStoreResource,omitempty"` -} - -type BackupDatasourceParameters_ARM struct { - // Blob: Mutually exclusive with all other properties - Blob *BlobBackupDatasourceParameters_ARM `json:"blobBackupDatasourceParameters,omitempty"` - - // KubernetesCluster: Mutually exclusive with all other properties - KubernetesCluster *KubernetesClusterBackupDatasourceParameters_ARM `json:"kubernetesClusterBackupDatasourceParameters,omitempty"` -} - -// MarshalJSON defers JSON marshaling to the first non-nil property, because BackupDatasourceParameters_ARM represents a discriminated union (JSON OneOf) -func (parameters BackupDatasourceParameters_ARM) MarshalJSON() ([]byte, error) { - if parameters.Blob != nil { - return json.Marshal(parameters.Blob) - } - if parameters.KubernetesCluster != nil { - return json.Marshal(parameters.KubernetesCluster) - } - return nil, nil -} - -// UnmarshalJSON unmarshals the BackupDatasourceParameters_ARM -func (parameters *BackupDatasourceParameters_ARM) UnmarshalJSON(data []byte) error { - var rawJson map[string]interface{} - err := json.Unmarshal(data, &rawJson) - if err != nil { - return err - } - discriminator := rawJson["objectType"] - if discriminator == "BlobBackupDatasourceParameters" { - parameters.Blob = &BlobBackupDatasourceParameters_ARM{} - return json.Unmarshal(data, parameters.Blob) - } - if discriminator == "KubernetesClusterBackupDatasourceParameters" { - parameters.KubernetesCluster = &KubernetesClusterBackupDatasourceParameters_ARM{} - return json.Unmarshal(data, parameters.KubernetesCluster) - } - - // No error - return nil -} - -type DataStoreParameters_ARM struct { - // AzureOperationalStoreParameters: Mutually exclusive with all other properties - AzureOperationalStoreParameters *AzureOperationalStoreParameters_ARM `json:"azureOperationalStoreParameters,omitempty"` -} - -// MarshalJSON defers JSON marshaling to the first non-nil property, because DataStoreParameters_ARM represents a discriminated union (JSON OneOf) -func (parameters DataStoreParameters_ARM) MarshalJSON() ([]byte, error) { - if parameters.AzureOperationalStoreParameters != nil { - return json.Marshal(parameters.AzureOperationalStoreParameters) - } - return nil, nil -} - -// UnmarshalJSON unmarshals the DataStoreParameters_ARM -func (parameters *DataStoreParameters_ARM) UnmarshalJSON(data []byte) error { - var rawJson map[string]interface{} - err := json.Unmarshal(data, &rawJson) - if err != nil { - return err - } - discriminator := rawJson["objectType"] - if discriminator == "AzureOperationalStoreParameters" { - parameters.AzureOperationalStoreParameters = &AzureOperationalStoreParameters_ARM{} - return json.Unmarshal(data, parameters.AzureOperationalStoreParameters) - } - - // No error - return nil -} - -// +kubebuilder:validation:Enum={"SecretStoreBasedAuthCredentials"} -type SecretStoreBasedAuthCredentials_ObjectType string - -const SecretStoreBasedAuthCredentials_ObjectType_SecretStoreBasedAuthCredentials = SecretStoreBasedAuthCredentials_ObjectType("SecretStoreBasedAuthCredentials") - -// Class representing a secret store resource. -type SecretStoreResource_ARM struct { - // SecretStoreType: Gets or sets the type of secret store - SecretStoreType *SecretStoreResource_SecretStoreType `json:"secretStoreType,omitempty"` - - // Uri: Uri to get to the resource - Uri *string `json:"uri,omitempty"` - - // Value: Gets or sets value stored in secret store resource - Value *string `json:"value,omitempty"` -} - -type AzureOperationalStoreParameters_ARM struct { - // DataStoreType: type of datastore; Operational/Vault/Archive - DataStoreType *AzureOperationalStoreParameters_DataStoreType `json:"dataStoreType,omitempty"` - - // ObjectType: Type of the specific object - used for deserializing - ObjectType AzureOperationalStoreParameters_ObjectType `json:"objectType,omitempty"` - - // ResourceGroupId: Gets or sets the Snapshot Resource Group Uri. - ResourceGroupId *string `json:"resourceGroupId,omitempty"` -} - -type BlobBackupDatasourceParameters_ARM struct { - // ContainersList: List of containers to be backed up during configuration of backup of blobs - ContainersList []string `json:"containersList,omitempty"` - - // ObjectType: Type of the specific object - used for deserializing - ObjectType BlobBackupDatasourceParameters_ObjectType `json:"objectType,omitempty"` -} - -type KubernetesClusterBackupDatasourceParameters_ARM struct { - // ExcludedNamespaces: Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded - // during restore. - ExcludedNamespaces []string `json:"excludedNamespaces,omitempty"` - - // ExcludedResourceTypes: Gets or sets the exclude resource types property. This property sets the resource types to be - // excluded during restore. - ExcludedResourceTypes []string `json:"excludedResourceTypes,omitempty"` - - // IncludeClusterScopeResources: Gets or sets the include cluster resources property. This property if enabled will include - // cluster scope resources during restore. - IncludeClusterScopeResources *bool `json:"includeClusterScopeResources,omitempty"` - - // IncludedNamespaces: Gets or sets the include namespaces property. This property sets the namespaces to be included - // during restore. - IncludedNamespaces []string `json:"includedNamespaces,omitempty"` - - // IncludedResourceTypes: Gets or sets the include resource types property. This property sets the resource types to be - // included during restore. - IncludedResourceTypes []string `json:"includedResourceTypes,omitempty"` - - // LabelSelectors: Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to - // be included during restore. - LabelSelectors []string `json:"labelSelectors,omitempty"` - - // ObjectType: Type of the specific object - used for deserializing - ObjectType KubernetesClusterBackupDatasourceParameters_ObjectType `json:"objectType,omitempty"` - - // SnapshotVolumes: Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during - // restore. - SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` -} - -// +kubebuilder:validation:Enum={"AzureKeyVault","Invalid"} -type SecretStoreResource_SecretStoreType string - -const ( - SecretStoreResource_SecretStoreType_AzureKeyVault = SecretStoreResource_SecretStoreType("AzureKeyVault") - SecretStoreResource_SecretStoreType_Invalid = SecretStoreResource_SecretStoreType("Invalid") -) - -// +kubebuilder:validation:Enum={"ArchiveStore","OperationalStore","VaultStore"} -type AzureOperationalStoreParameters_DataStoreType string - -const ( - AzureOperationalStoreParameters_DataStoreType_ArchiveStore = AzureOperationalStoreParameters_DataStoreType("ArchiveStore") - AzureOperationalStoreParameters_DataStoreType_OperationalStore = AzureOperationalStoreParameters_DataStoreType("OperationalStore") - AzureOperationalStoreParameters_DataStoreType_VaultStore = AzureOperationalStoreParameters_DataStoreType("VaultStore") -) - -// +kubebuilder:validation:Enum={"AzureOperationalStoreParameters"} -type AzureOperationalStoreParameters_ObjectType string - -const AzureOperationalStoreParameters_ObjectType_AzureOperationalStoreParameters = AzureOperationalStoreParameters_ObjectType("AzureOperationalStoreParameters") - -// +kubebuilder:validation:Enum={"BlobBackupDatasourceParameters"} -type BlobBackupDatasourceParameters_ObjectType string - -const BlobBackupDatasourceParameters_ObjectType_BlobBackupDatasourceParameters = BlobBackupDatasourceParameters_ObjectType("BlobBackupDatasourceParameters") - -// +kubebuilder:validation:Enum={"KubernetesClusterBackupDatasourceParameters"} -type KubernetesClusterBackupDatasourceParameters_ObjectType string - -const KubernetesClusterBackupDatasourceParameters_ObjectType_KubernetesClusterBackupDatasourceParameters = KubernetesClusterBackupDatasourceParameters_ObjectType("KubernetesClusterBackupDatasourceParameters") diff --git a/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_spec_arm_types_gen_test.go b/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_spec_arm_types_gen_test.go deleted file mode 100644 index effa2e801b0..00000000000 --- a/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_spec_arm_types_gen_test.go +++ /dev/null @@ -1,982 +0,0 @@ -// Code generated by azure-service-operator-codegen. DO NOT EDIT. -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -package v1api20230101 - -import ( - "encoding/json" - "github.com/google/go-cmp/cmp" - "github.com/google/go-cmp/cmp/cmpopts" - "github.com/kr/pretty" - "github.com/kylelemons/godebug/diff" - "github.com/leanovate/gopter" - "github.com/leanovate/gopter/gen" - "github.com/leanovate/gopter/prop" - "os" - "reflect" - "testing" -) - -func Test_BackupVaults_BackupInstance_Spec_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupVaults_BackupInstance_Spec_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupVaults_BackupInstance_Spec_ARM, BackupVaults_BackupInstance_Spec_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupVaults_BackupInstance_Spec_ARM runs a test to see if a specific instance of BackupVaults_BackupInstance_Spec_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupVaults_BackupInstance_Spec_ARM(subject BackupVaults_BackupInstance_Spec_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupVaults_BackupInstance_Spec_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupVaults_BackupInstance_Spec_ARM instances for property testing - lazily instantiated by -// BackupVaults_BackupInstance_Spec_ARMGenerator() -var backupVaults_BackupInstance_Spec_ARMGenerator gopter.Gen - -// BackupVaults_BackupInstance_Spec_ARMGenerator returns a generator of BackupVaults_BackupInstance_Spec_ARM instances for property testing. -// We first initialize backupVaults_BackupInstance_Spec_ARMGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func BackupVaults_BackupInstance_Spec_ARMGenerator() gopter.Gen { - if backupVaults_BackupInstance_Spec_ARMGenerator != nil { - return backupVaults_BackupInstance_Spec_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_Spec_ARM(generators) - backupVaults_BackupInstance_Spec_ARMGenerator = gen.Struct(reflect.TypeOf(BackupVaults_BackupInstance_Spec_ARM{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_Spec_ARM(generators) - AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_Spec_ARM(generators) - backupVaults_BackupInstance_Spec_ARMGenerator = gen.Struct(reflect.TypeOf(BackupVaults_BackupInstance_Spec_ARM{}), generators) - - return backupVaults_BackupInstance_Spec_ARMGenerator -} - -// 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()) -} - -// AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_Spec_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_Spec_ARM(gens map[string]gopter.Gen) { - gens["Properties"] = gen.PtrOf(BackupInstance_ARMGenerator()) -} - -func Test_BackupInstance_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupInstance_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupInstance_ARM, BackupInstance_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupInstance_ARM runs a test to see if a specific instance of BackupInstance_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupInstance_ARM(subject BackupInstance_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupInstance_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupInstance_ARM instances for property testing - lazily instantiated by BackupInstance_ARMGenerator() -var backupInstance_ARMGenerator gopter.Gen - -// BackupInstance_ARMGenerator returns a generator of BackupInstance_ARM instances for property testing. -// We first initialize backupInstance_ARMGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func BackupInstance_ARMGenerator() gopter.Gen { - if backupInstance_ARMGenerator != nil { - return backupInstance_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupInstance_ARM(generators) - backupInstance_ARMGenerator = gen.Struct(reflect.TypeOf(BackupInstance_ARM{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupInstance_ARM(generators) - AddRelatedPropertyGeneratorsForBackupInstance_ARM(generators) - backupInstance_ARMGenerator = gen.Struct(reflect.TypeOf(BackupInstance_ARM{}), generators) - - return backupInstance_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForBackupInstance_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForBackupInstance_ARM(gens map[string]gopter.Gen) { - gens["FriendlyName"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ValidationType"] = gen.PtrOf(gen.OneConstOf(BackupInstance_ValidationType_DeepValidation, BackupInstance_ValidationType_ShallowValidation)) -} - -// AddRelatedPropertyGeneratorsForBackupInstance_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupInstance_ARM(gens map[string]gopter.Gen) { - gens["DataSourceInfo"] = gen.PtrOf(Datasource_ARMGenerator()) - gens["DataSourceSetInfo"] = gen.PtrOf(DatasourceSet_ARMGenerator()) - gens["DatasourceAuthCredentials"] = gen.PtrOf(AuthCredentials_ARMGenerator()) - gens["PolicyInfo"] = gen.PtrOf(PolicyInfo_ARMGenerator()) -} - -func Test_AuthCredentials_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of AuthCredentials_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForAuthCredentials_ARM, AuthCredentials_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForAuthCredentials_ARM runs a test to see if a specific instance of AuthCredentials_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForAuthCredentials_ARM(subject AuthCredentials_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual AuthCredentials_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of AuthCredentials_ARM instances for property testing - lazily instantiated by -// AuthCredentials_ARMGenerator() -var authCredentials_ARMGenerator gopter.Gen - -// AuthCredentials_ARMGenerator returns a generator of AuthCredentials_ARM instances for property testing. -func AuthCredentials_ARMGenerator() gopter.Gen { - if authCredentials_ARMGenerator != nil { - return authCredentials_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForAuthCredentials_ARM(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(AuthCredentials_ARM{}), map[string]gopter.Gen{propName: propGen})) - } - authCredentials_ARMGenerator = gen.OneGenOf(gens...) - - return authCredentials_ARMGenerator -} - -// AddRelatedPropertyGeneratorsForAuthCredentials_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForAuthCredentials_ARM(gens map[string]gopter.Gen) { - gens["SecretStoreBasedAuthCredentials"] = SecretStoreBasedAuthCredentials_ARMGenerator().Map(func(it SecretStoreBasedAuthCredentials_ARM) *SecretStoreBasedAuthCredentials_ARM { - return &it - }) // generate one case for OneOf type -} - -func Test_Datasource_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of Datasource_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDatasource_ARM, Datasource_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDatasource_ARM runs a test to see if a specific instance of Datasource_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForDatasource_ARM(subject Datasource_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual Datasource_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of Datasource_ARM instances for property testing - lazily instantiated by Datasource_ARMGenerator() -var datasource_ARMGenerator gopter.Gen - -// Datasource_ARMGenerator returns a generator of Datasource_ARM instances for property testing. -func Datasource_ARMGenerator() gopter.Gen { - if datasource_ARMGenerator != nil { - return datasource_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForDatasource_ARM(generators) - datasource_ARMGenerator = gen.Struct(reflect.TypeOf(Datasource_ARM{}), generators) - - return datasource_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForDatasource_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForDatasource_ARM(gens map[string]gopter.Gen) { - gens["DatasourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceID"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceLocation"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceName"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceUri"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_DatasourceSet_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of DatasourceSet_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDatasourceSet_ARM, DatasourceSet_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDatasourceSet_ARM runs a test to see if a specific instance of DatasourceSet_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForDatasourceSet_ARM(subject DatasourceSet_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual DatasourceSet_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of DatasourceSet_ARM instances for property testing - lazily instantiated by DatasourceSet_ARMGenerator() -var datasourceSet_ARMGenerator gopter.Gen - -// DatasourceSet_ARMGenerator returns a generator of DatasourceSet_ARM instances for property testing. -func DatasourceSet_ARMGenerator() gopter.Gen { - if datasourceSet_ARMGenerator != nil { - return datasourceSet_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForDatasourceSet_ARM(generators) - datasourceSet_ARMGenerator = gen.Struct(reflect.TypeOf(DatasourceSet_ARM{}), generators) - - return datasourceSet_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForDatasourceSet_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForDatasourceSet_ARM(gens map[string]gopter.Gen) { - gens["DatasourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceID"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceLocation"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceName"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceUri"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_PolicyInfo_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of PolicyInfo_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForPolicyInfo_ARM, PolicyInfo_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForPolicyInfo_ARM runs a test to see if a specific instance of PolicyInfo_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForPolicyInfo_ARM(subject PolicyInfo_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual PolicyInfo_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of PolicyInfo_ARM instances for property testing - lazily instantiated by PolicyInfo_ARMGenerator() -var policyInfo_ARMGenerator gopter.Gen - -// PolicyInfo_ARMGenerator returns a generator of PolicyInfo_ARM instances for property testing. -// We first initialize policyInfo_ARMGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func PolicyInfo_ARMGenerator() gopter.Gen { - if policyInfo_ARMGenerator != nil { - return policyInfo_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForPolicyInfo_ARM(generators) - policyInfo_ARMGenerator = gen.Struct(reflect.TypeOf(PolicyInfo_ARM{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForPolicyInfo_ARM(generators) - AddRelatedPropertyGeneratorsForPolicyInfo_ARM(generators) - policyInfo_ARMGenerator = gen.Struct(reflect.TypeOf(PolicyInfo_ARM{}), generators) - - return policyInfo_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForPolicyInfo_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForPolicyInfo_ARM(gens map[string]gopter.Gen) { - gens["PolicyId"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForPolicyInfo_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForPolicyInfo_ARM(gens map[string]gopter.Gen) { - gens["PolicyParameters"] = gen.PtrOf(PolicyParameters_ARMGenerator()) -} - -func Test_PolicyParameters_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of PolicyParameters_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForPolicyParameters_ARM, PolicyParameters_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForPolicyParameters_ARM runs a test to see if a specific instance of PolicyParameters_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForPolicyParameters_ARM(subject PolicyParameters_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual PolicyParameters_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of PolicyParameters_ARM instances for property testing - lazily instantiated by -// PolicyParameters_ARMGenerator() -var policyParameters_ARMGenerator gopter.Gen - -// PolicyParameters_ARMGenerator returns a generator of PolicyParameters_ARM instances for property testing. -func PolicyParameters_ARMGenerator() gopter.Gen { - if policyParameters_ARMGenerator != nil { - return policyParameters_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForPolicyParameters_ARM(generators) - policyParameters_ARMGenerator = gen.Struct(reflect.TypeOf(PolicyParameters_ARM{}), generators) - - return policyParameters_ARMGenerator -} - -// AddRelatedPropertyGeneratorsForPolicyParameters_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForPolicyParameters_ARM(gens map[string]gopter.Gen) { - gens["BackupDatasourceParametersList"] = gen.SliceOf(BackupDatasourceParameters_ARMGenerator()) - gens["DataStoreParametersList"] = gen.SliceOf(DataStoreParameters_ARMGenerator()) -} - -func Test_SecretStoreBasedAuthCredentials_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of SecretStoreBasedAuthCredentials_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForSecretStoreBasedAuthCredentials_ARM, SecretStoreBasedAuthCredentials_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForSecretStoreBasedAuthCredentials_ARM runs a test to see if a specific instance of SecretStoreBasedAuthCredentials_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForSecretStoreBasedAuthCredentials_ARM(subject SecretStoreBasedAuthCredentials_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual SecretStoreBasedAuthCredentials_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of SecretStoreBasedAuthCredentials_ARM instances for property testing - lazily instantiated by -// SecretStoreBasedAuthCredentials_ARMGenerator() -var secretStoreBasedAuthCredentials_ARMGenerator gopter.Gen - -// SecretStoreBasedAuthCredentials_ARMGenerator returns a generator of SecretStoreBasedAuthCredentials_ARM instances for property testing. -// We first initialize secretStoreBasedAuthCredentials_ARMGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func SecretStoreBasedAuthCredentials_ARMGenerator() gopter.Gen { - if secretStoreBasedAuthCredentials_ARMGenerator != nil { - return secretStoreBasedAuthCredentials_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials_ARM(generators) - secretStoreBasedAuthCredentials_ARMGenerator = gen.Struct(reflect.TypeOf(SecretStoreBasedAuthCredentials_ARM{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials_ARM(generators) - AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials_ARM(generators) - secretStoreBasedAuthCredentials_ARMGenerator = gen.Struct(reflect.TypeOf(SecretStoreBasedAuthCredentials_ARM{}), generators) - - return secretStoreBasedAuthCredentials_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials_ARM(gens map[string]gopter.Gen) { - gens["ObjectType"] = gen.OneConstOf(SecretStoreBasedAuthCredentials_ObjectType_SecretStoreBasedAuthCredentials) -} - -// AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials_ARM(gens map[string]gopter.Gen) { - gens["SecretStoreResource"] = gen.PtrOf(SecretStoreResource_ARMGenerator()) -} - -func Test_BackupDatasourceParameters_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupDatasourceParameters_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupDatasourceParameters_ARM, BackupDatasourceParameters_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupDatasourceParameters_ARM runs a test to see if a specific instance of BackupDatasourceParameters_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupDatasourceParameters_ARM(subject BackupDatasourceParameters_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupDatasourceParameters_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupDatasourceParameters_ARM instances for property testing - lazily instantiated by -// BackupDatasourceParameters_ARMGenerator() -var backupDatasourceParameters_ARMGenerator gopter.Gen - -// BackupDatasourceParameters_ARMGenerator returns a generator of BackupDatasourceParameters_ARM instances for property testing. -func BackupDatasourceParameters_ARMGenerator() gopter.Gen { - if backupDatasourceParameters_ARMGenerator != nil { - return backupDatasourceParameters_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForBackupDatasourceParameters_ARM(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(BackupDatasourceParameters_ARM{}), map[string]gopter.Gen{propName: propGen})) - } - backupDatasourceParameters_ARMGenerator = gen.OneGenOf(gens...) - - return backupDatasourceParameters_ARMGenerator -} - -// AddRelatedPropertyGeneratorsForBackupDatasourceParameters_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupDatasourceParameters_ARM(gens map[string]gopter.Gen) { - gens["Blob"] = BlobBackupDatasourceParameters_ARMGenerator().Map(func(it BlobBackupDatasourceParameters_ARM) *BlobBackupDatasourceParameters_ARM { - return &it - }) // generate one case for OneOf type - gens["KubernetesCluster"] = KubernetesClusterBackupDatasourceParameters_ARMGenerator().Map(func(it KubernetesClusterBackupDatasourceParameters_ARM) *KubernetesClusterBackupDatasourceParameters_ARM { - return &it - }) // generate one case for OneOf type -} - -func Test_DataStoreParameters_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of DataStoreParameters_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDataStoreParameters_ARM, DataStoreParameters_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDataStoreParameters_ARM runs a test to see if a specific instance of DataStoreParameters_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForDataStoreParameters_ARM(subject DataStoreParameters_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual DataStoreParameters_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of DataStoreParameters_ARM instances for property testing - lazily instantiated by -// DataStoreParameters_ARMGenerator() -var dataStoreParameters_ARMGenerator gopter.Gen - -// DataStoreParameters_ARMGenerator returns a generator of DataStoreParameters_ARM instances for property testing. -func DataStoreParameters_ARMGenerator() gopter.Gen { - if dataStoreParameters_ARMGenerator != nil { - return dataStoreParameters_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForDataStoreParameters_ARM(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(DataStoreParameters_ARM{}), map[string]gopter.Gen{propName: propGen})) - } - dataStoreParameters_ARMGenerator = gen.OneGenOf(gens...) - - return dataStoreParameters_ARMGenerator -} - -// AddRelatedPropertyGeneratorsForDataStoreParameters_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForDataStoreParameters_ARM(gens map[string]gopter.Gen) { - gens["AzureOperationalStoreParameters"] = AzureOperationalStoreParameters_ARMGenerator().Map(func(it AzureOperationalStoreParameters_ARM) *AzureOperationalStoreParameters_ARM { - return &it - }) // generate one case for OneOf type -} - -func Test_SecretStoreResource_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of SecretStoreResource_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForSecretStoreResource_ARM, SecretStoreResource_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForSecretStoreResource_ARM runs a test to see if a specific instance of SecretStoreResource_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForSecretStoreResource_ARM(subject SecretStoreResource_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual SecretStoreResource_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of SecretStoreResource_ARM instances for property testing - lazily instantiated by -// SecretStoreResource_ARMGenerator() -var secretStoreResource_ARMGenerator gopter.Gen - -// SecretStoreResource_ARMGenerator returns a generator of SecretStoreResource_ARM instances for property testing. -func SecretStoreResource_ARMGenerator() gopter.Gen { - if secretStoreResource_ARMGenerator != nil { - return secretStoreResource_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreResource_ARM(generators) - secretStoreResource_ARMGenerator = gen.Struct(reflect.TypeOf(SecretStoreResource_ARM{}), generators) - - return secretStoreResource_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForSecretStoreResource_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForSecretStoreResource_ARM(gens map[string]gopter.Gen) { - gens["SecretStoreType"] = gen.PtrOf(gen.OneConstOf(SecretStoreResource_SecretStoreType_AzureKeyVault, SecretStoreResource_SecretStoreType_Invalid)) - gens["Uri"] = gen.PtrOf(gen.AlphaString()) - gens["Value"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_AzureOperationalStoreParameters_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of AzureOperationalStoreParameters_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForAzureOperationalStoreParameters_ARM, AzureOperationalStoreParameters_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForAzureOperationalStoreParameters_ARM runs a test to see if a specific instance of AzureOperationalStoreParameters_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForAzureOperationalStoreParameters_ARM(subject AzureOperationalStoreParameters_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual AzureOperationalStoreParameters_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of AzureOperationalStoreParameters_ARM instances for property testing - lazily instantiated by -// AzureOperationalStoreParameters_ARMGenerator() -var azureOperationalStoreParameters_ARMGenerator gopter.Gen - -// AzureOperationalStoreParameters_ARMGenerator returns a generator of AzureOperationalStoreParameters_ARM instances for property testing. -func AzureOperationalStoreParameters_ARMGenerator() gopter.Gen { - if azureOperationalStoreParameters_ARMGenerator != nil { - return azureOperationalStoreParameters_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters_ARM(generators) - azureOperationalStoreParameters_ARMGenerator = gen.Struct(reflect.TypeOf(AzureOperationalStoreParameters_ARM{}), generators) - - return azureOperationalStoreParameters_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters_ARM(gens map[string]gopter.Gen) { - gens["DataStoreType"] = gen.PtrOf(gen.OneConstOf(AzureOperationalStoreParameters_DataStoreType_ArchiveStore, AzureOperationalStoreParameters_DataStoreType_OperationalStore, AzureOperationalStoreParameters_DataStoreType_VaultStore)) - gens["ObjectType"] = gen.OneConstOf(AzureOperationalStoreParameters_ObjectType_AzureOperationalStoreParameters) - gens["ResourceGroupId"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_BlobBackupDatasourceParameters_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BlobBackupDatasourceParameters_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBlobBackupDatasourceParameters_ARM, BlobBackupDatasourceParameters_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBlobBackupDatasourceParameters_ARM runs a test to see if a specific instance of BlobBackupDatasourceParameters_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForBlobBackupDatasourceParameters_ARM(subject BlobBackupDatasourceParameters_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BlobBackupDatasourceParameters_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BlobBackupDatasourceParameters_ARM instances for property testing - lazily instantiated by -// BlobBackupDatasourceParameters_ARMGenerator() -var blobBackupDatasourceParameters_ARMGenerator gopter.Gen - -// BlobBackupDatasourceParameters_ARMGenerator returns a generator of BlobBackupDatasourceParameters_ARM instances for property testing. -func BlobBackupDatasourceParameters_ARMGenerator() gopter.Gen { - if blobBackupDatasourceParameters_ARMGenerator != nil { - return blobBackupDatasourceParameters_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters_ARM(generators) - blobBackupDatasourceParameters_ARMGenerator = gen.Struct(reflect.TypeOf(BlobBackupDatasourceParameters_ARM{}), generators) - - return blobBackupDatasourceParameters_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters_ARM(gens map[string]gopter.Gen) { - gens["ContainersList"] = gen.SliceOf(gen.AlphaString()) - gens["ObjectType"] = gen.OneConstOf(BlobBackupDatasourceParameters_ObjectType_BlobBackupDatasourceParameters) -} - -func Test_KubernetesClusterBackupDatasourceParameters_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of KubernetesClusterBackupDatasourceParameters_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters_ARM, KubernetesClusterBackupDatasourceParameters_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters_ARM runs a test to see if a specific instance of KubernetesClusterBackupDatasourceParameters_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters_ARM(subject KubernetesClusterBackupDatasourceParameters_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual KubernetesClusterBackupDatasourceParameters_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of KubernetesClusterBackupDatasourceParameters_ARM instances for property testing - lazily instantiated by -// KubernetesClusterBackupDatasourceParameters_ARMGenerator() -var kubernetesClusterBackupDatasourceParameters_ARMGenerator gopter.Gen - -// KubernetesClusterBackupDatasourceParameters_ARMGenerator returns a generator of KubernetesClusterBackupDatasourceParameters_ARM instances for property testing. -func KubernetesClusterBackupDatasourceParameters_ARMGenerator() gopter.Gen { - if kubernetesClusterBackupDatasourceParameters_ARMGenerator != nil { - return kubernetesClusterBackupDatasourceParameters_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters_ARM(generators) - kubernetesClusterBackupDatasourceParameters_ARMGenerator = gen.Struct(reflect.TypeOf(KubernetesClusterBackupDatasourceParameters_ARM{}), generators) - - return kubernetesClusterBackupDatasourceParameters_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters_ARM(gens map[string]gopter.Gen) { - gens["ExcludedNamespaces"] = gen.SliceOf(gen.AlphaString()) - gens["ExcludedResourceTypes"] = gen.SliceOf(gen.AlphaString()) - gens["IncludeClusterScopeResources"] = gen.PtrOf(gen.Bool()) - gens["IncludedNamespaces"] = gen.SliceOf(gen.AlphaString()) - gens["IncludedResourceTypes"] = gen.SliceOf(gen.AlphaString()) - gens["LabelSelectors"] = gen.SliceOf(gen.AlphaString()) - gens["ObjectType"] = gen.OneConstOf(KubernetesClusterBackupDatasourceParameters_ObjectType_KubernetesClusterBackupDatasourceParameters) - gens["SnapshotVolumes"] = gen.PtrOf(gen.Bool()) -} diff --git a/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_status_arm_types_gen.go b/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_status_arm_types_gen.go deleted file mode 100644 index 1dfafa952ac..00000000000 --- a/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_status_arm_types_gen.go +++ /dev/null @@ -1,448 +0,0 @@ -// Code generated by azure-service-operator-codegen. DO NOT EDIT. -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -package v1api20230101 - -import "encoding/json" - -type BackupVaults_BackupInstance_STATUS_ARM struct { - // Id: Proxy Resource Id represents the complete path to the resource. - Id *string `json:"id,omitempty"` - - // Name: Proxy Resource name associated with the resource. - Name *string `json:"name,omitempty"` - - // Properties: BackupInstanceResource properties - Properties *BackupInstance_STATUS_ARM `json:"properties,omitempty"` - - // SystemData: Metadata pertaining to creation and last modification of the resource. - SystemData *SystemData_STATUS_ARM `json:"systemData,omitempty"` - - // Tags: Proxy Resource tags. - Tags map[string]string `json:"tags,omitempty"` - - // Type: Proxy Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... - Type *string `json:"type,omitempty"` -} - -// Backup Instance -type BackupInstance_STATUS_ARM struct { - // CurrentProtectionState: Specifies the current protection state of the resource - CurrentProtectionState *BackupInstance_CurrentProtectionState_STATUS `json:"currentProtectionState,omitempty"` - - // DataSourceInfo: Gets or sets the data source information. - DataSourceInfo *Datasource_STATUS_ARM `json:"dataSourceInfo,omitempty"` - - // DataSourceSetInfo: Gets or sets the data source set information. - DataSourceSetInfo *DatasourceSet_STATUS_ARM `json:"dataSourceSetInfo,omitempty"` - - // DatasourceAuthCredentials: Credentials to use to authenticate with data source provider. - DatasourceAuthCredentials *AuthCredentials_STATUS_ARM `json:"datasourceAuthCredentials,omitempty"` - - // FriendlyName: Gets or sets the Backup Instance friendly name. - FriendlyName *string `json:"friendlyName,omitempty"` - ObjectType *string `json:"objectType,omitempty"` - - // PolicyInfo: Gets or sets the policy information. - PolicyInfo *PolicyInfo_STATUS_ARM `json:"policyInfo,omitempty"` - - // ProtectionErrorDetails: Specifies the protection error of the resource - ProtectionErrorDetails *UserFacingError_STATUS_ARM `json:"protectionErrorDetails,omitempty"` - - // ProtectionStatus: Specifies the protection status of the resource - ProtectionStatus *ProtectionStatusDetails_STATUS_ARM `json:"protectionStatus,omitempty"` - - // ProvisioningState: Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed - ProvisioningState *string `json:"provisioningState,omitempty"` - - // ValidationType: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API - // will run again. - ValidationType *BackupInstance_ValidationType_STATUS `json:"validationType,omitempty"` -} - -type AuthCredentials_STATUS_ARM struct { - // SecretStoreBasedAuthCredentials: Mutually exclusive with all other properties - SecretStoreBasedAuthCredentials *SecretStoreBasedAuthCredentials_STATUS_ARM `json:"secretStoreBasedAuthCredentials,omitempty"` -} - -// MarshalJSON defers JSON marshaling to the first non-nil property, because AuthCredentials_STATUS_ARM represents a discriminated union (JSON OneOf) -func (credentials AuthCredentials_STATUS_ARM) MarshalJSON() ([]byte, error) { - if credentials.SecretStoreBasedAuthCredentials != nil { - return json.Marshal(credentials.SecretStoreBasedAuthCredentials) - } - return nil, nil -} - -// UnmarshalJSON unmarshals the AuthCredentials_STATUS_ARM -func (credentials *AuthCredentials_STATUS_ARM) UnmarshalJSON(data []byte) error { - var rawJson map[string]interface{} - err := json.Unmarshal(data, &rawJson) - if err != nil { - return err - } - discriminator := rawJson["objectType"] - if discriminator == "SecretStoreBasedAuthCredentials" { - credentials.SecretStoreBasedAuthCredentials = &SecretStoreBasedAuthCredentials_STATUS_ARM{} - return json.Unmarshal(data, credentials.SecretStoreBasedAuthCredentials) - } - - // No error - return nil -} - -type BackupInstance_CurrentProtectionState_STATUS string - -const ( - BackupInstance_CurrentProtectionState_STATUS_BackupSchedulesSuspended = BackupInstance_CurrentProtectionState_STATUS("BackupSchedulesSuspended") - BackupInstance_CurrentProtectionState_STATUS_ConfiguringProtection = BackupInstance_CurrentProtectionState_STATUS("ConfiguringProtection") - BackupInstance_CurrentProtectionState_STATUS_ConfiguringProtectionFailed = BackupInstance_CurrentProtectionState_STATUS("ConfiguringProtectionFailed") - BackupInstance_CurrentProtectionState_STATUS_Invalid = BackupInstance_CurrentProtectionState_STATUS("Invalid") - BackupInstance_CurrentProtectionState_STATUS_NotProtected = BackupInstance_CurrentProtectionState_STATUS("NotProtected") - BackupInstance_CurrentProtectionState_STATUS_ProtectionConfigured = BackupInstance_CurrentProtectionState_STATUS("ProtectionConfigured") - BackupInstance_CurrentProtectionState_STATUS_ProtectionError = BackupInstance_CurrentProtectionState_STATUS("ProtectionError") - BackupInstance_CurrentProtectionState_STATUS_ProtectionStopped = BackupInstance_CurrentProtectionState_STATUS("ProtectionStopped") - BackupInstance_CurrentProtectionState_STATUS_RetentionSchedulesSuspended = BackupInstance_CurrentProtectionState_STATUS("RetentionSchedulesSuspended") - BackupInstance_CurrentProtectionState_STATUS_SoftDeleted = BackupInstance_CurrentProtectionState_STATUS("SoftDeleted") - BackupInstance_CurrentProtectionState_STATUS_SoftDeleting = BackupInstance_CurrentProtectionState_STATUS("SoftDeleting") - BackupInstance_CurrentProtectionState_STATUS_UpdatingProtection = BackupInstance_CurrentProtectionState_STATUS("UpdatingProtection") -) - -type BackupInstance_ValidationType_STATUS string - -const ( - BackupInstance_ValidationType_STATUS_DeepValidation = BackupInstance_ValidationType_STATUS("DeepValidation") - BackupInstance_ValidationType_STATUS_ShallowValidation = BackupInstance_ValidationType_STATUS("ShallowValidation") -) - -// Datasource to be backed up -type Datasource_STATUS_ARM struct { - // DatasourceType: DatasourceType of the resource. - DatasourceType *string `json:"datasourceType,omitempty"` - - // ObjectType: Type of Datasource object, used to initialize the right inherited type - ObjectType *string `json:"objectType,omitempty"` - - // ResourceID: Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the - // ID created by backup service via Fabric/Vault. - ResourceID *string `json:"resourceID,omitempty"` - - // ResourceLocation: Location of datasource. - ResourceLocation *string `json:"resourceLocation,omitempty"` - - // ResourceName: Unique identifier of the resource in the context of parent. - ResourceName *string `json:"resourceName,omitempty"` - - // ResourceType: Resource Type of Datasource. - ResourceType *string `json:"resourceType,omitempty"` - - // ResourceUri: Uri of the resource. - ResourceUri *string `json:"resourceUri,omitempty"` -} - -// DatasourceSet details of datasource to be backed up -type DatasourceSet_STATUS_ARM struct { - // DatasourceType: DatasourceType of the resource. - DatasourceType *string `json:"datasourceType,omitempty"` - - // ObjectType: Type of Datasource object, used to initialize the right inherited type - ObjectType *string `json:"objectType,omitempty"` - - // ResourceID: Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the - // ID created by backup service via Fabric/Vault. - ResourceID *string `json:"resourceID,omitempty"` - - // ResourceLocation: Location of datasource. - ResourceLocation *string `json:"resourceLocation,omitempty"` - - // ResourceName: Unique identifier of the resource in the context of parent. - ResourceName *string `json:"resourceName,omitempty"` - - // ResourceType: Resource Type of Datasource. - ResourceType *string `json:"resourceType,omitempty"` - - // ResourceUri: Uri of the resource. - ResourceUri *string `json:"resourceUri,omitempty"` -} - -// Policy Info in backupInstance -type PolicyInfo_STATUS_ARM struct { - PolicyId *string `json:"policyId,omitempty"` - - // PolicyParameters: Policy parameters for the backup instance - PolicyParameters *PolicyParameters_STATUS_ARM `json:"policyParameters,omitempty"` - PolicyVersion *string `json:"policyVersion,omitempty"` -} - -// Protection status details -type ProtectionStatusDetails_STATUS_ARM struct { - // ErrorDetails: Specifies the protection status error of the resource - ErrorDetails *UserFacingError_STATUS_ARM `json:"errorDetails,omitempty"` - - // Status: Specifies the protection status of the resource - Status *ProtectionStatusDetails_Status_STATUS `json:"status,omitempty"` -} - -// Error object used by layers that have access to localized content, and propagate that to user -type UserFacingError_STATUS_ARM struct { - // Code: Unique code for this error - Code *string `json:"code,omitempty"` - - // Details: Additional related Errors - Details []UserFacingError_STATUS_Unrolled_ARM `json:"details,omitempty"` - - // InnerError: Inner Error - InnerError *InnerError_STATUS_ARM `json:"innerError,omitempty"` - - // IsRetryable: Whether the operation will be retryable or not - IsRetryable *bool `json:"isRetryable,omitempty"` - - // IsUserError: Whether the operation is due to a user error or service error - IsUserError *bool `json:"isUserError,omitempty"` - Message *string `json:"message,omitempty"` - - // Properties: Any key value pairs that can be injected inside error object - Properties map[string]string `json:"properties,omitempty"` - - // RecommendedAction: RecommendedAction � localized. - RecommendedAction []string `json:"recommendedAction,omitempty"` - - // Target: Target of the error. - Target *string `json:"target,omitempty"` -} - -// Inner Error -type InnerError_STATUS_ARM struct { - // AdditionalInfo: Any Key value pairs that can be provided to the client for additional verbose information. - AdditionalInfo map[string]string `json:"additionalInfo,omitempty"` - - // Code: Unique code for this error - Code *string `json:"code,omitempty"` - - // EmbeddedInnerError: Child Inner Error, to allow Nesting. - EmbeddedInnerError *InnerError_STATUS_Unrolled_ARM `json:"embeddedInnerError,omitempty"` -} - -// Parameters in Policy -type PolicyParameters_STATUS_ARM struct { - // BackupDatasourceParametersList: Gets or sets the Backup Data Source Parameters - BackupDatasourceParametersList []BackupDatasourceParameters_STATUS_ARM `json:"backupDatasourceParametersList,omitempty"` - - // DataStoreParametersList: Gets or sets the DataStore Parameters - DataStoreParametersList []DataStoreParameters_STATUS_ARM `json:"dataStoreParametersList,omitempty"` -} - -type ProtectionStatusDetails_Status_STATUS string - -const ( - ProtectionStatusDetails_Status_STATUS_ConfiguringProtection = ProtectionStatusDetails_Status_STATUS("ConfiguringProtection") - ProtectionStatusDetails_Status_STATUS_ConfiguringProtectionFailed = ProtectionStatusDetails_Status_STATUS("ConfiguringProtectionFailed") - ProtectionStatusDetails_Status_STATUS_ProtectionConfigured = ProtectionStatusDetails_Status_STATUS("ProtectionConfigured") - ProtectionStatusDetails_Status_STATUS_ProtectionStopped = ProtectionStatusDetails_Status_STATUS("ProtectionStopped") - ProtectionStatusDetails_Status_STATUS_SoftDeleted = ProtectionStatusDetails_Status_STATUS("SoftDeleted") - ProtectionStatusDetails_Status_STATUS_SoftDeleting = ProtectionStatusDetails_Status_STATUS("SoftDeleting") -) - -type SecretStoreBasedAuthCredentials_STATUS_ARM struct { - // ObjectType: Type of the specific object - used for deserializing - ObjectType SecretStoreBasedAuthCredentials_ObjectType_STATUS `json:"objectType,omitempty"` - - // SecretStoreResource: Secret store resource - SecretStoreResource *SecretStoreResource_STATUS_ARM `json:"secretStoreResource,omitempty"` -} - -type UserFacingError_STATUS_Unrolled_ARM struct { - // Code: Unique code for this error - Code *string `json:"code,omitempty"` - - // InnerError: Inner Error - InnerError *InnerError_STATUS_ARM `json:"innerError,omitempty"` - - // IsRetryable: Whether the operation will be retryable or not - IsRetryable *bool `json:"isRetryable,omitempty"` - - // IsUserError: Whether the operation is due to a user error or service error - IsUserError *bool `json:"isUserError,omitempty"` - Message *string `json:"message,omitempty"` - - // Properties: Any key value pairs that can be injected inside error object - Properties map[string]string `json:"properties,omitempty"` - - // RecommendedAction: RecommendedAction � localized. - RecommendedAction []string `json:"recommendedAction,omitempty"` - - // Target: Target of the error. - Target *string `json:"target,omitempty"` -} - -type BackupDatasourceParameters_STATUS_ARM struct { - // Blob: Mutually exclusive with all other properties - Blob *BlobBackupDatasourceParameters_STATUS_ARM `json:"blobBackupDatasourceParameters,omitempty"` - - // KubernetesCluster: Mutually exclusive with all other properties - KubernetesCluster *KubernetesClusterBackupDatasourceParameters_STATUS_ARM `json:"kubernetesClusterBackupDatasourceParameters,omitempty"` -} - -// MarshalJSON defers JSON marshaling to the first non-nil property, because BackupDatasourceParameters_STATUS_ARM represents a discriminated union (JSON OneOf) -func (parameters BackupDatasourceParameters_STATUS_ARM) MarshalJSON() ([]byte, error) { - if parameters.Blob != nil { - return json.Marshal(parameters.Blob) - } - if parameters.KubernetesCluster != nil { - return json.Marshal(parameters.KubernetesCluster) - } - return nil, nil -} - -// UnmarshalJSON unmarshals the BackupDatasourceParameters_STATUS_ARM -func (parameters *BackupDatasourceParameters_STATUS_ARM) UnmarshalJSON(data []byte) error { - var rawJson map[string]interface{} - err := json.Unmarshal(data, &rawJson) - if err != nil { - return err - } - discriminator := rawJson["objectType"] - if discriminator == "BlobBackupDatasourceParameters" { - parameters.Blob = &BlobBackupDatasourceParameters_STATUS_ARM{} - return json.Unmarshal(data, parameters.Blob) - } - if discriminator == "KubernetesClusterBackupDatasourceParameters" { - parameters.KubernetesCluster = &KubernetesClusterBackupDatasourceParameters_STATUS_ARM{} - return json.Unmarshal(data, parameters.KubernetesCluster) - } - - // No error - return nil -} - -type DataStoreParameters_STATUS_ARM struct { - // AzureOperationalStoreParameters: Mutually exclusive with all other properties - AzureOperationalStoreParameters *AzureOperationalStoreParameters_STATUS_ARM `json:"azureOperationalStoreParameters,omitempty"` -} - -// MarshalJSON defers JSON marshaling to the first non-nil property, because DataStoreParameters_STATUS_ARM represents a discriminated union (JSON OneOf) -func (parameters DataStoreParameters_STATUS_ARM) MarshalJSON() ([]byte, error) { - if parameters.AzureOperationalStoreParameters != nil { - return json.Marshal(parameters.AzureOperationalStoreParameters) - } - return nil, nil -} - -// UnmarshalJSON unmarshals the DataStoreParameters_STATUS_ARM -func (parameters *DataStoreParameters_STATUS_ARM) UnmarshalJSON(data []byte) error { - var rawJson map[string]interface{} - err := json.Unmarshal(data, &rawJson) - if err != nil { - return err - } - discriminator := rawJson["objectType"] - if discriminator == "AzureOperationalStoreParameters" { - parameters.AzureOperationalStoreParameters = &AzureOperationalStoreParameters_STATUS_ARM{} - return json.Unmarshal(data, parameters.AzureOperationalStoreParameters) - } - - // No error - return nil -} - -type InnerError_STATUS_Unrolled_ARM struct { - // AdditionalInfo: Any Key value pairs that can be provided to the client for additional verbose information. - AdditionalInfo map[string]string `json:"additionalInfo,omitempty"` - - // Code: Unique code for this error - Code *string `json:"code,omitempty"` -} - -type SecretStoreBasedAuthCredentials_ObjectType_STATUS string - -const SecretStoreBasedAuthCredentials_ObjectType_STATUS_SecretStoreBasedAuthCredentials = SecretStoreBasedAuthCredentials_ObjectType_STATUS("SecretStoreBasedAuthCredentials") - -// Class representing a secret store resource. -type SecretStoreResource_STATUS_ARM struct { - // SecretStoreType: Gets or sets the type of secret store - SecretStoreType *SecretStoreResource_SecretStoreType_STATUS `json:"secretStoreType,omitempty"` - - // Uri: Uri to get to the resource - Uri *string `json:"uri,omitempty"` - - // Value: Gets or sets value stored in secret store resource - Value *string `json:"value,omitempty"` -} - -type AzureOperationalStoreParameters_STATUS_ARM struct { - // DataStoreType: type of datastore; Operational/Vault/Archive - DataStoreType *AzureOperationalStoreParameters_DataStoreType_STATUS `json:"dataStoreType,omitempty"` - - // ObjectType: Type of the specific object - used for deserializing - ObjectType AzureOperationalStoreParameters_ObjectType_STATUS `json:"objectType,omitempty"` - - // ResourceGroupId: Gets or sets the Snapshot Resource Group Uri. - ResourceGroupId *string `json:"resourceGroupId,omitempty"` -} - -type BlobBackupDatasourceParameters_STATUS_ARM struct { - // ContainersList: List of containers to be backed up during configuration of backup of blobs - ContainersList []string `json:"containersList,omitempty"` - - // ObjectType: Type of the specific object - used for deserializing - ObjectType BlobBackupDatasourceParameters_ObjectType_STATUS `json:"objectType,omitempty"` -} - -type KubernetesClusterBackupDatasourceParameters_STATUS_ARM struct { - // ExcludedNamespaces: Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded - // during restore. - ExcludedNamespaces []string `json:"excludedNamespaces,omitempty"` - - // ExcludedResourceTypes: Gets or sets the exclude resource types property. This property sets the resource types to be - // excluded during restore. - ExcludedResourceTypes []string `json:"excludedResourceTypes,omitempty"` - - // IncludeClusterScopeResources: Gets or sets the include cluster resources property. This property if enabled will include - // cluster scope resources during restore. - IncludeClusterScopeResources *bool `json:"includeClusterScopeResources,omitempty"` - - // IncludedNamespaces: Gets or sets the include namespaces property. This property sets the namespaces to be included - // during restore. - IncludedNamespaces []string `json:"includedNamespaces,omitempty"` - - // IncludedResourceTypes: Gets or sets the include resource types property. This property sets the resource types to be - // included during restore. - IncludedResourceTypes []string `json:"includedResourceTypes,omitempty"` - - // LabelSelectors: Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to - // be included during restore. - LabelSelectors []string `json:"labelSelectors,omitempty"` - - // ObjectType: Type of the specific object - used for deserializing - ObjectType KubernetesClusterBackupDatasourceParameters_ObjectType_STATUS `json:"objectType,omitempty"` - - // SnapshotVolumes: Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during - // restore. - SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` -} - -type SecretStoreResource_SecretStoreType_STATUS string - -const ( - SecretStoreResource_SecretStoreType_STATUS_AzureKeyVault = SecretStoreResource_SecretStoreType_STATUS("AzureKeyVault") - SecretStoreResource_SecretStoreType_STATUS_Invalid = SecretStoreResource_SecretStoreType_STATUS("Invalid") -) - -type AzureOperationalStoreParameters_DataStoreType_STATUS string - -const ( - AzureOperationalStoreParameters_DataStoreType_STATUS_ArchiveStore = AzureOperationalStoreParameters_DataStoreType_STATUS("ArchiveStore") - AzureOperationalStoreParameters_DataStoreType_STATUS_OperationalStore = AzureOperationalStoreParameters_DataStoreType_STATUS("OperationalStore") - AzureOperationalStoreParameters_DataStoreType_STATUS_VaultStore = AzureOperationalStoreParameters_DataStoreType_STATUS("VaultStore") -) - -type AzureOperationalStoreParameters_ObjectType_STATUS string - -const AzureOperationalStoreParameters_ObjectType_STATUS_AzureOperationalStoreParameters = AzureOperationalStoreParameters_ObjectType_STATUS("AzureOperationalStoreParameters") - -type BlobBackupDatasourceParameters_ObjectType_STATUS string - -const BlobBackupDatasourceParameters_ObjectType_STATUS_BlobBackupDatasourceParameters = BlobBackupDatasourceParameters_ObjectType_STATUS("BlobBackupDatasourceParameters") - -type KubernetesClusterBackupDatasourceParameters_ObjectType_STATUS string - -const KubernetesClusterBackupDatasourceParameters_ObjectType_STATUS_KubernetesClusterBackupDatasourceParameters = KubernetesClusterBackupDatasourceParameters_ObjectType_STATUS("KubernetesClusterBackupDatasourceParameters") diff --git a/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_status_arm_types_gen_test.go b/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_status_arm_types_gen_test.go deleted file mode 100644 index 4bee5e24965..00000000000 --- a/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_status_arm_types_gen_test.go +++ /dev/null @@ -1,1388 +0,0 @@ -// Code generated by azure-service-operator-codegen. DO NOT EDIT. -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -package v1api20230101 - -import ( - "encoding/json" - "github.com/google/go-cmp/cmp" - "github.com/google/go-cmp/cmp/cmpopts" - "github.com/kr/pretty" - "github.com/kylelemons/godebug/diff" - "github.com/leanovate/gopter" - "github.com/leanovate/gopter/gen" - "github.com/leanovate/gopter/prop" - "os" - "reflect" - "testing" -) - -func Test_BackupVaults_BackupInstance_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupVaults_BackupInstance_STATUS_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupVaults_BackupInstance_STATUS_ARM, BackupVaults_BackupInstance_STATUS_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupVaults_BackupInstance_STATUS_ARM runs a test to see if a specific instance of BackupVaults_BackupInstance_STATUS_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupVaults_BackupInstance_STATUS_ARM(subject BackupVaults_BackupInstance_STATUS_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupVaults_BackupInstance_STATUS_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupVaults_BackupInstance_STATUS_ARM instances for property testing - lazily instantiated by -// BackupVaults_BackupInstance_STATUS_ARMGenerator() -var backupVaults_BackupInstance_STATUS_ARMGenerator gopter.Gen - -// BackupVaults_BackupInstance_STATUS_ARMGenerator returns a generator of BackupVaults_BackupInstance_STATUS_ARM instances for property testing. -// We first initialize backupVaults_BackupInstance_STATUS_ARMGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func BackupVaults_BackupInstance_STATUS_ARMGenerator() gopter.Gen { - if backupVaults_BackupInstance_STATUS_ARMGenerator != nil { - return backupVaults_BackupInstance_STATUS_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_STATUS_ARM(generators) - backupVaults_BackupInstance_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(BackupVaults_BackupInstance_STATUS_ARM{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_STATUS_ARM(generators) - AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_STATUS_ARM(generators) - backupVaults_BackupInstance_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(BackupVaults_BackupInstance_STATUS_ARM{}), generators) - - return backupVaults_BackupInstance_STATUS_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_STATUS_ARM is a factory method for creating gopter generators -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["Type"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_STATUS_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_STATUS_ARM(gens map[string]gopter.Gen) { - gens["Properties"] = gen.PtrOf(BackupInstance_STATUS_ARMGenerator()) - gens["SystemData"] = gen.PtrOf(SystemData_STATUS_ARMGenerator()) -} - -func Test_BackupInstance_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupInstance_STATUS_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupInstance_STATUS_ARM, BackupInstance_STATUS_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupInstance_STATUS_ARM runs a test to see if a specific instance of BackupInstance_STATUS_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupInstance_STATUS_ARM(subject BackupInstance_STATUS_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupInstance_STATUS_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupInstance_STATUS_ARM instances for property testing - lazily instantiated by -// BackupInstance_STATUS_ARMGenerator() -var backupInstance_STATUS_ARMGenerator gopter.Gen - -// BackupInstance_STATUS_ARMGenerator returns a generator of BackupInstance_STATUS_ARM instances for property testing. -// We first initialize backupInstance_STATUS_ARMGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func BackupInstance_STATUS_ARMGenerator() gopter.Gen { - if backupInstance_STATUS_ARMGenerator != nil { - return backupInstance_STATUS_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupInstance_STATUS_ARM(generators) - backupInstance_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(BackupInstance_STATUS_ARM{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupInstance_STATUS_ARM(generators) - AddRelatedPropertyGeneratorsForBackupInstance_STATUS_ARM(generators) - backupInstance_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(BackupInstance_STATUS_ARM{}), generators) - - return backupInstance_STATUS_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForBackupInstance_STATUS_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForBackupInstance_STATUS_ARM(gens map[string]gopter.Gen) { - gens["CurrentProtectionState"] = gen.PtrOf(gen.OneConstOf( - BackupInstance_CurrentProtectionState_STATUS_BackupSchedulesSuspended, - BackupInstance_CurrentProtectionState_STATUS_ConfiguringProtection, - BackupInstance_CurrentProtectionState_STATUS_ConfiguringProtectionFailed, - BackupInstance_CurrentProtectionState_STATUS_Invalid, - BackupInstance_CurrentProtectionState_STATUS_NotProtected, - BackupInstance_CurrentProtectionState_STATUS_ProtectionConfigured, - BackupInstance_CurrentProtectionState_STATUS_ProtectionError, - BackupInstance_CurrentProtectionState_STATUS_ProtectionStopped, - BackupInstance_CurrentProtectionState_STATUS_RetentionSchedulesSuspended, - BackupInstance_CurrentProtectionState_STATUS_SoftDeleted, - BackupInstance_CurrentProtectionState_STATUS_SoftDeleting, - BackupInstance_CurrentProtectionState_STATUS_UpdatingProtection)) - gens["FriendlyName"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ProvisioningState"] = gen.PtrOf(gen.AlphaString()) - gens["ValidationType"] = gen.PtrOf(gen.OneConstOf(BackupInstance_ValidationType_STATUS_DeepValidation, BackupInstance_ValidationType_STATUS_ShallowValidation)) -} - -// AddRelatedPropertyGeneratorsForBackupInstance_STATUS_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupInstance_STATUS_ARM(gens map[string]gopter.Gen) { - gens["DataSourceInfo"] = gen.PtrOf(Datasource_STATUS_ARMGenerator()) - gens["DataSourceSetInfo"] = gen.PtrOf(DatasourceSet_STATUS_ARMGenerator()) - gens["DatasourceAuthCredentials"] = gen.PtrOf(AuthCredentials_STATUS_ARMGenerator()) - gens["PolicyInfo"] = gen.PtrOf(PolicyInfo_STATUS_ARMGenerator()) - gens["ProtectionErrorDetails"] = gen.PtrOf(UserFacingError_STATUS_ARMGenerator()) - gens["ProtectionStatus"] = gen.PtrOf(ProtectionStatusDetails_STATUS_ARMGenerator()) -} - -func Test_AuthCredentials_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of AuthCredentials_STATUS_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForAuthCredentials_STATUS_ARM, AuthCredentials_STATUS_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForAuthCredentials_STATUS_ARM runs a test to see if a specific instance of AuthCredentials_STATUS_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForAuthCredentials_STATUS_ARM(subject AuthCredentials_STATUS_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual AuthCredentials_STATUS_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of AuthCredentials_STATUS_ARM instances for property testing - lazily instantiated by -// AuthCredentials_STATUS_ARMGenerator() -var authCredentials_STATUS_ARMGenerator gopter.Gen - -// AuthCredentials_STATUS_ARMGenerator returns a generator of AuthCredentials_STATUS_ARM instances for property testing. -func AuthCredentials_STATUS_ARMGenerator() gopter.Gen { - if authCredentials_STATUS_ARMGenerator != nil { - return authCredentials_STATUS_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForAuthCredentials_STATUS_ARM(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(AuthCredentials_STATUS_ARM{}), map[string]gopter.Gen{propName: propGen})) - } - authCredentials_STATUS_ARMGenerator = gen.OneGenOf(gens...) - - return authCredentials_STATUS_ARMGenerator -} - -// AddRelatedPropertyGeneratorsForAuthCredentials_STATUS_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForAuthCredentials_STATUS_ARM(gens map[string]gopter.Gen) { - gens["SecretStoreBasedAuthCredentials"] = SecretStoreBasedAuthCredentials_STATUS_ARMGenerator().Map(func(it SecretStoreBasedAuthCredentials_STATUS_ARM) *SecretStoreBasedAuthCredentials_STATUS_ARM { - return &it - }) // generate one case for OneOf type -} - -func Test_Datasource_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of Datasource_STATUS_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDatasource_STATUS_ARM, Datasource_STATUS_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDatasource_STATUS_ARM runs a test to see if a specific instance of Datasource_STATUS_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForDatasource_STATUS_ARM(subject Datasource_STATUS_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual Datasource_STATUS_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of Datasource_STATUS_ARM instances for property testing - lazily instantiated by -// Datasource_STATUS_ARMGenerator() -var datasource_STATUS_ARMGenerator gopter.Gen - -// Datasource_STATUS_ARMGenerator returns a generator of Datasource_STATUS_ARM instances for property testing. -func Datasource_STATUS_ARMGenerator() gopter.Gen { - if datasource_STATUS_ARMGenerator != nil { - return datasource_STATUS_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForDatasource_STATUS_ARM(generators) - datasource_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(Datasource_STATUS_ARM{}), generators) - - return datasource_STATUS_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForDatasource_STATUS_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForDatasource_STATUS_ARM(gens map[string]gopter.Gen) { - gens["DatasourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceID"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceLocation"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceName"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceUri"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_DatasourceSet_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of DatasourceSet_STATUS_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDatasourceSet_STATUS_ARM, DatasourceSet_STATUS_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDatasourceSet_STATUS_ARM runs a test to see if a specific instance of DatasourceSet_STATUS_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForDatasourceSet_STATUS_ARM(subject DatasourceSet_STATUS_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual DatasourceSet_STATUS_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of DatasourceSet_STATUS_ARM instances for property testing - lazily instantiated by -// DatasourceSet_STATUS_ARMGenerator() -var datasourceSet_STATUS_ARMGenerator gopter.Gen - -// DatasourceSet_STATUS_ARMGenerator returns a generator of DatasourceSet_STATUS_ARM instances for property testing. -func DatasourceSet_STATUS_ARMGenerator() gopter.Gen { - if datasourceSet_STATUS_ARMGenerator != nil { - return datasourceSet_STATUS_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForDatasourceSet_STATUS_ARM(generators) - datasourceSet_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(DatasourceSet_STATUS_ARM{}), generators) - - return datasourceSet_STATUS_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForDatasourceSet_STATUS_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForDatasourceSet_STATUS_ARM(gens map[string]gopter.Gen) { - gens["DatasourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceID"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceLocation"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceName"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceUri"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_PolicyInfo_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of PolicyInfo_STATUS_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForPolicyInfo_STATUS_ARM, PolicyInfo_STATUS_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForPolicyInfo_STATUS_ARM runs a test to see if a specific instance of PolicyInfo_STATUS_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForPolicyInfo_STATUS_ARM(subject PolicyInfo_STATUS_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual PolicyInfo_STATUS_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of PolicyInfo_STATUS_ARM instances for property testing - lazily instantiated by -// PolicyInfo_STATUS_ARMGenerator() -var policyInfo_STATUS_ARMGenerator gopter.Gen - -// PolicyInfo_STATUS_ARMGenerator returns a generator of PolicyInfo_STATUS_ARM instances for property testing. -// We first initialize policyInfo_STATUS_ARMGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func PolicyInfo_STATUS_ARMGenerator() gopter.Gen { - if policyInfo_STATUS_ARMGenerator != nil { - return policyInfo_STATUS_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForPolicyInfo_STATUS_ARM(generators) - policyInfo_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(PolicyInfo_STATUS_ARM{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForPolicyInfo_STATUS_ARM(generators) - AddRelatedPropertyGeneratorsForPolicyInfo_STATUS_ARM(generators) - policyInfo_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(PolicyInfo_STATUS_ARM{}), generators) - - return policyInfo_STATUS_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForPolicyInfo_STATUS_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForPolicyInfo_STATUS_ARM(gens map[string]gopter.Gen) { - gens["PolicyId"] = gen.PtrOf(gen.AlphaString()) - gens["PolicyVersion"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForPolicyInfo_STATUS_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForPolicyInfo_STATUS_ARM(gens map[string]gopter.Gen) { - gens["PolicyParameters"] = gen.PtrOf(PolicyParameters_STATUS_ARMGenerator()) -} - -func Test_ProtectionStatusDetails_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of ProtectionStatusDetails_STATUS_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForProtectionStatusDetails_STATUS_ARM, ProtectionStatusDetails_STATUS_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForProtectionStatusDetails_STATUS_ARM runs a test to see if a specific instance of ProtectionStatusDetails_STATUS_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForProtectionStatusDetails_STATUS_ARM(subject ProtectionStatusDetails_STATUS_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual ProtectionStatusDetails_STATUS_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of ProtectionStatusDetails_STATUS_ARM instances for property testing - lazily instantiated by -// ProtectionStatusDetails_STATUS_ARMGenerator() -var protectionStatusDetails_STATUS_ARMGenerator gopter.Gen - -// ProtectionStatusDetails_STATUS_ARMGenerator returns a generator of ProtectionStatusDetails_STATUS_ARM instances for property testing. -// We first initialize protectionStatusDetails_STATUS_ARMGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func ProtectionStatusDetails_STATUS_ARMGenerator() gopter.Gen { - if protectionStatusDetails_STATUS_ARMGenerator != nil { - return protectionStatusDetails_STATUS_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForProtectionStatusDetails_STATUS_ARM(generators) - protectionStatusDetails_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(ProtectionStatusDetails_STATUS_ARM{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForProtectionStatusDetails_STATUS_ARM(generators) - AddRelatedPropertyGeneratorsForProtectionStatusDetails_STATUS_ARM(generators) - protectionStatusDetails_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(ProtectionStatusDetails_STATUS_ARM{}), generators) - - return protectionStatusDetails_STATUS_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForProtectionStatusDetails_STATUS_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForProtectionStatusDetails_STATUS_ARM(gens map[string]gopter.Gen) { - gens["Status"] = gen.PtrOf(gen.OneConstOf( - ProtectionStatusDetails_Status_STATUS_ConfiguringProtection, - ProtectionStatusDetails_Status_STATUS_ConfiguringProtectionFailed, - ProtectionStatusDetails_Status_STATUS_ProtectionConfigured, - ProtectionStatusDetails_Status_STATUS_ProtectionStopped, - ProtectionStatusDetails_Status_STATUS_SoftDeleted, - ProtectionStatusDetails_Status_STATUS_SoftDeleting)) -} - -// AddRelatedPropertyGeneratorsForProtectionStatusDetails_STATUS_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForProtectionStatusDetails_STATUS_ARM(gens map[string]gopter.Gen) { - gens["ErrorDetails"] = gen.PtrOf(UserFacingError_STATUS_ARMGenerator()) -} - -func Test_UserFacingError_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of UserFacingError_STATUS_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForUserFacingError_STATUS_ARM, UserFacingError_STATUS_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForUserFacingError_STATUS_ARM runs a test to see if a specific instance of UserFacingError_STATUS_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForUserFacingError_STATUS_ARM(subject UserFacingError_STATUS_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual UserFacingError_STATUS_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of UserFacingError_STATUS_ARM instances for property testing - lazily instantiated by -// UserFacingError_STATUS_ARMGenerator() -var userFacingError_STATUS_ARMGenerator gopter.Gen - -// UserFacingError_STATUS_ARMGenerator returns a generator of UserFacingError_STATUS_ARM instances for property testing. -// We first initialize userFacingError_STATUS_ARMGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func UserFacingError_STATUS_ARMGenerator() gopter.Gen { - if userFacingError_STATUS_ARMGenerator != nil { - return userFacingError_STATUS_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForUserFacingError_STATUS_ARM(generators) - userFacingError_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(UserFacingError_STATUS_ARM{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForUserFacingError_STATUS_ARM(generators) - AddRelatedPropertyGeneratorsForUserFacingError_STATUS_ARM(generators) - userFacingError_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(UserFacingError_STATUS_ARM{}), generators) - - return userFacingError_STATUS_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForUserFacingError_STATUS_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForUserFacingError_STATUS_ARM(gens map[string]gopter.Gen) { - gens["Code"] = gen.PtrOf(gen.AlphaString()) - 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["RecommendedAction"] = gen.SliceOf(gen.AlphaString()) - gens["Target"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForUserFacingError_STATUS_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForUserFacingError_STATUS_ARM(gens map[string]gopter.Gen) { - gens["Details"] = gen.SliceOf(UserFacingError_STATUS_Unrolled_ARMGenerator()) - gens["InnerError"] = gen.PtrOf(InnerError_STATUS_ARMGenerator()) -} - -func Test_InnerError_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of InnerError_STATUS_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForInnerError_STATUS_ARM, InnerError_STATUS_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForInnerError_STATUS_ARM runs a test to see if a specific instance of InnerError_STATUS_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForInnerError_STATUS_ARM(subject InnerError_STATUS_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual InnerError_STATUS_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of InnerError_STATUS_ARM instances for property testing - lazily instantiated by -// InnerError_STATUS_ARMGenerator() -var innerError_STATUS_ARMGenerator gopter.Gen - -// InnerError_STATUS_ARMGenerator returns a generator of InnerError_STATUS_ARM instances for property testing. -// We first initialize innerError_STATUS_ARMGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func InnerError_STATUS_ARMGenerator() gopter.Gen { - if innerError_STATUS_ARMGenerator != nil { - return innerError_STATUS_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForInnerError_STATUS_ARM(generators) - innerError_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(InnerError_STATUS_ARM{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForInnerError_STATUS_ARM(generators) - AddRelatedPropertyGeneratorsForInnerError_STATUS_ARM(generators) - innerError_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(InnerError_STATUS_ARM{}), generators) - - return innerError_STATUS_ARMGenerator -} - -// 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["Code"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForInnerError_STATUS_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForInnerError_STATUS_ARM(gens map[string]gopter.Gen) { - gens["EmbeddedInnerError"] = gen.PtrOf(InnerError_STATUS_Unrolled_ARMGenerator()) -} - -func Test_PolicyParameters_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of PolicyParameters_STATUS_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForPolicyParameters_STATUS_ARM, PolicyParameters_STATUS_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForPolicyParameters_STATUS_ARM runs a test to see if a specific instance of PolicyParameters_STATUS_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForPolicyParameters_STATUS_ARM(subject PolicyParameters_STATUS_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual PolicyParameters_STATUS_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of PolicyParameters_STATUS_ARM instances for property testing - lazily instantiated by -// PolicyParameters_STATUS_ARMGenerator() -var policyParameters_STATUS_ARMGenerator gopter.Gen - -// PolicyParameters_STATUS_ARMGenerator returns a generator of PolicyParameters_STATUS_ARM instances for property testing. -func PolicyParameters_STATUS_ARMGenerator() gopter.Gen { - if policyParameters_STATUS_ARMGenerator != nil { - return policyParameters_STATUS_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForPolicyParameters_STATUS_ARM(generators) - policyParameters_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(PolicyParameters_STATUS_ARM{}), generators) - - return policyParameters_STATUS_ARMGenerator -} - -// AddRelatedPropertyGeneratorsForPolicyParameters_STATUS_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForPolicyParameters_STATUS_ARM(gens map[string]gopter.Gen) { - gens["BackupDatasourceParametersList"] = gen.SliceOf(BackupDatasourceParameters_STATUS_ARMGenerator()) - gens["DataStoreParametersList"] = gen.SliceOf(DataStoreParameters_STATUS_ARMGenerator()) -} - -func Test_SecretStoreBasedAuthCredentials_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of SecretStoreBasedAuthCredentials_STATUS_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForSecretStoreBasedAuthCredentials_STATUS_ARM, SecretStoreBasedAuthCredentials_STATUS_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForSecretStoreBasedAuthCredentials_STATUS_ARM runs a test to see if a specific instance of SecretStoreBasedAuthCredentials_STATUS_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForSecretStoreBasedAuthCredentials_STATUS_ARM(subject SecretStoreBasedAuthCredentials_STATUS_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual SecretStoreBasedAuthCredentials_STATUS_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of SecretStoreBasedAuthCredentials_STATUS_ARM instances for property testing - lazily instantiated by -// SecretStoreBasedAuthCredentials_STATUS_ARMGenerator() -var secretStoreBasedAuthCredentials_STATUS_ARMGenerator gopter.Gen - -// SecretStoreBasedAuthCredentials_STATUS_ARMGenerator returns a generator of SecretStoreBasedAuthCredentials_STATUS_ARM instances for property testing. -// We first initialize secretStoreBasedAuthCredentials_STATUS_ARMGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func SecretStoreBasedAuthCredentials_STATUS_ARMGenerator() gopter.Gen { - if secretStoreBasedAuthCredentials_STATUS_ARMGenerator != nil { - return secretStoreBasedAuthCredentials_STATUS_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS_ARM(generators) - secretStoreBasedAuthCredentials_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(SecretStoreBasedAuthCredentials_STATUS_ARM{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS_ARM(generators) - AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS_ARM(generators) - secretStoreBasedAuthCredentials_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(SecretStoreBasedAuthCredentials_STATUS_ARM{}), generators) - - return secretStoreBasedAuthCredentials_STATUS_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS_ARM(gens map[string]gopter.Gen) { - gens["ObjectType"] = gen.OneConstOf(SecretStoreBasedAuthCredentials_ObjectType_STATUS_SecretStoreBasedAuthCredentials) -} - -// AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS_ARM(gens map[string]gopter.Gen) { - gens["SecretStoreResource"] = gen.PtrOf(SecretStoreResource_STATUS_ARMGenerator()) -} - -func Test_UserFacingError_STATUS_Unrolled_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of UserFacingError_STATUS_Unrolled_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForUserFacingError_STATUS_Unrolled_ARM, UserFacingError_STATUS_Unrolled_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForUserFacingError_STATUS_Unrolled_ARM runs a test to see if a specific instance of UserFacingError_STATUS_Unrolled_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForUserFacingError_STATUS_Unrolled_ARM(subject UserFacingError_STATUS_Unrolled_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual UserFacingError_STATUS_Unrolled_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of UserFacingError_STATUS_Unrolled_ARM instances for property testing - lazily instantiated by -// UserFacingError_STATUS_Unrolled_ARMGenerator() -var userFacingError_STATUS_Unrolled_ARMGenerator gopter.Gen - -// UserFacingError_STATUS_Unrolled_ARMGenerator returns a generator of UserFacingError_STATUS_Unrolled_ARM instances for property testing. -// We first initialize userFacingError_STATUS_Unrolled_ARMGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func UserFacingError_STATUS_Unrolled_ARMGenerator() gopter.Gen { - if userFacingError_STATUS_Unrolled_ARMGenerator != nil { - return userFacingError_STATUS_Unrolled_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForUserFacingError_STATUS_Unrolled_ARM(generators) - userFacingError_STATUS_Unrolled_ARMGenerator = gen.Struct(reflect.TypeOf(UserFacingError_STATUS_Unrolled_ARM{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForUserFacingError_STATUS_Unrolled_ARM(generators) - AddRelatedPropertyGeneratorsForUserFacingError_STATUS_Unrolled_ARM(generators) - userFacingError_STATUS_Unrolled_ARMGenerator = gen.Struct(reflect.TypeOf(UserFacingError_STATUS_Unrolled_ARM{}), generators) - - return userFacingError_STATUS_Unrolled_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForUserFacingError_STATUS_Unrolled_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForUserFacingError_STATUS_Unrolled_ARM(gens map[string]gopter.Gen) { - gens["Code"] = gen.PtrOf(gen.AlphaString()) - 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["RecommendedAction"] = gen.SliceOf(gen.AlphaString()) - gens["Target"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForUserFacingError_STATUS_Unrolled_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForUserFacingError_STATUS_Unrolled_ARM(gens map[string]gopter.Gen) { - gens["InnerError"] = gen.PtrOf(InnerError_STATUS_ARMGenerator()) -} - -func Test_BackupDatasourceParameters_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupDatasourceParameters_STATUS_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupDatasourceParameters_STATUS_ARM, BackupDatasourceParameters_STATUS_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupDatasourceParameters_STATUS_ARM runs a test to see if a specific instance of BackupDatasourceParameters_STATUS_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupDatasourceParameters_STATUS_ARM(subject BackupDatasourceParameters_STATUS_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupDatasourceParameters_STATUS_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupDatasourceParameters_STATUS_ARM instances for property testing - lazily instantiated by -// BackupDatasourceParameters_STATUS_ARMGenerator() -var backupDatasourceParameters_STATUS_ARMGenerator gopter.Gen - -// BackupDatasourceParameters_STATUS_ARMGenerator returns a generator of BackupDatasourceParameters_STATUS_ARM instances for property testing. -func BackupDatasourceParameters_STATUS_ARMGenerator() gopter.Gen { - if backupDatasourceParameters_STATUS_ARMGenerator != nil { - return backupDatasourceParameters_STATUS_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForBackupDatasourceParameters_STATUS_ARM(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(BackupDatasourceParameters_STATUS_ARM{}), map[string]gopter.Gen{propName: propGen})) - } - backupDatasourceParameters_STATUS_ARMGenerator = gen.OneGenOf(gens...) - - return backupDatasourceParameters_STATUS_ARMGenerator -} - -// AddRelatedPropertyGeneratorsForBackupDatasourceParameters_STATUS_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupDatasourceParameters_STATUS_ARM(gens map[string]gopter.Gen) { - gens["Blob"] = BlobBackupDatasourceParameters_STATUS_ARMGenerator().Map(func(it BlobBackupDatasourceParameters_STATUS_ARM) *BlobBackupDatasourceParameters_STATUS_ARM { - return &it - }) // generate one case for OneOf type - gens["KubernetesCluster"] = KubernetesClusterBackupDatasourceParameters_STATUS_ARMGenerator().Map(func(it KubernetesClusterBackupDatasourceParameters_STATUS_ARM) *KubernetesClusterBackupDatasourceParameters_STATUS_ARM { - return &it - }) // generate one case for OneOf type -} - -func Test_DataStoreParameters_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of DataStoreParameters_STATUS_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDataStoreParameters_STATUS_ARM, DataStoreParameters_STATUS_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDataStoreParameters_STATUS_ARM runs a test to see if a specific instance of DataStoreParameters_STATUS_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForDataStoreParameters_STATUS_ARM(subject DataStoreParameters_STATUS_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual DataStoreParameters_STATUS_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of DataStoreParameters_STATUS_ARM instances for property testing - lazily instantiated by -// DataStoreParameters_STATUS_ARMGenerator() -var dataStoreParameters_STATUS_ARMGenerator gopter.Gen - -// DataStoreParameters_STATUS_ARMGenerator returns a generator of DataStoreParameters_STATUS_ARM instances for property testing. -func DataStoreParameters_STATUS_ARMGenerator() gopter.Gen { - if dataStoreParameters_STATUS_ARMGenerator != nil { - return dataStoreParameters_STATUS_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForDataStoreParameters_STATUS_ARM(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(DataStoreParameters_STATUS_ARM{}), map[string]gopter.Gen{propName: propGen})) - } - dataStoreParameters_STATUS_ARMGenerator = gen.OneGenOf(gens...) - - return dataStoreParameters_STATUS_ARMGenerator -} - -// AddRelatedPropertyGeneratorsForDataStoreParameters_STATUS_ARM is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForDataStoreParameters_STATUS_ARM(gens map[string]gopter.Gen) { - gens["AzureOperationalStoreParameters"] = AzureOperationalStoreParameters_STATUS_ARMGenerator().Map(func(it AzureOperationalStoreParameters_STATUS_ARM) *AzureOperationalStoreParameters_STATUS_ARM { - return &it - }) // generate one case for OneOf type -} - -func Test_InnerError_STATUS_Unrolled_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of InnerError_STATUS_Unrolled_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForInnerError_STATUS_Unrolled_ARM, InnerError_STATUS_Unrolled_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForInnerError_STATUS_Unrolled_ARM runs a test to see if a specific instance of InnerError_STATUS_Unrolled_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForInnerError_STATUS_Unrolled_ARM(subject InnerError_STATUS_Unrolled_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual InnerError_STATUS_Unrolled_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of InnerError_STATUS_Unrolled_ARM instances for property testing - lazily instantiated by -// InnerError_STATUS_Unrolled_ARMGenerator() -var innerError_STATUS_Unrolled_ARMGenerator gopter.Gen - -// InnerError_STATUS_Unrolled_ARMGenerator returns a generator of InnerError_STATUS_Unrolled_ARM instances for property testing. -func InnerError_STATUS_Unrolled_ARMGenerator() gopter.Gen { - if innerError_STATUS_Unrolled_ARMGenerator != nil { - return innerError_STATUS_Unrolled_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForInnerError_STATUS_Unrolled_ARM(generators) - innerError_STATUS_Unrolled_ARMGenerator = gen.Struct(reflect.TypeOf(InnerError_STATUS_Unrolled_ARM{}), generators) - - return innerError_STATUS_Unrolled_ARMGenerator -} - -// 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["Code"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_SecretStoreResource_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of SecretStoreResource_STATUS_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForSecretStoreResource_STATUS_ARM, SecretStoreResource_STATUS_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForSecretStoreResource_STATUS_ARM runs a test to see if a specific instance of SecretStoreResource_STATUS_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForSecretStoreResource_STATUS_ARM(subject SecretStoreResource_STATUS_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual SecretStoreResource_STATUS_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of SecretStoreResource_STATUS_ARM instances for property testing - lazily instantiated by -// SecretStoreResource_STATUS_ARMGenerator() -var secretStoreResource_STATUS_ARMGenerator gopter.Gen - -// SecretStoreResource_STATUS_ARMGenerator returns a generator of SecretStoreResource_STATUS_ARM instances for property testing. -func SecretStoreResource_STATUS_ARMGenerator() gopter.Gen { - if secretStoreResource_STATUS_ARMGenerator != nil { - return secretStoreResource_STATUS_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreResource_STATUS_ARM(generators) - secretStoreResource_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(SecretStoreResource_STATUS_ARM{}), generators) - - return secretStoreResource_STATUS_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForSecretStoreResource_STATUS_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForSecretStoreResource_STATUS_ARM(gens map[string]gopter.Gen) { - gens["SecretStoreType"] = gen.PtrOf(gen.OneConstOf(SecretStoreResource_SecretStoreType_STATUS_AzureKeyVault, SecretStoreResource_SecretStoreType_STATUS_Invalid)) - gens["Uri"] = gen.PtrOf(gen.AlphaString()) - gens["Value"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_AzureOperationalStoreParameters_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of AzureOperationalStoreParameters_STATUS_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForAzureOperationalStoreParameters_STATUS_ARM, AzureOperationalStoreParameters_STATUS_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForAzureOperationalStoreParameters_STATUS_ARM runs a test to see if a specific instance of AzureOperationalStoreParameters_STATUS_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForAzureOperationalStoreParameters_STATUS_ARM(subject AzureOperationalStoreParameters_STATUS_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual AzureOperationalStoreParameters_STATUS_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of AzureOperationalStoreParameters_STATUS_ARM instances for property testing - lazily instantiated by -// AzureOperationalStoreParameters_STATUS_ARMGenerator() -var azureOperationalStoreParameters_STATUS_ARMGenerator gopter.Gen - -// AzureOperationalStoreParameters_STATUS_ARMGenerator returns a generator of AzureOperationalStoreParameters_STATUS_ARM instances for property testing. -func AzureOperationalStoreParameters_STATUS_ARMGenerator() gopter.Gen { - if azureOperationalStoreParameters_STATUS_ARMGenerator != nil { - return azureOperationalStoreParameters_STATUS_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters_STATUS_ARM(generators) - azureOperationalStoreParameters_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(AzureOperationalStoreParameters_STATUS_ARM{}), generators) - - return azureOperationalStoreParameters_STATUS_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters_STATUS_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters_STATUS_ARM(gens map[string]gopter.Gen) { - gens["DataStoreType"] = gen.PtrOf(gen.OneConstOf(AzureOperationalStoreParameters_DataStoreType_STATUS_ArchiveStore, AzureOperationalStoreParameters_DataStoreType_STATUS_OperationalStore, AzureOperationalStoreParameters_DataStoreType_STATUS_VaultStore)) - gens["ObjectType"] = gen.OneConstOf(AzureOperationalStoreParameters_ObjectType_STATUS_AzureOperationalStoreParameters) - gens["ResourceGroupId"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_BlobBackupDatasourceParameters_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BlobBackupDatasourceParameters_STATUS_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBlobBackupDatasourceParameters_STATUS_ARM, BlobBackupDatasourceParameters_STATUS_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBlobBackupDatasourceParameters_STATUS_ARM runs a test to see if a specific instance of BlobBackupDatasourceParameters_STATUS_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForBlobBackupDatasourceParameters_STATUS_ARM(subject BlobBackupDatasourceParameters_STATUS_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BlobBackupDatasourceParameters_STATUS_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BlobBackupDatasourceParameters_STATUS_ARM instances for property testing - lazily instantiated by -// BlobBackupDatasourceParameters_STATUS_ARMGenerator() -var blobBackupDatasourceParameters_STATUS_ARMGenerator gopter.Gen - -// BlobBackupDatasourceParameters_STATUS_ARMGenerator returns a generator of BlobBackupDatasourceParameters_STATUS_ARM instances for property testing. -func BlobBackupDatasourceParameters_STATUS_ARMGenerator() gopter.Gen { - if blobBackupDatasourceParameters_STATUS_ARMGenerator != nil { - return blobBackupDatasourceParameters_STATUS_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters_STATUS_ARM(generators) - blobBackupDatasourceParameters_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(BlobBackupDatasourceParameters_STATUS_ARM{}), generators) - - return blobBackupDatasourceParameters_STATUS_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters_STATUS_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters_STATUS_ARM(gens map[string]gopter.Gen) { - gens["ContainersList"] = gen.SliceOf(gen.AlphaString()) - gens["ObjectType"] = gen.OneConstOf(BlobBackupDatasourceParameters_ObjectType_STATUS_BlobBackupDatasourceParameters) -} - -func Test_KubernetesClusterBackupDatasourceParameters_STATUS_ARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of KubernetesClusterBackupDatasourceParameters_STATUS_ARM via JSON returns original", - prop.ForAll(RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters_STATUS_ARM, KubernetesClusterBackupDatasourceParameters_STATUS_ARMGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters_STATUS_ARM runs a test to see if a specific instance of KubernetesClusterBackupDatasourceParameters_STATUS_ARM round trips to JSON and back losslessly -func RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters_STATUS_ARM(subject KubernetesClusterBackupDatasourceParameters_STATUS_ARM) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual KubernetesClusterBackupDatasourceParameters_STATUS_ARM - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of KubernetesClusterBackupDatasourceParameters_STATUS_ARM instances for property testing - lazily -// instantiated by KubernetesClusterBackupDatasourceParameters_STATUS_ARMGenerator() -var kubernetesClusterBackupDatasourceParameters_STATUS_ARMGenerator gopter.Gen - -// KubernetesClusterBackupDatasourceParameters_STATUS_ARMGenerator returns a generator of KubernetesClusterBackupDatasourceParameters_STATUS_ARM instances for property testing. -func KubernetesClusterBackupDatasourceParameters_STATUS_ARMGenerator() gopter.Gen { - if kubernetesClusterBackupDatasourceParameters_STATUS_ARMGenerator != nil { - return kubernetesClusterBackupDatasourceParameters_STATUS_ARMGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters_STATUS_ARM(generators) - kubernetesClusterBackupDatasourceParameters_STATUS_ARMGenerator = gen.Struct(reflect.TypeOf(KubernetesClusterBackupDatasourceParameters_STATUS_ARM{}), generators) - - return kubernetesClusterBackupDatasourceParameters_STATUS_ARMGenerator -} - -// AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters_STATUS_ARM is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters_STATUS_ARM(gens map[string]gopter.Gen) { - gens["ExcludedNamespaces"] = gen.SliceOf(gen.AlphaString()) - gens["ExcludedResourceTypes"] = gen.SliceOf(gen.AlphaString()) - gens["IncludeClusterScopeResources"] = gen.PtrOf(gen.Bool()) - gens["IncludedNamespaces"] = gen.SliceOf(gen.AlphaString()) - gens["IncludedResourceTypes"] = gen.SliceOf(gen.AlphaString()) - gens["LabelSelectors"] = gen.SliceOf(gen.AlphaString()) - gens["ObjectType"] = gen.OneConstOf(KubernetesClusterBackupDatasourceParameters_ObjectType_STATUS_KubernetesClusterBackupDatasourceParameters) - gens["SnapshotVolumes"] = gen.PtrOf(gen.Bool()) -} diff --git a/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_types_gen.go b/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_types_gen.go deleted file mode 100644 index db5fa96e9ca..00000000000 --- a/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_types_gen.go +++ /dev/null @@ -1,5466 +0,0 @@ -// Code generated by azure-service-operator-codegen. DO NOT EDIT. -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -package v1api20230101 - -import ( - "fmt" - v20230101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101/storage" - "github.com/Azure/azure-service-operator/v2/internal/reflecthelpers" - "github.com/Azure/azure-service-operator/v2/pkg/genruntime" - "github.com/Azure/azure-service-operator/v2/pkg/genruntime/conditions" - "github.com/pkg/errors" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/controller-runtime/pkg/conversion" - "sigs.k8s.io/controller-runtime/pkg/webhook/admission" -) - -// +kubebuilder:object:root=true -// +kubebuilder:subresource:status -// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="Severity",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].severity" -// +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason" -// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message" -// Generator information: -// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/dataprotection.json -// - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName} -type BackupVaultsBackupInstance struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec BackupVaults_BackupInstance_Spec `json:"spec,omitempty"` - Status BackupVaults_BackupInstance_STATUS `json:"status,omitempty"` -} - -var _ conditions.Conditioner = &BackupVaultsBackupInstance{} - -// GetConditions returns the conditions of the resource -func (instance *BackupVaultsBackupInstance) GetConditions() conditions.Conditions { - return instance.Status.Conditions -} - -// SetConditions sets the conditions on the resource status -func (instance *BackupVaultsBackupInstance) SetConditions(conditions conditions.Conditions) { - instance.Status.Conditions = conditions -} - -var _ conversion.Convertible = &BackupVaultsBackupInstance{} - -// ConvertFrom populates our BackupVaultsBackupInstance from the provided hub BackupVaultsBackupInstance -func (instance *BackupVaultsBackupInstance) ConvertFrom(hub conversion.Hub) error { - // intermediate variable for conversion - var source v20230101s.BackupVaultsBackupInstance - - err := source.ConvertFrom(hub) - if err != nil { - return errors.Wrap(err, "converting from hub to source") - } - - err = instance.AssignProperties_From_BackupVaultsBackupInstance(&source) - if err != nil { - return errors.Wrap(err, "converting from source to instance") - } - - return nil -} - -// ConvertTo populates the provided hub BackupVaultsBackupInstance from our BackupVaultsBackupInstance -func (instance *BackupVaultsBackupInstance) ConvertTo(hub conversion.Hub) error { - // intermediate variable for conversion - var destination v20230101s.BackupVaultsBackupInstance - err := instance.AssignProperties_To_BackupVaultsBackupInstance(&destination) - if err != nil { - return errors.Wrap(err, "converting to destination from instance") - } - err = destination.ConvertTo(hub) - if err != nil { - return errors.Wrap(err, "converting from destination to hub") - } - - return nil -} - -// +kubebuilder:webhook:path=/mutate-dataprotection-azure-com-v1api20230101-backupvaultsbackupinstance,mutating=true,sideEffects=None,matchPolicy=Exact,failurePolicy=fail,groups=dataprotection.azure.com,resources=backupvaultsbackupinstances,verbs=create;update,versions=v1api20230101,name=default.v1api20230101.backupvaultsbackupinstances.dataprotection.azure.com,admissionReviewVersions=v1 - -var _ admission.Defaulter = &BackupVaultsBackupInstance{} - -// Default applies defaults to the BackupVaultsBackupInstance resource -func (instance *BackupVaultsBackupInstance) Default() { - instance.defaultImpl() - var temp any = instance - if runtimeDefaulter, ok := temp.(genruntime.Defaulter); ok { - runtimeDefaulter.CustomDefault() - } -} - -// defaultAzureName defaults the Azure name of the resource to the Kubernetes name -func (instance *BackupVaultsBackupInstance) defaultAzureName() { - if instance.Spec.AzureName == "" { - instance.Spec.AzureName = instance.Name - } -} - -// defaultImpl applies the code generated defaults to the BackupVaultsBackupInstance resource -func (instance *BackupVaultsBackupInstance) defaultImpl() { instance.defaultAzureName() } - -var _ genruntime.KubernetesResource = &BackupVaultsBackupInstance{} - -// AzureName returns the Azure name of the resource -func (instance *BackupVaultsBackupInstance) AzureName() string { - return instance.Spec.AzureName -} - -// GetAPIVersion returns the ARM API version of the resource. This is always "2023-01-01" -func (instance BackupVaultsBackupInstance) GetAPIVersion() string { - return string(APIVersion_Value) -} - -// GetResourceScope returns the scope of the resource -func (instance *BackupVaultsBackupInstance) GetResourceScope() genruntime.ResourceScope { - return genruntime.ResourceScopeResourceGroup -} - -// GetSpec returns the specification of this resource -func (instance *BackupVaultsBackupInstance) GetSpec() genruntime.ConvertibleSpec { - return &instance.Spec -} - -// GetStatus returns the status of this resource -func (instance *BackupVaultsBackupInstance) GetStatus() genruntime.ConvertibleStatus { - return &instance.Status -} - -// GetSupportedOperations returns the operations supported by the resource -func (instance *BackupVaultsBackupInstance) GetSupportedOperations() []genruntime.ResourceOperation { - return []genruntime.ResourceOperation{ - genruntime.ResourceOperationDelete, - genruntime.ResourceOperationGet, - genruntime.ResourceOperationPut, - } -} - -// GetType returns the ARM Type of the resource. This is always "Microsoft.DataProtection/backupVaults/backupInstances" -func (instance *BackupVaultsBackupInstance) GetType() string { - return "Microsoft.DataProtection/backupVaults/backupInstances" -} - -// NewEmptyStatus returns a new empty (blank) status -func (instance *BackupVaultsBackupInstance) NewEmptyStatus() genruntime.ConvertibleStatus { - return &BackupVaults_BackupInstance_STATUS{} -} - -// Owner returns the ResourceReference of the owner -func (instance *BackupVaultsBackupInstance) Owner() *genruntime.ResourceReference { - group, kind := genruntime.LookupOwnerGroupKind(instance.Spec) - return instance.Spec.Owner.AsResourceReference(group, kind) -} - -// SetStatus sets the status of this resource -func (instance *BackupVaultsBackupInstance) SetStatus(status genruntime.ConvertibleStatus) error { - // If we have exactly the right type of status, assign it - if st, ok := status.(*BackupVaults_BackupInstance_STATUS); ok { - instance.Status = *st - return nil - } - - // Convert status to required version - var st BackupVaults_BackupInstance_STATUS - err := status.ConvertStatusTo(&st) - if err != nil { - return errors.Wrap(err, "failed to convert status") - } - - instance.Status = st - return nil -} - -// +kubebuilder:webhook:path=/validate-dataprotection-azure-com-v1api20230101-backupvaultsbackupinstance,mutating=false,sideEffects=None,matchPolicy=Exact,failurePolicy=fail,groups=dataprotection.azure.com,resources=backupvaultsbackupinstances,verbs=create;update,versions=v1api20230101,name=validate.v1api20230101.backupvaultsbackupinstances.dataprotection.azure.com,admissionReviewVersions=v1 - -var _ admission.Validator = &BackupVaultsBackupInstance{} - -// ValidateCreate validates the creation of the resource -func (instance *BackupVaultsBackupInstance) ValidateCreate() (admission.Warnings, error) { - validations := instance.createValidations() - var temp any = instance - if runtimeValidator, ok := temp.(genruntime.Validator); ok { - validations = append(validations, runtimeValidator.CreateValidations()...) - } - return genruntime.ValidateCreate(validations) -} - -// ValidateDelete validates the deletion of the resource -func (instance *BackupVaultsBackupInstance) ValidateDelete() (admission.Warnings, error) { - validations := instance.deleteValidations() - var temp any = instance - if runtimeValidator, ok := temp.(genruntime.Validator); ok { - validations = append(validations, runtimeValidator.DeleteValidations()...) - } - return genruntime.ValidateDelete(validations) -} - -// ValidateUpdate validates an update of the resource -func (instance *BackupVaultsBackupInstance) ValidateUpdate(old runtime.Object) (admission.Warnings, error) { - validations := instance.updateValidations() - var temp any = instance - if runtimeValidator, ok := temp.(genruntime.Validator); ok { - validations = append(validations, runtimeValidator.UpdateValidations()...) - } - return genruntime.ValidateUpdate(old, validations) -} - -// createValidations validates the creation of the resource -func (instance *BackupVaultsBackupInstance) createValidations() []func() (admission.Warnings, error) { - return []func() (admission.Warnings, error){instance.validateResourceReferences, instance.validateOwnerReference} -} - -// deleteValidations validates the deletion of the resource -func (instance *BackupVaultsBackupInstance) deleteValidations() []func() (admission.Warnings, error) { - return nil -} - -// updateValidations validates the update of the resource -func (instance *BackupVaultsBackupInstance) updateValidations() []func(old runtime.Object) (admission.Warnings, error) { - return []func(old runtime.Object) (admission.Warnings, error){ - func(old runtime.Object) (admission.Warnings, error) { - return instance.validateResourceReferences() - }, - instance.validateWriteOnceProperties, - func(old runtime.Object) (admission.Warnings, error) { - return instance.validateOwnerReference() - }, - } -} - -// validateOwnerReference validates the owner field -func (instance *BackupVaultsBackupInstance) validateOwnerReference() (admission.Warnings, error) { - return genruntime.ValidateOwner(instance) -} - -// validateResourceReferences validates all resource references -func (instance *BackupVaultsBackupInstance) validateResourceReferences() (admission.Warnings, error) { - refs, err := reflecthelpers.FindResourceReferences(&instance.Spec) - if err != nil { - return nil, err - } - return genruntime.ValidateResourceReferences(refs) -} - -// validateWriteOnceProperties validates all WriteOnce properties -func (instance *BackupVaultsBackupInstance) validateWriteOnceProperties(old runtime.Object) (admission.Warnings, error) { - oldObj, ok := old.(*BackupVaultsBackupInstance) - if !ok { - return nil, nil - } - - return genruntime.ValidateWriteOnceProperties(oldObj, instance) -} - -// AssignProperties_From_BackupVaultsBackupInstance populates our BackupVaultsBackupInstance from the provided source BackupVaultsBackupInstance -func (instance *BackupVaultsBackupInstance) AssignProperties_From_BackupVaultsBackupInstance(source *v20230101s.BackupVaultsBackupInstance) error { - - // ObjectMeta - instance.ObjectMeta = *source.ObjectMeta.DeepCopy() - - // Spec - var spec BackupVaults_BackupInstance_Spec - err := spec.AssignProperties_From_BackupVaults_BackupInstance_Spec(&source.Spec) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_BackupVaults_BackupInstance_Spec() to populate field Spec") - } - instance.Spec = spec - - // Status - var status BackupVaults_BackupInstance_STATUS - err = status.AssignProperties_From_BackupVaults_BackupInstance_STATUS(&source.Status) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_BackupVaults_BackupInstance_STATUS() to populate field Status") - } - instance.Status = status - - // No error - return nil -} - -// AssignProperties_To_BackupVaultsBackupInstance populates the provided destination BackupVaultsBackupInstance from our BackupVaultsBackupInstance -func (instance *BackupVaultsBackupInstance) AssignProperties_To_BackupVaultsBackupInstance(destination *v20230101s.BackupVaultsBackupInstance) error { - - // ObjectMeta - destination.ObjectMeta = *instance.ObjectMeta.DeepCopy() - - // Spec - var spec v20230101s.BackupVaults_BackupInstance_Spec - err := instance.Spec.AssignProperties_To_BackupVaults_BackupInstance_Spec(&spec) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_BackupVaults_BackupInstance_Spec() to populate field Spec") - } - destination.Spec = spec - - // Status - var status v20230101s.BackupVaults_BackupInstance_STATUS - err = instance.Status.AssignProperties_To_BackupVaults_BackupInstance_STATUS(&status) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_BackupVaults_BackupInstance_STATUS() to populate field Status") - } - destination.Status = status - - // No error - return nil -} - -// OriginalGVK returns a GroupValueKind for the original API version used to create the resource -func (instance *BackupVaultsBackupInstance) OriginalGVK() *schema.GroupVersionKind { - return &schema.GroupVersionKind{ - Group: GroupVersion.Group, - Version: instance.Spec.OriginalVersion(), - Kind: "BackupVaultsBackupInstance", - } -} - -// +kubebuilder:object:root=true -// Generator information: -// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/dataprotection.json -// - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName} -type BackupVaultsBackupInstanceList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []BackupVaultsBackupInstance `json:"items"` -} - -type BackupVaults_BackupInstance_Spec struct { - // AzureName: The name of the resource in Azure. This is often the same as the name of the resource in Kubernetes but it - // doesn't have to be. - AzureName string `json:"azureName,omitempty"` - - // +kubebuilder:validation:Required - // Owner: The owner of the resource. The owner controls where the resource goes when it is deployed. The owner also - // controls the resources lifecycle. When the owner is deleted the resource will also be deleted. Owner is expected to be a - // reference to a dataprotection.azure.com/BackupVault resource - Owner *genruntime.KnownResourceReference `group:"dataprotection.azure.com" json:"owner,omitempty" kind:"BackupVault"` - - // Properties: BackupInstanceResource properties - Properties *BackupInstance `json:"properties,omitempty"` - - // Tags: Proxy Resource tags. - Tags map[string]string `json:"tags,omitempty"` -} - -var _ genruntime.ARMTransformer = &BackupVaults_BackupInstance_Spec{} - -// ConvertToARM converts from a Kubernetes CRD object to an ARM object -func (instance *BackupVaults_BackupInstance_Spec) ConvertToARM(resolved genruntime.ConvertToARMResolvedDetails) (interface{}, error) { - if instance == nil { - return nil, nil - } - result := &BackupVaults_BackupInstance_Spec_ARM{} - - // Set property "Name": - result.Name = resolved.Name - - // Set property "Properties": - if instance.Properties != nil { - properties_ARM, err := (*instance.Properties).ConvertToARM(resolved) - if err != nil { - return nil, err - } - properties := *properties_ARM.(*BackupInstance_ARM) - result.Properties = &properties - } - - // Set property "Tags": - if instance.Tags != nil { - result.Tags = make(map[string]string, len(instance.Tags)) - for key, value := range instance.Tags { - result.Tags[key] = value - } - } - return result, nil -} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (instance *BackupVaults_BackupInstance_Spec) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &BackupVaults_BackupInstance_Spec_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (instance *BackupVaults_BackupInstance_Spec) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(BackupVaults_BackupInstance_Spec_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected BackupVaults_BackupInstance_Spec_ARM, got %T", armInput) - } - - // Set property "AzureName": - instance.SetAzureName(genruntime.ExtractKubernetesResourceNameFromARMName(typedInput.Name)) - - // Set property "Owner": - instance.Owner = &genruntime.KnownResourceReference{ - Name: owner.Name, - ARMID: owner.ARMID, - } - - // Set property "Properties": - if typedInput.Properties != nil { - var properties1 BackupInstance - err := properties1.PopulateFromARM(owner, *typedInput.Properties) - if err != nil { - return err - } - properties := properties1 - instance.Properties = &properties - } - - // Set property "Tags": - if typedInput.Tags != nil { - instance.Tags = make(map[string]string, len(typedInput.Tags)) - for key, value := range typedInput.Tags { - instance.Tags[key] = value - } - } - - // No error - return nil -} - -var _ genruntime.ConvertibleSpec = &BackupVaults_BackupInstance_Spec{} - -// ConvertSpecFrom populates our BackupVaults_BackupInstance_Spec from the provided source -func (instance *BackupVaults_BackupInstance_Spec) ConvertSpecFrom(source genruntime.ConvertibleSpec) error { - src, ok := source.(*v20230101s.BackupVaults_BackupInstance_Spec) - if ok { - // Populate our instance from source - return instance.AssignProperties_From_BackupVaults_BackupInstance_Spec(src) - } - - // Convert to an intermediate form - src = &v20230101s.BackupVaults_BackupInstance_Spec{} - err := src.ConvertSpecFrom(source) - if err != nil { - return errors.Wrap(err, "initial step of conversion in ConvertSpecFrom()") - } - - // Update our instance from src - err = instance.AssignProperties_From_BackupVaults_BackupInstance_Spec(src) - if err != nil { - return errors.Wrap(err, "final step of conversion in ConvertSpecFrom()") - } - - return nil -} - -// ConvertSpecTo populates the provided destination from our BackupVaults_BackupInstance_Spec -func (instance *BackupVaults_BackupInstance_Spec) ConvertSpecTo(destination genruntime.ConvertibleSpec) error { - dst, ok := destination.(*v20230101s.BackupVaults_BackupInstance_Spec) - if ok { - // Populate destination from our instance - return instance.AssignProperties_To_BackupVaults_BackupInstance_Spec(dst) - } - - // Convert to an intermediate form - dst = &v20230101s.BackupVaults_BackupInstance_Spec{} - err := instance.AssignProperties_To_BackupVaults_BackupInstance_Spec(dst) - if err != nil { - return errors.Wrap(err, "initial step of conversion in ConvertSpecTo()") - } - - // Update dst from our instance - err = dst.ConvertSpecTo(destination) - if err != nil { - return errors.Wrap(err, "final step of conversion in ConvertSpecTo()") - } - - return nil -} - -// AssignProperties_From_BackupVaults_BackupInstance_Spec populates our BackupVaults_BackupInstance_Spec from the provided source BackupVaults_BackupInstance_Spec -func (instance *BackupVaults_BackupInstance_Spec) AssignProperties_From_BackupVaults_BackupInstance_Spec(source *v20230101s.BackupVaults_BackupInstance_Spec) error { - - // AzureName - instance.AzureName = source.AzureName - - // Owner - if source.Owner != nil { - owner := source.Owner.Copy() - instance.Owner = &owner - } else { - instance.Owner = nil - } - - // Properties - if source.Properties != nil { - var property BackupInstance - err := property.AssignProperties_From_BackupInstance(source.Properties) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_BackupInstance() to populate field Properties") - } - instance.Properties = &property - } else { - instance.Properties = nil - } - - // Tags - instance.Tags = genruntime.CloneMapOfStringToString(source.Tags) - - // No error - return nil -} - -// AssignProperties_To_BackupVaults_BackupInstance_Spec populates the provided destination BackupVaults_BackupInstance_Spec from our BackupVaults_BackupInstance_Spec -func (instance *BackupVaults_BackupInstance_Spec) AssignProperties_To_BackupVaults_BackupInstance_Spec(destination *v20230101s.BackupVaults_BackupInstance_Spec) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // AzureName - destination.AzureName = instance.AzureName - - // OriginalVersion - destination.OriginalVersion = instance.OriginalVersion() - - // Owner - if instance.Owner != nil { - owner := instance.Owner.Copy() - destination.Owner = &owner - } else { - destination.Owner = nil - } - - // Properties - if instance.Properties != nil { - var property v20230101s.BackupInstance - err := instance.Properties.AssignProperties_To_BackupInstance(&property) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_BackupInstance() to populate field Properties") - } - destination.Properties = &property - } else { - destination.Properties = nil - } - - // Tags - destination.Tags = genruntime.CloneMapOfStringToString(instance.Tags) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -// OriginalVersion returns the original API version used to create the resource. -func (instance *BackupVaults_BackupInstance_Spec) OriginalVersion() string { - return GroupVersion.Version -} - -// SetAzureName sets the Azure name of the resource -func (instance *BackupVaults_BackupInstance_Spec) SetAzureName(azureName string) { - instance.AzureName = azureName -} - -type BackupVaults_BackupInstance_STATUS struct { - // Conditions: The observed state of the resource - Conditions []conditions.Condition `json:"conditions,omitempty"` - - // Id: Proxy Resource Id represents the complete path to the resource. - Id *string `json:"id,omitempty"` - - // Name: Proxy Resource name associated with the resource. - Name *string `json:"name,omitempty"` - - // Properties: BackupInstanceResource properties - Properties *BackupInstance_STATUS `json:"properties,omitempty"` - - // SystemData: Metadata pertaining to creation and last modification of the resource. - SystemData *SystemData_STATUS `json:"systemData,omitempty"` - - // Tags: Proxy Resource tags. - Tags map[string]string `json:"tags,omitempty"` - - // Type: Proxy Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... - Type *string `json:"type,omitempty"` -} - -var _ genruntime.ConvertibleStatus = &BackupVaults_BackupInstance_STATUS{} - -// ConvertStatusFrom populates our BackupVaults_BackupInstance_STATUS from the provided source -func (instance *BackupVaults_BackupInstance_STATUS) ConvertStatusFrom(source genruntime.ConvertibleStatus) error { - src, ok := source.(*v20230101s.BackupVaults_BackupInstance_STATUS) - if ok { - // Populate our instance from source - return instance.AssignProperties_From_BackupVaults_BackupInstance_STATUS(src) - } - - // Convert to an intermediate form - src = &v20230101s.BackupVaults_BackupInstance_STATUS{} - err := src.ConvertStatusFrom(source) - if err != nil { - return errors.Wrap(err, "initial step of conversion in ConvertStatusFrom()") - } - - // Update our instance from src - err = instance.AssignProperties_From_BackupVaults_BackupInstance_STATUS(src) - if err != nil { - return errors.Wrap(err, "final step of conversion in ConvertStatusFrom()") - } - - return nil -} - -// ConvertStatusTo populates the provided destination from our BackupVaults_BackupInstance_STATUS -func (instance *BackupVaults_BackupInstance_STATUS) ConvertStatusTo(destination genruntime.ConvertibleStatus) error { - dst, ok := destination.(*v20230101s.BackupVaults_BackupInstance_STATUS) - if ok { - // Populate destination from our instance - return instance.AssignProperties_To_BackupVaults_BackupInstance_STATUS(dst) - } - - // Convert to an intermediate form - dst = &v20230101s.BackupVaults_BackupInstance_STATUS{} - err := instance.AssignProperties_To_BackupVaults_BackupInstance_STATUS(dst) - if err != nil { - return errors.Wrap(err, "initial step of conversion in ConvertStatusTo()") - } - - // Update dst from our instance - err = dst.ConvertStatusTo(destination) - if err != nil { - return errors.Wrap(err, "final step of conversion in ConvertStatusTo()") - } - - return nil -} - -var _ genruntime.FromARMConverter = &BackupVaults_BackupInstance_STATUS{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (instance *BackupVaults_BackupInstance_STATUS) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &BackupVaults_BackupInstance_STATUS_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (instance *BackupVaults_BackupInstance_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(BackupVaults_BackupInstance_STATUS_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected BackupVaults_BackupInstance_STATUS_ARM, got %T", armInput) - } - - // no assignment for property "Conditions" - - // Set property "Id": - if typedInput.Id != nil { - id := *typedInput.Id - instance.Id = &id - } - - // Set property "Name": - if typedInput.Name != nil { - name := *typedInput.Name - instance.Name = &name - } - - // Set property "Properties": - if typedInput.Properties != nil { - var properties1 BackupInstance_STATUS - err := properties1.PopulateFromARM(owner, *typedInput.Properties) - if err != nil { - return err - } - properties := properties1 - instance.Properties = &properties - } - - // Set property "SystemData": - if typedInput.SystemData != nil { - var systemData1 SystemData_STATUS - err := systemData1.PopulateFromARM(owner, *typedInput.SystemData) - if err != nil { - return err - } - systemData := systemData1 - instance.SystemData = &systemData - } - - // Set property "Tags": - if typedInput.Tags != nil { - instance.Tags = make(map[string]string, len(typedInput.Tags)) - for key, value := range typedInput.Tags { - instance.Tags[key] = value - } - } - - // Set property "Type": - if typedInput.Type != nil { - typeVar := *typedInput.Type - instance.Type = &typeVar - } - - // No error - return nil -} - -// AssignProperties_From_BackupVaults_BackupInstance_STATUS populates our BackupVaults_BackupInstance_STATUS from the provided source BackupVaults_BackupInstance_STATUS -func (instance *BackupVaults_BackupInstance_STATUS) AssignProperties_From_BackupVaults_BackupInstance_STATUS(source *v20230101s.BackupVaults_BackupInstance_STATUS) error { - - // Conditions - instance.Conditions = genruntime.CloneSliceOfCondition(source.Conditions) - - // Id - instance.Id = genruntime.ClonePointerToString(source.Id) - - // Name - instance.Name = genruntime.ClonePointerToString(source.Name) - - // Properties - if source.Properties != nil { - var property BackupInstance_STATUS - err := property.AssignProperties_From_BackupInstance_STATUS(source.Properties) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_BackupInstance_STATUS() to populate field Properties") - } - instance.Properties = &property - } else { - instance.Properties = nil - } - - // SystemData - if source.SystemData != nil { - var systemDatum SystemData_STATUS - err := systemDatum.AssignProperties_From_SystemData_STATUS(source.SystemData) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_SystemData_STATUS() to populate field SystemData") - } - instance.SystemData = &systemDatum - } else { - instance.SystemData = nil - } - - // Tags - instance.Tags = genruntime.CloneMapOfStringToString(source.Tags) - - // Type - instance.Type = genruntime.ClonePointerToString(source.Type) - - // No error - return nil -} - -// AssignProperties_To_BackupVaults_BackupInstance_STATUS populates the provided destination BackupVaults_BackupInstance_STATUS from our BackupVaults_BackupInstance_STATUS -func (instance *BackupVaults_BackupInstance_STATUS) AssignProperties_To_BackupVaults_BackupInstance_STATUS(destination *v20230101s.BackupVaults_BackupInstance_STATUS) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // Conditions - destination.Conditions = genruntime.CloneSliceOfCondition(instance.Conditions) - - // Id - destination.Id = genruntime.ClonePointerToString(instance.Id) - - // Name - destination.Name = genruntime.ClonePointerToString(instance.Name) - - // Properties - if instance.Properties != nil { - var property v20230101s.BackupInstance_STATUS - err := instance.Properties.AssignProperties_To_BackupInstance_STATUS(&property) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_BackupInstance_STATUS() to populate field Properties") - } - destination.Properties = &property - } else { - destination.Properties = nil - } - - // SystemData - if instance.SystemData != nil { - var systemDatum v20230101s.SystemData_STATUS - err := instance.SystemData.AssignProperties_To_SystemData_STATUS(&systemDatum) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_SystemData_STATUS() to populate field SystemData") - } - destination.SystemData = &systemDatum - } else { - destination.SystemData = nil - } - - // Tags - destination.Tags = genruntime.CloneMapOfStringToString(instance.Tags) - - // Type - destination.Type = genruntime.ClonePointerToString(instance.Type) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -// Backup Instance -type BackupInstance struct { - // +kubebuilder:validation:Required - // DataSourceInfo: Gets or sets the data source information. - DataSourceInfo *Datasource `json:"dataSourceInfo,omitempty"` - - // DataSourceSetInfo: Gets or sets the data source set information. - DataSourceSetInfo *DatasourceSet `json:"dataSourceSetInfo,omitempty"` - - // DatasourceAuthCredentials: Credentials to use to authenticate with data source provider. - DatasourceAuthCredentials *AuthCredentials `json:"datasourceAuthCredentials,omitempty"` - - // FriendlyName: Gets or sets the Backup Instance friendly name. - FriendlyName *string `json:"friendlyName,omitempty"` - - // +kubebuilder:validation:Required - ObjectType *string `json:"objectType,omitempty"` - - // +kubebuilder:validation:Required - // PolicyInfo: Gets or sets the policy information. - PolicyInfo *PolicyInfo `json:"policyInfo,omitempty"` - - // ValidationType: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API - // will run again. - ValidationType *BackupInstance_ValidationType `json:"validationType,omitempty"` -} - -var _ genruntime.ARMTransformer = &BackupInstance{} - -// ConvertToARM converts from a Kubernetes CRD object to an ARM object -func (instance *BackupInstance) ConvertToARM(resolved genruntime.ConvertToARMResolvedDetails) (interface{}, error) { - if instance == nil { - return nil, nil - } - result := &BackupInstance_ARM{} - - // Set property "DataSourceInfo": - if instance.DataSourceInfo != nil { - dataSourceInfo_ARM, err := (*instance.DataSourceInfo).ConvertToARM(resolved) - if err != nil { - return nil, err - } - dataSourceInfo := *dataSourceInfo_ARM.(*Datasource_ARM) - result.DataSourceInfo = &dataSourceInfo - } - - // Set property "DataSourceSetInfo": - if instance.DataSourceSetInfo != nil { - dataSourceSetInfo_ARM, err := (*instance.DataSourceSetInfo).ConvertToARM(resolved) - if err != nil { - return nil, err - } - dataSourceSetInfo := *dataSourceSetInfo_ARM.(*DatasourceSet_ARM) - result.DataSourceSetInfo = &dataSourceSetInfo - } - - // Set property "DatasourceAuthCredentials": - if instance.DatasourceAuthCredentials != nil { - datasourceAuthCredentials_ARM, err := (*instance.DatasourceAuthCredentials).ConvertToARM(resolved) - if err != nil { - return nil, err - } - datasourceAuthCredentials := *datasourceAuthCredentials_ARM.(*AuthCredentials_ARM) - result.DatasourceAuthCredentials = &datasourceAuthCredentials - } - - // Set property "FriendlyName": - if instance.FriendlyName != nil { - friendlyName := *instance.FriendlyName - result.FriendlyName = &friendlyName - } - - // Set property "ObjectType": - if instance.ObjectType != nil { - objectType := *instance.ObjectType - result.ObjectType = &objectType - } - - // Set property "PolicyInfo": - if instance.PolicyInfo != nil { - policyInfo_ARM, err := (*instance.PolicyInfo).ConvertToARM(resolved) - if err != nil { - return nil, err - } - policyInfo := *policyInfo_ARM.(*PolicyInfo_ARM) - result.PolicyInfo = &policyInfo - } - - // Set property "ValidationType": - if instance.ValidationType != nil { - validationType := *instance.ValidationType - result.ValidationType = &validationType - } - return result, nil -} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (instance *BackupInstance) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &BackupInstance_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (instance *BackupInstance) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(BackupInstance_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected BackupInstance_ARM, got %T", armInput) - } - - // Set property "DataSourceInfo": - if typedInput.DataSourceInfo != nil { - var dataSourceInfo1 Datasource - err := dataSourceInfo1.PopulateFromARM(owner, *typedInput.DataSourceInfo) - if err != nil { - return err - } - dataSourceInfo := dataSourceInfo1 - instance.DataSourceInfo = &dataSourceInfo - } - - // Set property "DataSourceSetInfo": - if typedInput.DataSourceSetInfo != nil { - var dataSourceSetInfo1 DatasourceSet - err := dataSourceSetInfo1.PopulateFromARM(owner, *typedInput.DataSourceSetInfo) - if err != nil { - return err - } - dataSourceSetInfo := dataSourceSetInfo1 - instance.DataSourceSetInfo = &dataSourceSetInfo - } - - // Set property "DatasourceAuthCredentials": - if typedInput.DatasourceAuthCredentials != nil { - var datasourceAuthCredentials1 AuthCredentials - err := datasourceAuthCredentials1.PopulateFromARM(owner, *typedInput.DatasourceAuthCredentials) - if err != nil { - return err - } - datasourceAuthCredentials := datasourceAuthCredentials1 - instance.DatasourceAuthCredentials = &datasourceAuthCredentials - } - - // Set property "FriendlyName": - if typedInput.FriendlyName != nil { - friendlyName := *typedInput.FriendlyName - instance.FriendlyName = &friendlyName - } - - // Set property "ObjectType": - if typedInput.ObjectType != nil { - objectType := *typedInput.ObjectType - instance.ObjectType = &objectType - } - - // Set property "PolicyInfo": - if typedInput.PolicyInfo != nil { - var policyInfo1 PolicyInfo - err := policyInfo1.PopulateFromARM(owner, *typedInput.PolicyInfo) - if err != nil { - return err - } - policyInfo := policyInfo1 - instance.PolicyInfo = &policyInfo - } - - // Set property "ValidationType": - if typedInput.ValidationType != nil { - validationType := *typedInput.ValidationType - instance.ValidationType = &validationType - } - - // No error - return nil -} - -// AssignProperties_From_BackupInstance populates our BackupInstance from the provided source BackupInstance -func (instance *BackupInstance) AssignProperties_From_BackupInstance(source *v20230101s.BackupInstance) error { - - // DataSourceInfo - if source.DataSourceInfo != nil { - var dataSourceInfo Datasource - err := dataSourceInfo.AssignProperties_From_Datasource(source.DataSourceInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_Datasource() to populate field DataSourceInfo") - } - instance.DataSourceInfo = &dataSourceInfo - } else { - instance.DataSourceInfo = nil - } - - // DataSourceSetInfo - if source.DataSourceSetInfo != nil { - var dataSourceSetInfo DatasourceSet - err := dataSourceSetInfo.AssignProperties_From_DatasourceSet(source.DataSourceSetInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_DatasourceSet() to populate field DataSourceSetInfo") - } - instance.DataSourceSetInfo = &dataSourceSetInfo - } else { - instance.DataSourceSetInfo = nil - } - - // DatasourceAuthCredentials - if source.DatasourceAuthCredentials != nil { - var datasourceAuthCredential AuthCredentials - err := datasourceAuthCredential.AssignProperties_From_AuthCredentials(source.DatasourceAuthCredentials) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_AuthCredentials() to populate field DatasourceAuthCredentials") - } - instance.DatasourceAuthCredentials = &datasourceAuthCredential - } else { - instance.DatasourceAuthCredentials = nil - } - - // FriendlyName - instance.FriendlyName = genruntime.ClonePointerToString(source.FriendlyName) - - // ObjectType - instance.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // PolicyInfo - if source.PolicyInfo != nil { - var policyInfo PolicyInfo - err := policyInfo.AssignProperties_From_PolicyInfo(source.PolicyInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_PolicyInfo() to populate field PolicyInfo") - } - instance.PolicyInfo = &policyInfo - } else { - instance.PolicyInfo = nil - } - - // ValidationType - if source.ValidationType != nil { - validationType := BackupInstance_ValidationType(*source.ValidationType) - instance.ValidationType = &validationType - } else { - instance.ValidationType = nil - } - - // No error - return nil -} - -// AssignProperties_To_BackupInstance populates the provided destination BackupInstance from our BackupInstance -func (instance *BackupInstance) AssignProperties_To_BackupInstance(destination *v20230101s.BackupInstance) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // DataSourceInfo - if instance.DataSourceInfo != nil { - var dataSourceInfo v20230101s.Datasource - err := instance.DataSourceInfo.AssignProperties_To_Datasource(&dataSourceInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_Datasource() to populate field DataSourceInfo") - } - destination.DataSourceInfo = &dataSourceInfo - } else { - destination.DataSourceInfo = nil - } - - // DataSourceSetInfo - if instance.DataSourceSetInfo != nil { - var dataSourceSetInfo v20230101s.DatasourceSet - err := instance.DataSourceSetInfo.AssignProperties_To_DatasourceSet(&dataSourceSetInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_DatasourceSet() to populate field DataSourceSetInfo") - } - destination.DataSourceSetInfo = &dataSourceSetInfo - } else { - destination.DataSourceSetInfo = nil - } - - // DatasourceAuthCredentials - if instance.DatasourceAuthCredentials != nil { - var datasourceAuthCredential v20230101s.AuthCredentials - err := instance.DatasourceAuthCredentials.AssignProperties_To_AuthCredentials(&datasourceAuthCredential) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_AuthCredentials() to populate field DatasourceAuthCredentials") - } - destination.DatasourceAuthCredentials = &datasourceAuthCredential - } else { - destination.DatasourceAuthCredentials = nil - } - - // FriendlyName - destination.FriendlyName = genruntime.ClonePointerToString(instance.FriendlyName) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(instance.ObjectType) - - // PolicyInfo - if instance.PolicyInfo != nil { - var policyInfo v20230101s.PolicyInfo - err := instance.PolicyInfo.AssignProperties_To_PolicyInfo(&policyInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_PolicyInfo() to populate field PolicyInfo") - } - destination.PolicyInfo = &policyInfo - } else { - destination.PolicyInfo = nil - } - - // ValidationType - if instance.ValidationType != nil { - validationType := string(*instance.ValidationType) - destination.ValidationType = &validationType - } else { - destination.ValidationType = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -// Backup Instance -type BackupInstance_STATUS struct { - // CurrentProtectionState: Specifies the current protection state of the resource - CurrentProtectionState *BackupInstance_CurrentProtectionState_STATUS `json:"currentProtectionState,omitempty"` - - // DataSourceInfo: Gets or sets the data source information. - DataSourceInfo *Datasource_STATUS `json:"dataSourceInfo,omitempty"` - - // DataSourceSetInfo: Gets or sets the data source set information. - DataSourceSetInfo *DatasourceSet_STATUS `json:"dataSourceSetInfo,omitempty"` - - // DatasourceAuthCredentials: Credentials to use to authenticate with data source provider. - DatasourceAuthCredentials *AuthCredentials_STATUS `json:"datasourceAuthCredentials,omitempty"` - - // FriendlyName: Gets or sets the Backup Instance friendly name. - FriendlyName *string `json:"friendlyName,omitempty"` - ObjectType *string `json:"objectType,omitempty"` - - // PolicyInfo: Gets or sets the policy information. - PolicyInfo *PolicyInfo_STATUS `json:"policyInfo,omitempty"` - - // ProtectionErrorDetails: Specifies the protection error of the resource - ProtectionErrorDetails *UserFacingError_STATUS `json:"protectionErrorDetails,omitempty"` - - // ProtectionStatus: Specifies the protection status of the resource - ProtectionStatus *ProtectionStatusDetails_STATUS `json:"protectionStatus,omitempty"` - - // ProvisioningState: Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed - ProvisioningState *string `json:"provisioningState,omitempty"` - - // ValidationType: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API - // will run again. - ValidationType *BackupInstance_ValidationType_STATUS `json:"validationType,omitempty"` -} - -var _ genruntime.FromARMConverter = &BackupInstance_STATUS{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (instance *BackupInstance_STATUS) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &BackupInstance_STATUS_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (instance *BackupInstance_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(BackupInstance_STATUS_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected BackupInstance_STATUS_ARM, got %T", armInput) - } - - // Set property "CurrentProtectionState": - if typedInput.CurrentProtectionState != nil { - currentProtectionState := *typedInput.CurrentProtectionState - instance.CurrentProtectionState = ¤tProtectionState - } - - // Set property "DataSourceInfo": - if typedInput.DataSourceInfo != nil { - var dataSourceInfo1 Datasource_STATUS - err := dataSourceInfo1.PopulateFromARM(owner, *typedInput.DataSourceInfo) - if err != nil { - return err - } - dataSourceInfo := dataSourceInfo1 - instance.DataSourceInfo = &dataSourceInfo - } - - // Set property "DataSourceSetInfo": - if typedInput.DataSourceSetInfo != nil { - var dataSourceSetInfo1 DatasourceSet_STATUS - err := dataSourceSetInfo1.PopulateFromARM(owner, *typedInput.DataSourceSetInfo) - if err != nil { - return err - } - dataSourceSetInfo := dataSourceSetInfo1 - instance.DataSourceSetInfo = &dataSourceSetInfo - } - - // Set property "DatasourceAuthCredentials": - if typedInput.DatasourceAuthCredentials != nil { - var datasourceAuthCredentials1 AuthCredentials_STATUS - err := datasourceAuthCredentials1.PopulateFromARM(owner, *typedInput.DatasourceAuthCredentials) - if err != nil { - return err - } - datasourceAuthCredentials := datasourceAuthCredentials1 - instance.DatasourceAuthCredentials = &datasourceAuthCredentials - } - - // Set property "FriendlyName": - if typedInput.FriendlyName != nil { - friendlyName := *typedInput.FriendlyName - instance.FriendlyName = &friendlyName - } - - // Set property "ObjectType": - if typedInput.ObjectType != nil { - objectType := *typedInput.ObjectType - instance.ObjectType = &objectType - } - - // Set property "PolicyInfo": - if typedInput.PolicyInfo != nil { - var policyInfo1 PolicyInfo_STATUS - err := policyInfo1.PopulateFromARM(owner, *typedInput.PolicyInfo) - if err != nil { - return err - } - policyInfo := policyInfo1 - instance.PolicyInfo = &policyInfo - } - - // Set property "ProtectionErrorDetails": - if typedInput.ProtectionErrorDetails != nil { - var protectionErrorDetails1 UserFacingError_STATUS - err := protectionErrorDetails1.PopulateFromARM(owner, *typedInput.ProtectionErrorDetails) - if err != nil { - return err - } - protectionErrorDetails := protectionErrorDetails1 - instance.ProtectionErrorDetails = &protectionErrorDetails - } - - // Set property "ProtectionStatus": - if typedInput.ProtectionStatus != nil { - var protectionStatus1 ProtectionStatusDetails_STATUS - err := protectionStatus1.PopulateFromARM(owner, *typedInput.ProtectionStatus) - if err != nil { - return err - } - protectionStatus := protectionStatus1 - instance.ProtectionStatus = &protectionStatus - } - - // Set property "ProvisioningState": - if typedInput.ProvisioningState != nil { - provisioningState := *typedInput.ProvisioningState - instance.ProvisioningState = &provisioningState - } - - // Set property "ValidationType": - if typedInput.ValidationType != nil { - validationType := *typedInput.ValidationType - instance.ValidationType = &validationType - } - - // No error - return nil -} - -// AssignProperties_From_BackupInstance_STATUS populates our BackupInstance_STATUS from the provided source BackupInstance_STATUS -func (instance *BackupInstance_STATUS) AssignProperties_From_BackupInstance_STATUS(source *v20230101s.BackupInstance_STATUS) error { - - // CurrentProtectionState - if source.CurrentProtectionState != nil { - currentProtectionState := BackupInstance_CurrentProtectionState_STATUS(*source.CurrentProtectionState) - instance.CurrentProtectionState = ¤tProtectionState - } else { - instance.CurrentProtectionState = nil - } - - // DataSourceInfo - if source.DataSourceInfo != nil { - var dataSourceInfo Datasource_STATUS - err := dataSourceInfo.AssignProperties_From_Datasource_STATUS(source.DataSourceInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_Datasource_STATUS() to populate field DataSourceInfo") - } - instance.DataSourceInfo = &dataSourceInfo - } else { - instance.DataSourceInfo = nil - } - - // DataSourceSetInfo - if source.DataSourceSetInfo != nil { - var dataSourceSetInfo DatasourceSet_STATUS - err := dataSourceSetInfo.AssignProperties_From_DatasourceSet_STATUS(source.DataSourceSetInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_DatasourceSet_STATUS() to populate field DataSourceSetInfo") - } - instance.DataSourceSetInfo = &dataSourceSetInfo - } else { - instance.DataSourceSetInfo = nil - } - - // DatasourceAuthCredentials - if source.DatasourceAuthCredentials != nil { - var datasourceAuthCredential AuthCredentials_STATUS - err := datasourceAuthCredential.AssignProperties_From_AuthCredentials_STATUS(source.DatasourceAuthCredentials) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_AuthCredentials_STATUS() to populate field DatasourceAuthCredentials") - } - instance.DatasourceAuthCredentials = &datasourceAuthCredential - } else { - instance.DatasourceAuthCredentials = nil - } - - // FriendlyName - instance.FriendlyName = genruntime.ClonePointerToString(source.FriendlyName) - - // ObjectType - instance.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // PolicyInfo - if source.PolicyInfo != nil { - var policyInfo PolicyInfo_STATUS - err := policyInfo.AssignProperties_From_PolicyInfo_STATUS(source.PolicyInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_PolicyInfo_STATUS() to populate field PolicyInfo") - } - instance.PolicyInfo = &policyInfo - } else { - instance.PolicyInfo = nil - } - - // ProtectionErrorDetails - if source.ProtectionErrorDetails != nil { - var protectionErrorDetail UserFacingError_STATUS - err := protectionErrorDetail.AssignProperties_From_UserFacingError_STATUS(source.ProtectionErrorDetails) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_UserFacingError_STATUS() to populate field ProtectionErrorDetails") - } - instance.ProtectionErrorDetails = &protectionErrorDetail - } else { - instance.ProtectionErrorDetails = nil - } - - // ProtectionStatus - if source.ProtectionStatus != nil { - var protectionStatus ProtectionStatusDetails_STATUS - err := protectionStatus.AssignProperties_From_ProtectionStatusDetails_STATUS(source.ProtectionStatus) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_ProtectionStatusDetails_STATUS() to populate field ProtectionStatus") - } - instance.ProtectionStatus = &protectionStatus - } else { - instance.ProtectionStatus = nil - } - - // ProvisioningState - instance.ProvisioningState = genruntime.ClonePointerToString(source.ProvisioningState) - - // ValidationType - if source.ValidationType != nil { - validationType := BackupInstance_ValidationType_STATUS(*source.ValidationType) - instance.ValidationType = &validationType - } else { - instance.ValidationType = nil - } - - // No error - return nil -} - -// AssignProperties_To_BackupInstance_STATUS populates the provided destination BackupInstance_STATUS from our BackupInstance_STATUS -func (instance *BackupInstance_STATUS) AssignProperties_To_BackupInstance_STATUS(destination *v20230101s.BackupInstance_STATUS) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // CurrentProtectionState - if instance.CurrentProtectionState != nil { - currentProtectionState := string(*instance.CurrentProtectionState) - destination.CurrentProtectionState = ¤tProtectionState - } else { - destination.CurrentProtectionState = nil - } - - // DataSourceInfo - if instance.DataSourceInfo != nil { - var dataSourceInfo v20230101s.Datasource_STATUS - err := instance.DataSourceInfo.AssignProperties_To_Datasource_STATUS(&dataSourceInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_Datasource_STATUS() to populate field DataSourceInfo") - } - destination.DataSourceInfo = &dataSourceInfo - } else { - destination.DataSourceInfo = nil - } - - // DataSourceSetInfo - if instance.DataSourceSetInfo != nil { - var dataSourceSetInfo v20230101s.DatasourceSet_STATUS - err := instance.DataSourceSetInfo.AssignProperties_To_DatasourceSet_STATUS(&dataSourceSetInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_DatasourceSet_STATUS() to populate field DataSourceSetInfo") - } - destination.DataSourceSetInfo = &dataSourceSetInfo - } else { - destination.DataSourceSetInfo = nil - } - - // DatasourceAuthCredentials - if instance.DatasourceAuthCredentials != nil { - var datasourceAuthCredential v20230101s.AuthCredentials_STATUS - err := instance.DatasourceAuthCredentials.AssignProperties_To_AuthCredentials_STATUS(&datasourceAuthCredential) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_AuthCredentials_STATUS() to populate field DatasourceAuthCredentials") - } - destination.DatasourceAuthCredentials = &datasourceAuthCredential - } else { - destination.DatasourceAuthCredentials = nil - } - - // FriendlyName - destination.FriendlyName = genruntime.ClonePointerToString(instance.FriendlyName) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(instance.ObjectType) - - // PolicyInfo - if instance.PolicyInfo != nil { - var policyInfo v20230101s.PolicyInfo_STATUS - err := instance.PolicyInfo.AssignProperties_To_PolicyInfo_STATUS(&policyInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_PolicyInfo_STATUS() to populate field PolicyInfo") - } - destination.PolicyInfo = &policyInfo - } else { - destination.PolicyInfo = nil - } - - // ProtectionErrorDetails - if instance.ProtectionErrorDetails != nil { - var protectionErrorDetail v20230101s.UserFacingError_STATUS - err := instance.ProtectionErrorDetails.AssignProperties_To_UserFacingError_STATUS(&protectionErrorDetail) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_UserFacingError_STATUS() to populate field ProtectionErrorDetails") - } - destination.ProtectionErrorDetails = &protectionErrorDetail - } else { - destination.ProtectionErrorDetails = nil - } - - // ProtectionStatus - if instance.ProtectionStatus != nil { - var protectionStatus v20230101s.ProtectionStatusDetails_STATUS - err := instance.ProtectionStatus.AssignProperties_To_ProtectionStatusDetails_STATUS(&protectionStatus) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_ProtectionStatusDetails_STATUS() to populate field ProtectionStatus") - } - destination.ProtectionStatus = &protectionStatus - } else { - destination.ProtectionStatus = nil - } - - // ProvisioningState - destination.ProvisioningState = genruntime.ClonePointerToString(instance.ProvisioningState) - - // ValidationType - if instance.ValidationType != nil { - validationType := string(*instance.ValidationType) - destination.ValidationType = &validationType - } else { - destination.ValidationType = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -type AuthCredentials struct { - // SecretStoreBasedAuthCredentials: Mutually exclusive with all other properties - SecretStoreBasedAuthCredentials *SecretStoreBasedAuthCredentials `json:"secretStoreBasedAuthCredentials,omitempty"` -} - -var _ genruntime.ARMTransformer = &AuthCredentials{} - -// ConvertToARM converts from a Kubernetes CRD object to an ARM object -func (credentials *AuthCredentials) ConvertToARM(resolved genruntime.ConvertToARMResolvedDetails) (interface{}, error) { - if credentials == nil { - return nil, nil - } - result := &AuthCredentials_ARM{} - - // Set property "SecretStoreBasedAuthCredentials": - if credentials.SecretStoreBasedAuthCredentials != nil { - secretStoreBasedAuthCredentials_ARM, err := (*credentials.SecretStoreBasedAuthCredentials).ConvertToARM(resolved) - if err != nil { - return nil, err - } - secretStoreBasedAuthCredentials := *secretStoreBasedAuthCredentials_ARM.(*SecretStoreBasedAuthCredentials_ARM) - result.SecretStoreBasedAuthCredentials = &secretStoreBasedAuthCredentials - } - return result, nil -} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (credentials *AuthCredentials) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &AuthCredentials_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (credentials *AuthCredentials) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(AuthCredentials_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected AuthCredentials_ARM, got %T", armInput) - } - - // Set property "SecretStoreBasedAuthCredentials": - if typedInput.SecretStoreBasedAuthCredentials != nil { - var secretStoreBasedAuthCredentials1 SecretStoreBasedAuthCredentials - err := secretStoreBasedAuthCredentials1.PopulateFromARM(owner, *typedInput.SecretStoreBasedAuthCredentials) - if err != nil { - return err - } - secretStoreBasedAuthCredentials := secretStoreBasedAuthCredentials1 - credentials.SecretStoreBasedAuthCredentials = &secretStoreBasedAuthCredentials - } - - // No error - return nil -} - -// AssignProperties_From_AuthCredentials populates our AuthCredentials from the provided source AuthCredentials -func (credentials *AuthCredentials) AssignProperties_From_AuthCredentials(source *v20230101s.AuthCredentials) error { - - // SecretStoreBasedAuthCredentials - if source.SecretStoreBasedAuthCredentials != nil { - var secretStoreBasedAuthCredential SecretStoreBasedAuthCredentials - err := secretStoreBasedAuthCredential.AssignProperties_From_SecretStoreBasedAuthCredentials(source.SecretStoreBasedAuthCredentials) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_SecretStoreBasedAuthCredentials() to populate field SecretStoreBasedAuthCredentials") - } - credentials.SecretStoreBasedAuthCredentials = &secretStoreBasedAuthCredential - } else { - credentials.SecretStoreBasedAuthCredentials = nil - } - - // No error - return nil -} - -// AssignProperties_To_AuthCredentials populates the provided destination AuthCredentials from our AuthCredentials -func (credentials *AuthCredentials) AssignProperties_To_AuthCredentials(destination *v20230101s.AuthCredentials) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // SecretStoreBasedAuthCredentials - if credentials.SecretStoreBasedAuthCredentials != nil { - var secretStoreBasedAuthCredential v20230101s.SecretStoreBasedAuthCredentials - err := credentials.SecretStoreBasedAuthCredentials.AssignProperties_To_SecretStoreBasedAuthCredentials(&secretStoreBasedAuthCredential) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_SecretStoreBasedAuthCredentials() to populate field SecretStoreBasedAuthCredentials") - } - destination.SecretStoreBasedAuthCredentials = &secretStoreBasedAuthCredential - } else { - destination.SecretStoreBasedAuthCredentials = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -type AuthCredentials_STATUS struct { - // SecretStoreBasedAuthCredentials: Mutually exclusive with all other properties - SecretStoreBasedAuthCredentials *SecretStoreBasedAuthCredentials_STATUS `json:"secretStoreBasedAuthCredentials,omitempty"` -} - -var _ genruntime.FromARMConverter = &AuthCredentials_STATUS{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (credentials *AuthCredentials_STATUS) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &AuthCredentials_STATUS_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (credentials *AuthCredentials_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(AuthCredentials_STATUS_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected AuthCredentials_STATUS_ARM, got %T", armInput) - } - - // Set property "SecretStoreBasedAuthCredentials": - if typedInput.SecretStoreBasedAuthCredentials != nil { - var secretStoreBasedAuthCredentials1 SecretStoreBasedAuthCredentials_STATUS - err := secretStoreBasedAuthCredentials1.PopulateFromARM(owner, *typedInput.SecretStoreBasedAuthCredentials) - if err != nil { - return err - } - secretStoreBasedAuthCredentials := secretStoreBasedAuthCredentials1 - credentials.SecretStoreBasedAuthCredentials = &secretStoreBasedAuthCredentials - } - - // No error - return nil -} - -// AssignProperties_From_AuthCredentials_STATUS populates our AuthCredentials_STATUS from the provided source AuthCredentials_STATUS -func (credentials *AuthCredentials_STATUS) AssignProperties_From_AuthCredentials_STATUS(source *v20230101s.AuthCredentials_STATUS) error { - - // SecretStoreBasedAuthCredentials - if source.SecretStoreBasedAuthCredentials != nil { - var secretStoreBasedAuthCredential SecretStoreBasedAuthCredentials_STATUS - err := secretStoreBasedAuthCredential.AssignProperties_From_SecretStoreBasedAuthCredentials_STATUS(source.SecretStoreBasedAuthCredentials) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_SecretStoreBasedAuthCredentials_STATUS() to populate field SecretStoreBasedAuthCredentials") - } - credentials.SecretStoreBasedAuthCredentials = &secretStoreBasedAuthCredential - } else { - credentials.SecretStoreBasedAuthCredentials = nil - } - - // No error - return nil -} - -// AssignProperties_To_AuthCredentials_STATUS populates the provided destination AuthCredentials_STATUS from our AuthCredentials_STATUS -func (credentials *AuthCredentials_STATUS) AssignProperties_To_AuthCredentials_STATUS(destination *v20230101s.AuthCredentials_STATUS) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // SecretStoreBasedAuthCredentials - if credentials.SecretStoreBasedAuthCredentials != nil { - var secretStoreBasedAuthCredential v20230101s.SecretStoreBasedAuthCredentials_STATUS - err := credentials.SecretStoreBasedAuthCredentials.AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS(&secretStoreBasedAuthCredential) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS() to populate field SecretStoreBasedAuthCredentials") - } - destination.SecretStoreBasedAuthCredentials = &secretStoreBasedAuthCredential - } else { - destination.SecretStoreBasedAuthCredentials = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -// Datasource to be backed up -type Datasource struct { - // DatasourceType: DatasourceType of the resource. - DatasourceType *string `json:"datasourceType,omitempty"` - - // ObjectType: Type of Datasource object, used to initialize the right inherited type - ObjectType *string `json:"objectType,omitempty"` - - // ResourceLocation: Location of datasource. - ResourceLocation *string `json:"resourceLocation,omitempty"` - - // ResourceName: Unique identifier of the resource in the context of parent. - ResourceName *string `json:"resourceName,omitempty"` - - // +kubebuilder:validation:Required - // ResourceReference: Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will - // be the ID created by backup service via Fabric/Vault. - ResourceReference *genruntime.ResourceReference `armReference:"ResourceID" json:"resourceReference,omitempty"` - - // ResourceType: Resource Type of Datasource. - ResourceType *string `json:"resourceType,omitempty"` - - // ResourceUri: Uri of the resource. - ResourceUri *string `json:"resourceUri,omitempty"` -} - -var _ genruntime.ARMTransformer = &Datasource{} - -// ConvertToARM converts from a Kubernetes CRD object to an ARM object -func (datasource *Datasource) ConvertToARM(resolved genruntime.ConvertToARMResolvedDetails) (interface{}, error) { - if datasource == nil { - return nil, nil - } - result := &Datasource_ARM{} - - // Set property "DatasourceType": - if datasource.DatasourceType != nil { - datasourceType := *datasource.DatasourceType - result.DatasourceType = &datasourceType - } - - // Set property "ObjectType": - if datasource.ObjectType != nil { - objectType := *datasource.ObjectType - result.ObjectType = &objectType - } - - // Set property "ResourceID": - if datasource.ResourceReference != nil { - resourceReferenceARMID, err := resolved.ResolvedReferences.Lookup(*datasource.ResourceReference) - if err != nil { - return nil, err - } - resourceReference := resourceReferenceARMID - result.ResourceID = &resourceReference - } - - // Set property "ResourceLocation": - if datasource.ResourceLocation != nil { - resourceLocation := *datasource.ResourceLocation - result.ResourceLocation = &resourceLocation - } - - // Set property "ResourceName": - if datasource.ResourceName != nil { - resourceName := *datasource.ResourceName - result.ResourceName = &resourceName - } - - // Set property "ResourceType": - if datasource.ResourceType != nil { - resourceType := *datasource.ResourceType - result.ResourceType = &resourceType - } - - // Set property "ResourceUri": - if datasource.ResourceUri != nil { - resourceUri := *datasource.ResourceUri - result.ResourceUri = &resourceUri - } - return result, nil -} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (datasource *Datasource) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &Datasource_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (datasource *Datasource) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(Datasource_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected Datasource_ARM, got %T", armInput) - } - - // Set property "DatasourceType": - if typedInput.DatasourceType != nil { - datasourceType := *typedInput.DatasourceType - datasource.DatasourceType = &datasourceType - } - - // Set property "ObjectType": - if typedInput.ObjectType != nil { - objectType := *typedInput.ObjectType - datasource.ObjectType = &objectType - } - - // Set property "ResourceLocation": - if typedInput.ResourceLocation != nil { - resourceLocation := *typedInput.ResourceLocation - datasource.ResourceLocation = &resourceLocation - } - - // Set property "ResourceName": - if typedInput.ResourceName != nil { - resourceName := *typedInput.ResourceName - datasource.ResourceName = &resourceName - } - - // no assignment for property "ResourceReference" - - // Set property "ResourceType": - if typedInput.ResourceType != nil { - resourceType := *typedInput.ResourceType - datasource.ResourceType = &resourceType - } - - // Set property "ResourceUri": - if typedInput.ResourceUri != nil { - resourceUri := *typedInput.ResourceUri - datasource.ResourceUri = &resourceUri - } - - // No error - return nil -} - -// AssignProperties_From_Datasource populates our Datasource from the provided source Datasource -func (datasource *Datasource) AssignProperties_From_Datasource(source *v20230101s.Datasource) error { - - // DatasourceType - datasource.DatasourceType = genruntime.ClonePointerToString(source.DatasourceType) - - // ObjectType - datasource.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // ResourceLocation - datasource.ResourceLocation = genruntime.ClonePointerToString(source.ResourceLocation) - - // ResourceName - datasource.ResourceName = genruntime.ClonePointerToString(source.ResourceName) - - // ResourceReference - if source.ResourceReference != nil { - resourceReference := source.ResourceReference.Copy() - datasource.ResourceReference = &resourceReference - } else { - datasource.ResourceReference = nil - } - - // ResourceType - datasource.ResourceType = genruntime.ClonePointerToString(source.ResourceType) - - // ResourceUri - datasource.ResourceUri = genruntime.ClonePointerToString(source.ResourceUri) - - // No error - return nil -} - -// AssignProperties_To_Datasource populates the provided destination Datasource from our Datasource -func (datasource *Datasource) AssignProperties_To_Datasource(destination *v20230101s.Datasource) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // DatasourceType - destination.DatasourceType = genruntime.ClonePointerToString(datasource.DatasourceType) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(datasource.ObjectType) - - // ResourceLocation - destination.ResourceLocation = genruntime.ClonePointerToString(datasource.ResourceLocation) - - // ResourceName - destination.ResourceName = genruntime.ClonePointerToString(datasource.ResourceName) - - // ResourceReference - if datasource.ResourceReference != nil { - resourceReference := datasource.ResourceReference.Copy() - destination.ResourceReference = &resourceReference - } else { - destination.ResourceReference = nil - } - - // ResourceType - destination.ResourceType = genruntime.ClonePointerToString(datasource.ResourceType) - - // ResourceUri - destination.ResourceUri = genruntime.ClonePointerToString(datasource.ResourceUri) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -// Datasource to be backed up -type Datasource_STATUS struct { - // DatasourceType: DatasourceType of the resource. - DatasourceType *string `json:"datasourceType,omitempty"` - - // ObjectType: Type of Datasource object, used to initialize the right inherited type - ObjectType *string `json:"objectType,omitempty"` - - // ResourceID: Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the - // ID created by backup service via Fabric/Vault. - ResourceID *string `json:"resourceID,omitempty"` - - // ResourceLocation: Location of datasource. - ResourceLocation *string `json:"resourceLocation,omitempty"` - - // ResourceName: Unique identifier of the resource in the context of parent. - ResourceName *string `json:"resourceName,omitempty"` - - // ResourceType: Resource Type of Datasource. - ResourceType *string `json:"resourceType,omitempty"` - - // ResourceUri: Uri of the resource. - ResourceUri *string `json:"resourceUri,omitempty"` -} - -var _ genruntime.FromARMConverter = &Datasource_STATUS{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (datasource *Datasource_STATUS) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &Datasource_STATUS_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (datasource *Datasource_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(Datasource_STATUS_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected Datasource_STATUS_ARM, got %T", armInput) - } - - // Set property "DatasourceType": - if typedInput.DatasourceType != nil { - datasourceType := *typedInput.DatasourceType - datasource.DatasourceType = &datasourceType - } - - // Set property "ObjectType": - if typedInput.ObjectType != nil { - objectType := *typedInput.ObjectType - datasource.ObjectType = &objectType - } - - // Set property "ResourceID": - if typedInput.ResourceID != nil { - resourceID := *typedInput.ResourceID - datasource.ResourceID = &resourceID - } - - // Set property "ResourceLocation": - if typedInput.ResourceLocation != nil { - resourceLocation := *typedInput.ResourceLocation - datasource.ResourceLocation = &resourceLocation - } - - // Set property "ResourceName": - if typedInput.ResourceName != nil { - resourceName := *typedInput.ResourceName - datasource.ResourceName = &resourceName - } - - // Set property "ResourceType": - if typedInput.ResourceType != nil { - resourceType := *typedInput.ResourceType - datasource.ResourceType = &resourceType - } - - // Set property "ResourceUri": - if typedInput.ResourceUri != nil { - resourceUri := *typedInput.ResourceUri - datasource.ResourceUri = &resourceUri - } - - // No error - return nil -} - -// AssignProperties_From_Datasource_STATUS populates our Datasource_STATUS from the provided source Datasource_STATUS -func (datasource *Datasource_STATUS) AssignProperties_From_Datasource_STATUS(source *v20230101s.Datasource_STATUS) error { - - // DatasourceType - datasource.DatasourceType = genruntime.ClonePointerToString(source.DatasourceType) - - // ObjectType - datasource.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // ResourceID - datasource.ResourceID = genruntime.ClonePointerToString(source.ResourceID) - - // ResourceLocation - datasource.ResourceLocation = genruntime.ClonePointerToString(source.ResourceLocation) - - // ResourceName - datasource.ResourceName = genruntime.ClonePointerToString(source.ResourceName) - - // ResourceType - datasource.ResourceType = genruntime.ClonePointerToString(source.ResourceType) - - // ResourceUri - datasource.ResourceUri = genruntime.ClonePointerToString(source.ResourceUri) - - // No error - return nil -} - -// AssignProperties_To_Datasource_STATUS populates the provided destination Datasource_STATUS from our Datasource_STATUS -func (datasource *Datasource_STATUS) AssignProperties_To_Datasource_STATUS(destination *v20230101s.Datasource_STATUS) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // DatasourceType - destination.DatasourceType = genruntime.ClonePointerToString(datasource.DatasourceType) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(datasource.ObjectType) - - // ResourceID - destination.ResourceID = genruntime.ClonePointerToString(datasource.ResourceID) - - // ResourceLocation - destination.ResourceLocation = genruntime.ClonePointerToString(datasource.ResourceLocation) - - // ResourceName - destination.ResourceName = genruntime.ClonePointerToString(datasource.ResourceName) - - // ResourceType - destination.ResourceType = genruntime.ClonePointerToString(datasource.ResourceType) - - // ResourceUri - destination.ResourceUri = genruntime.ClonePointerToString(datasource.ResourceUri) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -// DatasourceSet details of datasource to be backed up -type DatasourceSet struct { - // DatasourceType: DatasourceType of the resource. - DatasourceType *string `json:"datasourceType,omitempty"` - - // ObjectType: Type of Datasource object, used to initialize the right inherited type - ObjectType *string `json:"objectType,omitempty"` - - // ResourceLocation: Location of datasource. - ResourceLocation *string `json:"resourceLocation,omitempty"` - - // ResourceName: Unique identifier of the resource in the context of parent. - ResourceName *string `json:"resourceName,omitempty"` - - // +kubebuilder:validation:Required - // ResourceReference: Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will - // be the ID created by backup service via Fabric/Vault. - ResourceReference *genruntime.ResourceReference `armReference:"ResourceID" json:"resourceReference,omitempty"` - - // ResourceType: Resource Type of Datasource. - ResourceType *string `json:"resourceType,omitempty"` - - // ResourceUri: Uri of the resource. - ResourceUri *string `json:"resourceUri,omitempty"` -} - -var _ genruntime.ARMTransformer = &DatasourceSet{} - -// ConvertToARM converts from a Kubernetes CRD object to an ARM object -func (datasourceSet *DatasourceSet) ConvertToARM(resolved genruntime.ConvertToARMResolvedDetails) (interface{}, error) { - if datasourceSet == nil { - return nil, nil - } - result := &DatasourceSet_ARM{} - - // Set property "DatasourceType": - if datasourceSet.DatasourceType != nil { - datasourceType := *datasourceSet.DatasourceType - result.DatasourceType = &datasourceType - } - - // Set property "ObjectType": - if datasourceSet.ObjectType != nil { - objectType := *datasourceSet.ObjectType - result.ObjectType = &objectType - } - - // Set property "ResourceID": - if datasourceSet.ResourceReference != nil { - resourceReferenceARMID, err := resolved.ResolvedReferences.Lookup(*datasourceSet.ResourceReference) - if err != nil { - return nil, err - } - resourceReference := resourceReferenceARMID - result.ResourceID = &resourceReference - } - - // Set property "ResourceLocation": - if datasourceSet.ResourceLocation != nil { - resourceLocation := *datasourceSet.ResourceLocation - result.ResourceLocation = &resourceLocation - } - - // Set property "ResourceName": - if datasourceSet.ResourceName != nil { - resourceName := *datasourceSet.ResourceName - result.ResourceName = &resourceName - } - - // Set property "ResourceType": - if datasourceSet.ResourceType != nil { - resourceType := *datasourceSet.ResourceType - result.ResourceType = &resourceType - } - - // Set property "ResourceUri": - if datasourceSet.ResourceUri != nil { - resourceUri := *datasourceSet.ResourceUri - result.ResourceUri = &resourceUri - } - return result, nil -} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (datasourceSet *DatasourceSet) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &DatasourceSet_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (datasourceSet *DatasourceSet) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(DatasourceSet_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected DatasourceSet_ARM, got %T", armInput) - } - - // Set property "DatasourceType": - if typedInput.DatasourceType != nil { - datasourceType := *typedInput.DatasourceType - datasourceSet.DatasourceType = &datasourceType - } - - // Set property "ObjectType": - if typedInput.ObjectType != nil { - objectType := *typedInput.ObjectType - datasourceSet.ObjectType = &objectType - } - - // Set property "ResourceLocation": - if typedInput.ResourceLocation != nil { - resourceLocation := *typedInput.ResourceLocation - datasourceSet.ResourceLocation = &resourceLocation - } - - // Set property "ResourceName": - if typedInput.ResourceName != nil { - resourceName := *typedInput.ResourceName - datasourceSet.ResourceName = &resourceName - } - - // no assignment for property "ResourceReference" - - // Set property "ResourceType": - if typedInput.ResourceType != nil { - resourceType := *typedInput.ResourceType - datasourceSet.ResourceType = &resourceType - } - - // Set property "ResourceUri": - if typedInput.ResourceUri != nil { - resourceUri := *typedInput.ResourceUri - datasourceSet.ResourceUri = &resourceUri - } - - // No error - return nil -} - -// AssignProperties_From_DatasourceSet populates our DatasourceSet from the provided source DatasourceSet -func (datasourceSet *DatasourceSet) AssignProperties_From_DatasourceSet(source *v20230101s.DatasourceSet) error { - - // DatasourceType - datasourceSet.DatasourceType = genruntime.ClonePointerToString(source.DatasourceType) - - // ObjectType - datasourceSet.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // ResourceLocation - datasourceSet.ResourceLocation = genruntime.ClonePointerToString(source.ResourceLocation) - - // ResourceName - datasourceSet.ResourceName = genruntime.ClonePointerToString(source.ResourceName) - - // ResourceReference - if source.ResourceReference != nil { - resourceReference := source.ResourceReference.Copy() - datasourceSet.ResourceReference = &resourceReference - } else { - datasourceSet.ResourceReference = nil - } - - // ResourceType - datasourceSet.ResourceType = genruntime.ClonePointerToString(source.ResourceType) - - // ResourceUri - datasourceSet.ResourceUri = genruntime.ClonePointerToString(source.ResourceUri) - - // No error - return nil -} - -// AssignProperties_To_DatasourceSet populates the provided destination DatasourceSet from our DatasourceSet -func (datasourceSet *DatasourceSet) AssignProperties_To_DatasourceSet(destination *v20230101s.DatasourceSet) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // DatasourceType - destination.DatasourceType = genruntime.ClonePointerToString(datasourceSet.DatasourceType) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(datasourceSet.ObjectType) - - // ResourceLocation - destination.ResourceLocation = genruntime.ClonePointerToString(datasourceSet.ResourceLocation) - - // ResourceName - destination.ResourceName = genruntime.ClonePointerToString(datasourceSet.ResourceName) - - // ResourceReference - if datasourceSet.ResourceReference != nil { - resourceReference := datasourceSet.ResourceReference.Copy() - destination.ResourceReference = &resourceReference - } else { - destination.ResourceReference = nil - } - - // ResourceType - destination.ResourceType = genruntime.ClonePointerToString(datasourceSet.ResourceType) - - // ResourceUri - destination.ResourceUri = genruntime.ClonePointerToString(datasourceSet.ResourceUri) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -// DatasourceSet details of datasource to be backed up -type DatasourceSet_STATUS struct { - // DatasourceType: DatasourceType of the resource. - DatasourceType *string `json:"datasourceType,omitempty"` - - // ObjectType: Type of Datasource object, used to initialize the right inherited type - ObjectType *string `json:"objectType,omitempty"` - - // ResourceID: Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the - // ID created by backup service via Fabric/Vault. - ResourceID *string `json:"resourceID,omitempty"` - - // ResourceLocation: Location of datasource. - ResourceLocation *string `json:"resourceLocation,omitempty"` - - // ResourceName: Unique identifier of the resource in the context of parent. - ResourceName *string `json:"resourceName,omitempty"` - - // ResourceType: Resource Type of Datasource. - ResourceType *string `json:"resourceType,omitempty"` - - // ResourceUri: Uri of the resource. - ResourceUri *string `json:"resourceUri,omitempty"` -} - -var _ genruntime.FromARMConverter = &DatasourceSet_STATUS{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (datasourceSet *DatasourceSet_STATUS) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &DatasourceSet_STATUS_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (datasourceSet *DatasourceSet_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(DatasourceSet_STATUS_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected DatasourceSet_STATUS_ARM, got %T", armInput) - } - - // Set property "DatasourceType": - if typedInput.DatasourceType != nil { - datasourceType := *typedInput.DatasourceType - datasourceSet.DatasourceType = &datasourceType - } - - // Set property "ObjectType": - if typedInput.ObjectType != nil { - objectType := *typedInput.ObjectType - datasourceSet.ObjectType = &objectType - } - - // Set property "ResourceID": - if typedInput.ResourceID != nil { - resourceID := *typedInput.ResourceID - datasourceSet.ResourceID = &resourceID - } - - // Set property "ResourceLocation": - if typedInput.ResourceLocation != nil { - resourceLocation := *typedInput.ResourceLocation - datasourceSet.ResourceLocation = &resourceLocation - } - - // Set property "ResourceName": - if typedInput.ResourceName != nil { - resourceName := *typedInput.ResourceName - datasourceSet.ResourceName = &resourceName - } - - // Set property "ResourceType": - if typedInput.ResourceType != nil { - resourceType := *typedInput.ResourceType - datasourceSet.ResourceType = &resourceType - } - - // Set property "ResourceUri": - if typedInput.ResourceUri != nil { - resourceUri := *typedInput.ResourceUri - datasourceSet.ResourceUri = &resourceUri - } - - // No error - return nil -} - -// AssignProperties_From_DatasourceSet_STATUS populates our DatasourceSet_STATUS from the provided source DatasourceSet_STATUS -func (datasourceSet *DatasourceSet_STATUS) AssignProperties_From_DatasourceSet_STATUS(source *v20230101s.DatasourceSet_STATUS) error { - - // DatasourceType - datasourceSet.DatasourceType = genruntime.ClonePointerToString(source.DatasourceType) - - // ObjectType - datasourceSet.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // ResourceID - datasourceSet.ResourceID = genruntime.ClonePointerToString(source.ResourceID) - - // ResourceLocation - datasourceSet.ResourceLocation = genruntime.ClonePointerToString(source.ResourceLocation) - - // ResourceName - datasourceSet.ResourceName = genruntime.ClonePointerToString(source.ResourceName) - - // ResourceType - datasourceSet.ResourceType = genruntime.ClonePointerToString(source.ResourceType) - - // ResourceUri - datasourceSet.ResourceUri = genruntime.ClonePointerToString(source.ResourceUri) - - // No error - return nil -} - -// AssignProperties_To_DatasourceSet_STATUS populates the provided destination DatasourceSet_STATUS from our DatasourceSet_STATUS -func (datasourceSet *DatasourceSet_STATUS) AssignProperties_To_DatasourceSet_STATUS(destination *v20230101s.DatasourceSet_STATUS) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // DatasourceType - destination.DatasourceType = genruntime.ClonePointerToString(datasourceSet.DatasourceType) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(datasourceSet.ObjectType) - - // ResourceID - destination.ResourceID = genruntime.ClonePointerToString(datasourceSet.ResourceID) - - // ResourceLocation - destination.ResourceLocation = genruntime.ClonePointerToString(datasourceSet.ResourceLocation) - - // ResourceName - destination.ResourceName = genruntime.ClonePointerToString(datasourceSet.ResourceName) - - // ResourceType - destination.ResourceType = genruntime.ClonePointerToString(datasourceSet.ResourceType) - - // ResourceUri - destination.ResourceUri = genruntime.ClonePointerToString(datasourceSet.ResourceUri) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -// Policy Info in backupInstance -type PolicyInfo struct { - // PolicyParameters: Policy parameters for the backup instance - PolicyParameters *PolicyParameters `json:"policyParameters,omitempty"` - - // +kubebuilder:validation:Required - PolicyReference *genruntime.ResourceReference `armReference:"PolicyId" json:"policyReference,omitempty"` -} - -var _ genruntime.ARMTransformer = &PolicyInfo{} - -// ConvertToARM converts from a Kubernetes CRD object to an ARM object -func (info *PolicyInfo) ConvertToARM(resolved genruntime.ConvertToARMResolvedDetails) (interface{}, error) { - if info == nil { - return nil, nil - } - result := &PolicyInfo_ARM{} - - // Set property "PolicyId": - if info.PolicyReference != nil { - policyReferenceARMID, err := resolved.ResolvedReferences.Lookup(*info.PolicyReference) - if err != nil { - return nil, err - } - policyReference := policyReferenceARMID - result.PolicyId = &policyReference - } - - // Set property "PolicyParameters": - if info.PolicyParameters != nil { - policyParameters_ARM, err := (*info.PolicyParameters).ConvertToARM(resolved) - if err != nil { - return nil, err - } - policyParameters := *policyParameters_ARM.(*PolicyParameters_ARM) - result.PolicyParameters = &policyParameters - } - return result, nil -} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (info *PolicyInfo) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &PolicyInfo_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (info *PolicyInfo) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(PolicyInfo_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected PolicyInfo_ARM, got %T", armInput) - } - - // Set property "PolicyParameters": - if typedInput.PolicyParameters != nil { - var policyParameters1 PolicyParameters - err := policyParameters1.PopulateFromARM(owner, *typedInput.PolicyParameters) - if err != nil { - return err - } - policyParameters := policyParameters1 - info.PolicyParameters = &policyParameters - } - - // no assignment for property "PolicyReference" - - // No error - return nil -} - -// AssignProperties_From_PolicyInfo populates our PolicyInfo from the provided source PolicyInfo -func (info *PolicyInfo) AssignProperties_From_PolicyInfo(source *v20230101s.PolicyInfo) error { - - // PolicyParameters - if source.PolicyParameters != nil { - var policyParameter PolicyParameters - err := policyParameter.AssignProperties_From_PolicyParameters(source.PolicyParameters) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_PolicyParameters() to populate field PolicyParameters") - } - info.PolicyParameters = &policyParameter - } else { - info.PolicyParameters = nil - } - - // PolicyReference - if source.PolicyReference != nil { - policyReference := source.PolicyReference.Copy() - info.PolicyReference = &policyReference - } else { - info.PolicyReference = nil - } - - // No error - return nil -} - -// AssignProperties_To_PolicyInfo populates the provided destination PolicyInfo from our PolicyInfo -func (info *PolicyInfo) AssignProperties_To_PolicyInfo(destination *v20230101s.PolicyInfo) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // PolicyParameters - if info.PolicyParameters != nil { - var policyParameter v20230101s.PolicyParameters - err := info.PolicyParameters.AssignProperties_To_PolicyParameters(&policyParameter) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_PolicyParameters() to populate field PolicyParameters") - } - destination.PolicyParameters = &policyParameter - } else { - destination.PolicyParameters = nil - } - - // PolicyReference - if info.PolicyReference != nil { - policyReference := info.PolicyReference.Copy() - destination.PolicyReference = &policyReference - } else { - destination.PolicyReference = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -// Policy Info in backupInstance -type PolicyInfo_STATUS struct { - PolicyId *string `json:"policyId,omitempty"` - - // PolicyParameters: Policy parameters for the backup instance - PolicyParameters *PolicyParameters_STATUS `json:"policyParameters,omitempty"` - PolicyVersion *string `json:"policyVersion,omitempty"` -} - -var _ genruntime.FromARMConverter = &PolicyInfo_STATUS{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (info *PolicyInfo_STATUS) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &PolicyInfo_STATUS_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (info *PolicyInfo_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(PolicyInfo_STATUS_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected PolicyInfo_STATUS_ARM, got %T", armInput) - } - - // Set property "PolicyId": - if typedInput.PolicyId != nil { - policyId := *typedInput.PolicyId - info.PolicyId = &policyId - } - - // Set property "PolicyParameters": - if typedInput.PolicyParameters != nil { - var policyParameters1 PolicyParameters_STATUS - err := policyParameters1.PopulateFromARM(owner, *typedInput.PolicyParameters) - if err != nil { - return err - } - policyParameters := policyParameters1 - info.PolicyParameters = &policyParameters - } - - // Set property "PolicyVersion": - if typedInput.PolicyVersion != nil { - policyVersion := *typedInput.PolicyVersion - info.PolicyVersion = &policyVersion - } - - // No error - return nil -} - -// AssignProperties_From_PolicyInfo_STATUS populates our PolicyInfo_STATUS from the provided source PolicyInfo_STATUS -func (info *PolicyInfo_STATUS) AssignProperties_From_PolicyInfo_STATUS(source *v20230101s.PolicyInfo_STATUS) error { - - // PolicyId - info.PolicyId = genruntime.ClonePointerToString(source.PolicyId) - - // PolicyParameters - if source.PolicyParameters != nil { - var policyParameter PolicyParameters_STATUS - err := policyParameter.AssignProperties_From_PolicyParameters_STATUS(source.PolicyParameters) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_PolicyParameters_STATUS() to populate field PolicyParameters") - } - info.PolicyParameters = &policyParameter - } else { - info.PolicyParameters = nil - } - - // PolicyVersion - info.PolicyVersion = genruntime.ClonePointerToString(source.PolicyVersion) - - // No error - return nil -} - -// AssignProperties_To_PolicyInfo_STATUS populates the provided destination PolicyInfo_STATUS from our PolicyInfo_STATUS -func (info *PolicyInfo_STATUS) AssignProperties_To_PolicyInfo_STATUS(destination *v20230101s.PolicyInfo_STATUS) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // PolicyId - destination.PolicyId = genruntime.ClonePointerToString(info.PolicyId) - - // PolicyParameters - if info.PolicyParameters != nil { - var policyParameter v20230101s.PolicyParameters_STATUS - err := info.PolicyParameters.AssignProperties_To_PolicyParameters_STATUS(&policyParameter) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_PolicyParameters_STATUS() to populate field PolicyParameters") - } - destination.PolicyParameters = &policyParameter - } else { - destination.PolicyParameters = nil - } - - // PolicyVersion - destination.PolicyVersion = genruntime.ClonePointerToString(info.PolicyVersion) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -// Protection status details -type ProtectionStatusDetails_STATUS struct { - // ErrorDetails: Specifies the protection status error of the resource - ErrorDetails *UserFacingError_STATUS `json:"errorDetails,omitempty"` - - // Status: Specifies the protection status of the resource - Status *ProtectionStatusDetails_Status_STATUS `json:"status,omitempty"` -} - -var _ genruntime.FromARMConverter = &ProtectionStatusDetails_STATUS{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (details *ProtectionStatusDetails_STATUS) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &ProtectionStatusDetails_STATUS_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (details *ProtectionStatusDetails_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(ProtectionStatusDetails_STATUS_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected ProtectionStatusDetails_STATUS_ARM, got %T", armInput) - } - - // Set property "ErrorDetails": - if typedInput.ErrorDetails != nil { - var errorDetails1 UserFacingError_STATUS - err := errorDetails1.PopulateFromARM(owner, *typedInput.ErrorDetails) - if err != nil { - return err - } - errorDetails := errorDetails1 - details.ErrorDetails = &errorDetails - } - - // Set property "Status": - if typedInput.Status != nil { - status := *typedInput.Status - details.Status = &status - } - - // No error - return nil -} - -// AssignProperties_From_ProtectionStatusDetails_STATUS populates our ProtectionStatusDetails_STATUS from the provided source ProtectionStatusDetails_STATUS -func (details *ProtectionStatusDetails_STATUS) AssignProperties_From_ProtectionStatusDetails_STATUS(source *v20230101s.ProtectionStatusDetails_STATUS) error { - - // ErrorDetails - if source.ErrorDetails != nil { - var errorDetail UserFacingError_STATUS - err := errorDetail.AssignProperties_From_UserFacingError_STATUS(source.ErrorDetails) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_UserFacingError_STATUS() to populate field ErrorDetails") - } - details.ErrorDetails = &errorDetail - } else { - details.ErrorDetails = nil - } - - // Status - if source.Status != nil { - status := ProtectionStatusDetails_Status_STATUS(*source.Status) - details.Status = &status - } else { - details.Status = nil - } - - // No error - return nil -} - -// AssignProperties_To_ProtectionStatusDetails_STATUS populates the provided destination ProtectionStatusDetails_STATUS from our ProtectionStatusDetails_STATUS -func (details *ProtectionStatusDetails_STATUS) AssignProperties_To_ProtectionStatusDetails_STATUS(destination *v20230101s.ProtectionStatusDetails_STATUS) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // ErrorDetails - if details.ErrorDetails != nil { - var errorDetail v20230101s.UserFacingError_STATUS - err := details.ErrorDetails.AssignProperties_To_UserFacingError_STATUS(&errorDetail) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_UserFacingError_STATUS() to populate field ErrorDetails") - } - destination.ErrorDetails = &errorDetail - } else { - destination.ErrorDetails = nil - } - - // Status - if details.Status != nil { - status := string(*details.Status) - destination.Status = &status - } else { - destination.Status = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -// Error object used by layers that have access to localized content, and propagate that to user -type UserFacingError_STATUS struct { - // Code: Unique code for this error - Code *string `json:"code,omitempty"` - - // Details: Additional related Errors - Details []UserFacingError_STATUS_Unrolled `json:"details,omitempty"` - - // InnerError: Inner Error - InnerError *InnerError_STATUS `json:"innerError,omitempty"` - - // IsRetryable: Whether the operation will be retryable or not - IsRetryable *bool `json:"isRetryable,omitempty"` - - // IsUserError: Whether the operation is due to a user error or service error - IsUserError *bool `json:"isUserError,omitempty"` - Message *string `json:"message,omitempty"` - - // Properties: Any key value pairs that can be injected inside error object - Properties map[string]string `json:"properties,omitempty"` - - // RecommendedAction: RecommendedAction � localized. - RecommendedAction []string `json:"recommendedAction,omitempty"` - - // Target: Target of the error. - Target *string `json:"target,omitempty"` -} - -var _ genruntime.FromARMConverter = &UserFacingError_STATUS{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (error *UserFacingError_STATUS) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &UserFacingError_STATUS_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (error *UserFacingError_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(UserFacingError_STATUS_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected UserFacingError_STATUS_ARM, got %T", armInput) - } - - // Set property "Code": - if typedInput.Code != nil { - code := *typedInput.Code - error.Code = &code - } - - // Set property "Details": - for _, item := range typedInput.Details { - var item1 UserFacingError_STATUS_Unrolled - err := item1.PopulateFromARM(owner, item) - if err != nil { - return err - } - error.Details = append(error.Details, item1) - } - - // Set property "InnerError": - if typedInput.InnerError != nil { - var innerError1 InnerError_STATUS - err := innerError1.PopulateFromARM(owner, *typedInput.InnerError) - if err != nil { - return err - } - innerError := innerError1 - error.InnerError = &innerError - } - - // Set property "IsRetryable": - if typedInput.IsRetryable != nil { - isRetryable := *typedInput.IsRetryable - error.IsRetryable = &isRetryable - } - - // Set property "IsUserError": - if typedInput.IsUserError != nil { - isUserError := *typedInput.IsUserError - error.IsUserError = &isUserError - } - - // Set property "Message": - if typedInput.Message != nil { - message := *typedInput.Message - error.Message = &message - } - - // Set property "Properties": - if typedInput.Properties != nil { - error.Properties = make(map[string]string, len(typedInput.Properties)) - for key, value := range typedInput.Properties { - error.Properties[key] = value - } - } - - // Set property "RecommendedAction": - for _, item := range typedInput.RecommendedAction { - error.RecommendedAction = append(error.RecommendedAction, item) - } - - // Set property "Target": - if typedInput.Target != nil { - target := *typedInput.Target - error.Target = &target - } - - // No error - return nil -} - -// AssignProperties_From_UserFacingError_STATUS populates our UserFacingError_STATUS from the provided source UserFacingError_STATUS -func (error *UserFacingError_STATUS) AssignProperties_From_UserFacingError_STATUS(source *v20230101s.UserFacingError_STATUS) error { - - // Code - error.Code = genruntime.ClonePointerToString(source.Code) - - // Details - if source.Details != nil { - detailList := make([]UserFacingError_STATUS_Unrolled, len(source.Details)) - for detailIndex, detailItem := range source.Details { - // Shadow the loop variable to avoid aliasing - detailItem := detailItem - var detail UserFacingError_STATUS_Unrolled - err := detail.AssignProperties_From_UserFacingError_STATUS_Unrolled(&detailItem) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_UserFacingError_STATUS_Unrolled() to populate field Details") - } - detailList[detailIndex] = detail - } - error.Details = detailList - } else { - error.Details = nil - } - - // InnerError - if source.InnerError != nil { - var innerError InnerError_STATUS - err := innerError.AssignProperties_From_InnerError_STATUS(source.InnerError) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_InnerError_STATUS() to populate field InnerError") - } - error.InnerError = &innerError - } else { - error.InnerError = nil - } - - // IsRetryable - if source.IsRetryable != nil { - isRetryable := *source.IsRetryable - error.IsRetryable = &isRetryable - } else { - error.IsRetryable = nil - } - - // IsUserError - if source.IsUserError != nil { - isUserError := *source.IsUserError - error.IsUserError = &isUserError - } else { - error.IsUserError = nil - } - - // Message - error.Message = genruntime.ClonePointerToString(source.Message) - - // Properties - error.Properties = genruntime.CloneMapOfStringToString(source.Properties) - - // RecommendedAction - error.RecommendedAction = genruntime.CloneSliceOfString(source.RecommendedAction) - - // Target - error.Target = genruntime.ClonePointerToString(source.Target) - - // No error - return nil -} - -// AssignProperties_To_UserFacingError_STATUS populates the provided destination UserFacingError_STATUS from our UserFacingError_STATUS -func (error *UserFacingError_STATUS) AssignProperties_To_UserFacingError_STATUS(destination *v20230101s.UserFacingError_STATUS) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // Code - destination.Code = genruntime.ClonePointerToString(error.Code) - - // Details - if error.Details != nil { - detailList := make([]v20230101s.UserFacingError_STATUS_Unrolled, len(error.Details)) - for detailIndex, detailItem := range error.Details { - // Shadow the loop variable to avoid aliasing - detailItem := detailItem - var detail v20230101s.UserFacingError_STATUS_Unrolled - err := detailItem.AssignProperties_To_UserFacingError_STATUS_Unrolled(&detail) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_UserFacingError_STATUS_Unrolled() to populate field Details") - } - detailList[detailIndex] = detail - } - destination.Details = detailList - } else { - destination.Details = nil - } - - // InnerError - if error.InnerError != nil { - var innerError v20230101s.InnerError_STATUS - err := error.InnerError.AssignProperties_To_InnerError_STATUS(&innerError) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_InnerError_STATUS() to populate field InnerError") - } - destination.InnerError = &innerError - } else { - destination.InnerError = nil - } - - // IsRetryable - if error.IsRetryable != nil { - isRetryable := *error.IsRetryable - destination.IsRetryable = &isRetryable - } else { - destination.IsRetryable = nil - } - - // IsUserError - if error.IsUserError != nil { - isUserError := *error.IsUserError - destination.IsUserError = &isUserError - } else { - destination.IsUserError = nil - } - - // Message - destination.Message = genruntime.ClonePointerToString(error.Message) - - // Properties - destination.Properties = genruntime.CloneMapOfStringToString(error.Properties) - - // RecommendedAction - destination.RecommendedAction = genruntime.CloneSliceOfString(error.RecommendedAction) - - // Target - destination.Target = genruntime.ClonePointerToString(error.Target) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -// Inner Error -type InnerError_STATUS struct { - // AdditionalInfo: Any Key value pairs that can be provided to the client for additional verbose information. - AdditionalInfo map[string]string `json:"additionalInfo,omitempty"` - - // Code: Unique code for this error - Code *string `json:"code,omitempty"` - - // EmbeddedInnerError: Child Inner Error, to allow Nesting. - EmbeddedInnerError *InnerError_STATUS_Unrolled `json:"embeddedInnerError,omitempty"` -} - -var _ genruntime.FromARMConverter = &InnerError_STATUS{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (error *InnerError_STATUS) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &InnerError_STATUS_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (error *InnerError_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(InnerError_STATUS_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected InnerError_STATUS_ARM, got %T", armInput) - } - - // Set property "AdditionalInfo": - if typedInput.AdditionalInfo != nil { - error.AdditionalInfo = make(map[string]string, len(typedInput.AdditionalInfo)) - for key, value := range typedInput.AdditionalInfo { - error.AdditionalInfo[key] = value - } - } - - // Set property "Code": - if typedInput.Code != nil { - code := *typedInput.Code - error.Code = &code - } - - // Set property "EmbeddedInnerError": - if typedInput.EmbeddedInnerError != nil { - var embeddedInnerError1 InnerError_STATUS_Unrolled - err := embeddedInnerError1.PopulateFromARM(owner, *typedInput.EmbeddedInnerError) - if err != nil { - return err - } - embeddedInnerError := embeddedInnerError1 - error.EmbeddedInnerError = &embeddedInnerError - } - - // No error - return nil -} - -// AssignProperties_From_InnerError_STATUS populates our InnerError_STATUS from the provided source InnerError_STATUS -func (error *InnerError_STATUS) AssignProperties_From_InnerError_STATUS(source *v20230101s.InnerError_STATUS) error { - - // AdditionalInfo - error.AdditionalInfo = genruntime.CloneMapOfStringToString(source.AdditionalInfo) - - // Code - error.Code = genruntime.ClonePointerToString(source.Code) - - // EmbeddedInnerError - if source.EmbeddedInnerError != nil { - var embeddedInnerError InnerError_STATUS_Unrolled - err := embeddedInnerError.AssignProperties_From_InnerError_STATUS_Unrolled(source.EmbeddedInnerError) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_InnerError_STATUS_Unrolled() to populate field EmbeddedInnerError") - } - error.EmbeddedInnerError = &embeddedInnerError - } else { - error.EmbeddedInnerError = nil - } - - // No error - return nil -} - -// AssignProperties_To_InnerError_STATUS populates the provided destination InnerError_STATUS from our InnerError_STATUS -func (error *InnerError_STATUS) AssignProperties_To_InnerError_STATUS(destination *v20230101s.InnerError_STATUS) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // AdditionalInfo - destination.AdditionalInfo = genruntime.CloneMapOfStringToString(error.AdditionalInfo) - - // Code - destination.Code = genruntime.ClonePointerToString(error.Code) - - // EmbeddedInnerError - if error.EmbeddedInnerError != nil { - var embeddedInnerError v20230101s.InnerError_STATUS_Unrolled - err := error.EmbeddedInnerError.AssignProperties_To_InnerError_STATUS_Unrolled(&embeddedInnerError) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_InnerError_STATUS_Unrolled() to populate field EmbeddedInnerError") - } - destination.EmbeddedInnerError = &embeddedInnerError - } else { - destination.EmbeddedInnerError = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -// Parameters in Policy -type PolicyParameters struct { - // BackupDatasourceParametersList: Gets or sets the Backup Data Source Parameters - BackupDatasourceParametersList []BackupDatasourceParameters `json:"backupDatasourceParametersList,omitempty"` - - // DataStoreParametersList: Gets or sets the DataStore Parameters - DataStoreParametersList []DataStoreParameters `json:"dataStoreParametersList,omitempty"` -} - -var _ genruntime.ARMTransformer = &PolicyParameters{} - -// ConvertToARM converts from a Kubernetes CRD object to an ARM object -func (parameters *PolicyParameters) ConvertToARM(resolved genruntime.ConvertToARMResolvedDetails) (interface{}, error) { - if parameters == nil { - return nil, nil - } - result := &PolicyParameters_ARM{} - - // Set property "BackupDatasourceParametersList": - for _, item := range parameters.BackupDatasourceParametersList { - item_ARM, err := item.ConvertToARM(resolved) - if err != nil { - return nil, err - } - result.BackupDatasourceParametersList = append(result.BackupDatasourceParametersList, *item_ARM.(*BackupDatasourceParameters_ARM)) - } - - // Set property "DataStoreParametersList": - for _, item := range parameters.DataStoreParametersList { - item_ARM, err := item.ConvertToARM(resolved) - if err != nil { - return nil, err - } - result.DataStoreParametersList = append(result.DataStoreParametersList, *item_ARM.(*DataStoreParameters_ARM)) - } - return result, nil -} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (parameters *PolicyParameters) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &PolicyParameters_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (parameters *PolicyParameters) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(PolicyParameters_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected PolicyParameters_ARM, got %T", armInput) - } - - // Set property "BackupDatasourceParametersList": - for _, item := range typedInput.BackupDatasourceParametersList { - var item1 BackupDatasourceParameters - err := item1.PopulateFromARM(owner, item) - if err != nil { - return err - } - parameters.BackupDatasourceParametersList = append(parameters.BackupDatasourceParametersList, item1) - } - - // Set property "DataStoreParametersList": - for _, item := range typedInput.DataStoreParametersList { - var item1 DataStoreParameters - err := item1.PopulateFromARM(owner, item) - if err != nil { - return err - } - parameters.DataStoreParametersList = append(parameters.DataStoreParametersList, item1) - } - - // No error - return nil -} - -// AssignProperties_From_PolicyParameters populates our PolicyParameters from the provided source PolicyParameters -func (parameters *PolicyParameters) AssignProperties_From_PolicyParameters(source *v20230101s.PolicyParameters) error { - - // BackupDatasourceParametersList - if source.BackupDatasourceParametersList != nil { - backupDatasourceParametersList := make([]BackupDatasourceParameters, len(source.BackupDatasourceParametersList)) - for backupDatasourceParametersListIndex, backupDatasourceParametersListItem := range source.BackupDatasourceParametersList { - // Shadow the loop variable to avoid aliasing - backupDatasourceParametersListItem := backupDatasourceParametersListItem - var backupDatasourceParametersListLocal BackupDatasourceParameters - err := backupDatasourceParametersListLocal.AssignProperties_From_BackupDatasourceParameters(&backupDatasourceParametersListItem) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_BackupDatasourceParameters() to populate field BackupDatasourceParametersList") - } - backupDatasourceParametersList[backupDatasourceParametersListIndex] = backupDatasourceParametersListLocal - } - parameters.BackupDatasourceParametersList = backupDatasourceParametersList - } else { - parameters.BackupDatasourceParametersList = nil - } - - // DataStoreParametersList - if source.DataStoreParametersList != nil { - dataStoreParametersList := make([]DataStoreParameters, len(source.DataStoreParametersList)) - for dataStoreParametersListIndex, dataStoreParametersListItem := range source.DataStoreParametersList { - // Shadow the loop variable to avoid aliasing - dataStoreParametersListItem := dataStoreParametersListItem - var dataStoreParametersListLocal DataStoreParameters - err := dataStoreParametersListLocal.AssignProperties_From_DataStoreParameters(&dataStoreParametersListItem) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_DataStoreParameters() to populate field DataStoreParametersList") - } - dataStoreParametersList[dataStoreParametersListIndex] = dataStoreParametersListLocal - } - parameters.DataStoreParametersList = dataStoreParametersList - } else { - parameters.DataStoreParametersList = nil - } - - // No error - return nil -} - -// AssignProperties_To_PolicyParameters populates the provided destination PolicyParameters from our PolicyParameters -func (parameters *PolicyParameters) AssignProperties_To_PolicyParameters(destination *v20230101s.PolicyParameters) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // BackupDatasourceParametersList - if parameters.BackupDatasourceParametersList != nil { - backupDatasourceParametersList := make([]v20230101s.BackupDatasourceParameters, len(parameters.BackupDatasourceParametersList)) - for backupDatasourceParametersListIndex, backupDatasourceParametersListItem := range parameters.BackupDatasourceParametersList { - // Shadow the loop variable to avoid aliasing - backupDatasourceParametersListItem := backupDatasourceParametersListItem - var backupDatasourceParametersListLocal v20230101s.BackupDatasourceParameters - err := backupDatasourceParametersListItem.AssignProperties_To_BackupDatasourceParameters(&backupDatasourceParametersListLocal) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_BackupDatasourceParameters() to populate field BackupDatasourceParametersList") - } - backupDatasourceParametersList[backupDatasourceParametersListIndex] = backupDatasourceParametersListLocal - } - destination.BackupDatasourceParametersList = backupDatasourceParametersList - } else { - destination.BackupDatasourceParametersList = nil - } - - // DataStoreParametersList - if parameters.DataStoreParametersList != nil { - dataStoreParametersList := make([]v20230101s.DataStoreParameters, len(parameters.DataStoreParametersList)) - for dataStoreParametersListIndex, dataStoreParametersListItem := range parameters.DataStoreParametersList { - // Shadow the loop variable to avoid aliasing - dataStoreParametersListItem := dataStoreParametersListItem - var dataStoreParametersListLocal v20230101s.DataStoreParameters - err := dataStoreParametersListItem.AssignProperties_To_DataStoreParameters(&dataStoreParametersListLocal) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_DataStoreParameters() to populate field DataStoreParametersList") - } - dataStoreParametersList[dataStoreParametersListIndex] = dataStoreParametersListLocal - } - destination.DataStoreParametersList = dataStoreParametersList - } else { - destination.DataStoreParametersList = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -// Parameters in Policy -type PolicyParameters_STATUS struct { - // BackupDatasourceParametersList: Gets or sets the Backup Data Source Parameters - BackupDatasourceParametersList []BackupDatasourceParameters_STATUS `json:"backupDatasourceParametersList,omitempty"` - - // DataStoreParametersList: Gets or sets the DataStore Parameters - DataStoreParametersList []DataStoreParameters_STATUS `json:"dataStoreParametersList,omitempty"` -} - -var _ genruntime.FromARMConverter = &PolicyParameters_STATUS{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (parameters *PolicyParameters_STATUS) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &PolicyParameters_STATUS_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (parameters *PolicyParameters_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(PolicyParameters_STATUS_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected PolicyParameters_STATUS_ARM, got %T", armInput) - } - - // Set property "BackupDatasourceParametersList": - for _, item := range typedInput.BackupDatasourceParametersList { - var item1 BackupDatasourceParameters_STATUS - err := item1.PopulateFromARM(owner, item) - if err != nil { - return err - } - parameters.BackupDatasourceParametersList = append(parameters.BackupDatasourceParametersList, item1) - } - - // Set property "DataStoreParametersList": - for _, item := range typedInput.DataStoreParametersList { - var item1 DataStoreParameters_STATUS - err := item1.PopulateFromARM(owner, item) - if err != nil { - return err - } - parameters.DataStoreParametersList = append(parameters.DataStoreParametersList, item1) - } - - // No error - return nil -} - -// AssignProperties_From_PolicyParameters_STATUS populates our PolicyParameters_STATUS from the provided source PolicyParameters_STATUS -func (parameters *PolicyParameters_STATUS) AssignProperties_From_PolicyParameters_STATUS(source *v20230101s.PolicyParameters_STATUS) error { - - // BackupDatasourceParametersList - if source.BackupDatasourceParametersList != nil { - backupDatasourceParametersList := make([]BackupDatasourceParameters_STATUS, len(source.BackupDatasourceParametersList)) - for backupDatasourceParametersListIndex, backupDatasourceParametersListItem := range source.BackupDatasourceParametersList { - // Shadow the loop variable to avoid aliasing - backupDatasourceParametersListItem := backupDatasourceParametersListItem - var backupDatasourceParametersListLocal BackupDatasourceParameters_STATUS - err := backupDatasourceParametersListLocal.AssignProperties_From_BackupDatasourceParameters_STATUS(&backupDatasourceParametersListItem) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_BackupDatasourceParameters_STATUS() to populate field BackupDatasourceParametersList") - } - backupDatasourceParametersList[backupDatasourceParametersListIndex] = backupDatasourceParametersListLocal - } - parameters.BackupDatasourceParametersList = backupDatasourceParametersList - } else { - parameters.BackupDatasourceParametersList = nil - } - - // DataStoreParametersList - if source.DataStoreParametersList != nil { - dataStoreParametersList := make([]DataStoreParameters_STATUS, len(source.DataStoreParametersList)) - for dataStoreParametersListIndex, dataStoreParametersListItem := range source.DataStoreParametersList { - // Shadow the loop variable to avoid aliasing - dataStoreParametersListItem := dataStoreParametersListItem - var dataStoreParametersListLocal DataStoreParameters_STATUS - err := dataStoreParametersListLocal.AssignProperties_From_DataStoreParameters_STATUS(&dataStoreParametersListItem) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_DataStoreParameters_STATUS() to populate field DataStoreParametersList") - } - dataStoreParametersList[dataStoreParametersListIndex] = dataStoreParametersListLocal - } - parameters.DataStoreParametersList = dataStoreParametersList - } else { - parameters.DataStoreParametersList = nil - } - - // No error - return nil -} - -// AssignProperties_To_PolicyParameters_STATUS populates the provided destination PolicyParameters_STATUS from our PolicyParameters_STATUS -func (parameters *PolicyParameters_STATUS) AssignProperties_To_PolicyParameters_STATUS(destination *v20230101s.PolicyParameters_STATUS) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // BackupDatasourceParametersList - if parameters.BackupDatasourceParametersList != nil { - backupDatasourceParametersList := make([]v20230101s.BackupDatasourceParameters_STATUS, len(parameters.BackupDatasourceParametersList)) - for backupDatasourceParametersListIndex, backupDatasourceParametersListItem := range parameters.BackupDatasourceParametersList { - // Shadow the loop variable to avoid aliasing - backupDatasourceParametersListItem := backupDatasourceParametersListItem - var backupDatasourceParametersListLocal v20230101s.BackupDatasourceParameters_STATUS - err := backupDatasourceParametersListItem.AssignProperties_To_BackupDatasourceParameters_STATUS(&backupDatasourceParametersListLocal) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_BackupDatasourceParameters_STATUS() to populate field BackupDatasourceParametersList") - } - backupDatasourceParametersList[backupDatasourceParametersListIndex] = backupDatasourceParametersListLocal - } - destination.BackupDatasourceParametersList = backupDatasourceParametersList - } else { - destination.BackupDatasourceParametersList = nil - } - - // DataStoreParametersList - if parameters.DataStoreParametersList != nil { - dataStoreParametersList := make([]v20230101s.DataStoreParameters_STATUS, len(parameters.DataStoreParametersList)) - for dataStoreParametersListIndex, dataStoreParametersListItem := range parameters.DataStoreParametersList { - // Shadow the loop variable to avoid aliasing - dataStoreParametersListItem := dataStoreParametersListItem - var dataStoreParametersListLocal v20230101s.DataStoreParameters_STATUS - err := dataStoreParametersListItem.AssignProperties_To_DataStoreParameters_STATUS(&dataStoreParametersListLocal) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_DataStoreParameters_STATUS() to populate field DataStoreParametersList") - } - dataStoreParametersList[dataStoreParametersListIndex] = dataStoreParametersListLocal - } - destination.DataStoreParametersList = dataStoreParametersList - } else { - destination.DataStoreParametersList = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -type SecretStoreBasedAuthCredentials struct { - // +kubebuilder:validation:Required - // ObjectType: Type of the specific object - used for deserializing - ObjectType *SecretStoreBasedAuthCredentials_ObjectType `json:"objectType,omitempty"` - - // SecretStoreResource: Secret store resource - SecretStoreResource *SecretStoreResource `json:"secretStoreResource,omitempty"` -} - -var _ genruntime.ARMTransformer = &SecretStoreBasedAuthCredentials{} - -// ConvertToARM converts from a Kubernetes CRD object to an ARM object -func (credentials *SecretStoreBasedAuthCredentials) ConvertToARM(resolved genruntime.ConvertToARMResolvedDetails) (interface{}, error) { - if credentials == nil { - return nil, nil - } - result := &SecretStoreBasedAuthCredentials_ARM{} - - // Set property "ObjectType": - if credentials.ObjectType != nil { - result.ObjectType = *credentials.ObjectType - } - - // Set property "SecretStoreResource": - if credentials.SecretStoreResource != nil { - secretStoreResource_ARM, err := (*credentials.SecretStoreResource).ConvertToARM(resolved) - if err != nil { - return nil, err - } - secretStoreResource := *secretStoreResource_ARM.(*SecretStoreResource_ARM) - result.SecretStoreResource = &secretStoreResource - } - return result, nil -} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (credentials *SecretStoreBasedAuthCredentials) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &SecretStoreBasedAuthCredentials_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (credentials *SecretStoreBasedAuthCredentials) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(SecretStoreBasedAuthCredentials_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected SecretStoreBasedAuthCredentials_ARM, got %T", armInput) - } - - // Set property "ObjectType": - credentials.ObjectType = &typedInput.ObjectType - - // Set property "SecretStoreResource": - if typedInput.SecretStoreResource != nil { - var secretStoreResource1 SecretStoreResource - err := secretStoreResource1.PopulateFromARM(owner, *typedInput.SecretStoreResource) - if err != nil { - return err - } - secretStoreResource := secretStoreResource1 - credentials.SecretStoreResource = &secretStoreResource - } - - // No error - return nil -} - -// AssignProperties_From_SecretStoreBasedAuthCredentials populates our SecretStoreBasedAuthCredentials from the provided source SecretStoreBasedAuthCredentials -func (credentials *SecretStoreBasedAuthCredentials) AssignProperties_From_SecretStoreBasedAuthCredentials(source *v20230101s.SecretStoreBasedAuthCredentials) error { - - // ObjectType - if source.ObjectType != nil { - objectType := SecretStoreBasedAuthCredentials_ObjectType(*source.ObjectType) - credentials.ObjectType = &objectType - } else { - credentials.ObjectType = nil - } - - // SecretStoreResource - if source.SecretStoreResource != nil { - var secretStoreResource SecretStoreResource - err := secretStoreResource.AssignProperties_From_SecretStoreResource(source.SecretStoreResource) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_SecretStoreResource() to populate field SecretStoreResource") - } - credentials.SecretStoreResource = &secretStoreResource - } else { - credentials.SecretStoreResource = nil - } - - // No error - return nil -} - -// AssignProperties_To_SecretStoreBasedAuthCredentials populates the provided destination SecretStoreBasedAuthCredentials from our SecretStoreBasedAuthCredentials -func (credentials *SecretStoreBasedAuthCredentials) AssignProperties_To_SecretStoreBasedAuthCredentials(destination *v20230101s.SecretStoreBasedAuthCredentials) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // ObjectType - if credentials.ObjectType != nil { - objectType := string(*credentials.ObjectType) - destination.ObjectType = &objectType - } else { - destination.ObjectType = nil - } - - // SecretStoreResource - if credentials.SecretStoreResource != nil { - var secretStoreResource v20230101s.SecretStoreResource - err := credentials.SecretStoreResource.AssignProperties_To_SecretStoreResource(&secretStoreResource) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_SecretStoreResource() to populate field SecretStoreResource") - } - destination.SecretStoreResource = &secretStoreResource - } else { - destination.SecretStoreResource = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -type SecretStoreBasedAuthCredentials_STATUS struct { - // ObjectType: Type of the specific object - used for deserializing - ObjectType *SecretStoreBasedAuthCredentials_ObjectType_STATUS `json:"objectType,omitempty"` - - // SecretStoreResource: Secret store resource - SecretStoreResource *SecretStoreResource_STATUS `json:"secretStoreResource,omitempty"` -} - -var _ genruntime.FromARMConverter = &SecretStoreBasedAuthCredentials_STATUS{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (credentials *SecretStoreBasedAuthCredentials_STATUS) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &SecretStoreBasedAuthCredentials_STATUS_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (credentials *SecretStoreBasedAuthCredentials_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(SecretStoreBasedAuthCredentials_STATUS_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected SecretStoreBasedAuthCredentials_STATUS_ARM, got %T", armInput) - } - - // Set property "ObjectType": - credentials.ObjectType = &typedInput.ObjectType - - // Set property "SecretStoreResource": - if typedInput.SecretStoreResource != nil { - var secretStoreResource1 SecretStoreResource_STATUS - err := secretStoreResource1.PopulateFromARM(owner, *typedInput.SecretStoreResource) - if err != nil { - return err - } - secretStoreResource := secretStoreResource1 - credentials.SecretStoreResource = &secretStoreResource - } - - // No error - return nil -} - -// AssignProperties_From_SecretStoreBasedAuthCredentials_STATUS populates our SecretStoreBasedAuthCredentials_STATUS from the provided source SecretStoreBasedAuthCredentials_STATUS -func (credentials *SecretStoreBasedAuthCredentials_STATUS) AssignProperties_From_SecretStoreBasedAuthCredentials_STATUS(source *v20230101s.SecretStoreBasedAuthCredentials_STATUS) error { - - // ObjectType - if source.ObjectType != nil { - objectType := SecretStoreBasedAuthCredentials_ObjectType_STATUS(*source.ObjectType) - credentials.ObjectType = &objectType - } else { - credentials.ObjectType = nil - } - - // SecretStoreResource - if source.SecretStoreResource != nil { - var secretStoreResource SecretStoreResource_STATUS - err := secretStoreResource.AssignProperties_From_SecretStoreResource_STATUS(source.SecretStoreResource) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_SecretStoreResource_STATUS() to populate field SecretStoreResource") - } - credentials.SecretStoreResource = &secretStoreResource - } else { - credentials.SecretStoreResource = nil - } - - // No error - return nil -} - -// AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS populates the provided destination SecretStoreBasedAuthCredentials_STATUS from our SecretStoreBasedAuthCredentials_STATUS -func (credentials *SecretStoreBasedAuthCredentials_STATUS) AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS(destination *v20230101s.SecretStoreBasedAuthCredentials_STATUS) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // ObjectType - if credentials.ObjectType != nil { - objectType := string(*credentials.ObjectType) - destination.ObjectType = &objectType - } else { - destination.ObjectType = nil - } - - // SecretStoreResource - if credentials.SecretStoreResource != nil { - var secretStoreResource v20230101s.SecretStoreResource_STATUS - err := credentials.SecretStoreResource.AssignProperties_To_SecretStoreResource_STATUS(&secretStoreResource) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_SecretStoreResource_STATUS() to populate field SecretStoreResource") - } - destination.SecretStoreResource = &secretStoreResource - } else { - destination.SecretStoreResource = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -type UserFacingError_STATUS_Unrolled struct { - // Code: Unique code for this error - Code *string `json:"code,omitempty"` - - // InnerError: Inner Error - InnerError *InnerError_STATUS `json:"innerError,omitempty"` - - // IsRetryable: Whether the operation will be retryable or not - IsRetryable *bool `json:"isRetryable,omitempty"` - - // IsUserError: Whether the operation is due to a user error or service error - IsUserError *bool `json:"isUserError,omitempty"` - Message *string `json:"message,omitempty"` - - // Properties: Any key value pairs that can be injected inside error object - Properties map[string]string `json:"properties,omitempty"` - - // RecommendedAction: RecommendedAction � localized. - RecommendedAction []string `json:"recommendedAction,omitempty"` - - // Target: Target of the error. - Target *string `json:"target,omitempty"` -} - -var _ genruntime.FromARMConverter = &UserFacingError_STATUS_Unrolled{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (unrolled *UserFacingError_STATUS_Unrolled) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &UserFacingError_STATUS_Unrolled_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (unrolled *UserFacingError_STATUS_Unrolled) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(UserFacingError_STATUS_Unrolled_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected UserFacingError_STATUS_Unrolled_ARM, got %T", armInput) - } - - // Set property "Code": - if typedInput.Code != nil { - code := *typedInput.Code - unrolled.Code = &code - } - - // Set property "InnerError": - if typedInput.InnerError != nil { - var innerError1 InnerError_STATUS - err := innerError1.PopulateFromARM(owner, *typedInput.InnerError) - if err != nil { - return err - } - innerError := innerError1 - unrolled.InnerError = &innerError - } - - // Set property "IsRetryable": - if typedInput.IsRetryable != nil { - isRetryable := *typedInput.IsRetryable - unrolled.IsRetryable = &isRetryable - } - - // Set property "IsUserError": - if typedInput.IsUserError != nil { - isUserError := *typedInput.IsUserError - unrolled.IsUserError = &isUserError - } - - // Set property "Message": - if typedInput.Message != nil { - message := *typedInput.Message - unrolled.Message = &message - } - - // Set property "Properties": - if typedInput.Properties != nil { - unrolled.Properties = make(map[string]string, len(typedInput.Properties)) - for key, value := range typedInput.Properties { - unrolled.Properties[key] = value - } - } - - // Set property "RecommendedAction": - for _, item := range typedInput.RecommendedAction { - unrolled.RecommendedAction = append(unrolled.RecommendedAction, item) - } - - // Set property "Target": - if typedInput.Target != nil { - target := *typedInput.Target - unrolled.Target = &target - } - - // No error - return nil -} - -// AssignProperties_From_UserFacingError_STATUS_Unrolled populates our UserFacingError_STATUS_Unrolled from the provided source UserFacingError_STATUS_Unrolled -func (unrolled *UserFacingError_STATUS_Unrolled) AssignProperties_From_UserFacingError_STATUS_Unrolled(source *v20230101s.UserFacingError_STATUS_Unrolled) error { - - // Code - unrolled.Code = genruntime.ClonePointerToString(source.Code) - - // InnerError - if source.InnerError != nil { - var innerError InnerError_STATUS - err := innerError.AssignProperties_From_InnerError_STATUS(source.InnerError) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_InnerError_STATUS() to populate field InnerError") - } - unrolled.InnerError = &innerError - } else { - unrolled.InnerError = nil - } - - // IsRetryable - if source.IsRetryable != nil { - isRetryable := *source.IsRetryable - unrolled.IsRetryable = &isRetryable - } else { - unrolled.IsRetryable = nil - } - - // IsUserError - if source.IsUserError != nil { - isUserError := *source.IsUserError - unrolled.IsUserError = &isUserError - } else { - unrolled.IsUserError = nil - } - - // Message - unrolled.Message = genruntime.ClonePointerToString(source.Message) - - // Properties - unrolled.Properties = genruntime.CloneMapOfStringToString(source.Properties) - - // RecommendedAction - unrolled.RecommendedAction = genruntime.CloneSliceOfString(source.RecommendedAction) - - // Target - unrolled.Target = genruntime.ClonePointerToString(source.Target) - - // No error - return nil -} - -// AssignProperties_To_UserFacingError_STATUS_Unrolled populates the provided destination UserFacingError_STATUS_Unrolled from our UserFacingError_STATUS_Unrolled -func (unrolled *UserFacingError_STATUS_Unrolled) AssignProperties_To_UserFacingError_STATUS_Unrolled(destination *v20230101s.UserFacingError_STATUS_Unrolled) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // Code - destination.Code = genruntime.ClonePointerToString(unrolled.Code) - - // InnerError - if unrolled.InnerError != nil { - var innerError v20230101s.InnerError_STATUS - err := unrolled.InnerError.AssignProperties_To_InnerError_STATUS(&innerError) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_InnerError_STATUS() to populate field InnerError") - } - destination.InnerError = &innerError - } else { - destination.InnerError = nil - } - - // IsRetryable - if unrolled.IsRetryable != nil { - isRetryable := *unrolled.IsRetryable - destination.IsRetryable = &isRetryable - } else { - destination.IsRetryable = nil - } - - // IsUserError - if unrolled.IsUserError != nil { - isUserError := *unrolled.IsUserError - destination.IsUserError = &isUserError - } else { - destination.IsUserError = nil - } - - // Message - destination.Message = genruntime.ClonePointerToString(unrolled.Message) - - // Properties - destination.Properties = genruntime.CloneMapOfStringToString(unrolled.Properties) - - // RecommendedAction - destination.RecommendedAction = genruntime.CloneSliceOfString(unrolled.RecommendedAction) - - // Target - destination.Target = genruntime.ClonePointerToString(unrolled.Target) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -type BackupDatasourceParameters struct { - // Blob: Mutually exclusive with all other properties - Blob *BlobBackupDatasourceParameters `json:"blobBackupDatasourceParameters,omitempty"` - - // KubernetesCluster: Mutually exclusive with all other properties - KubernetesCluster *KubernetesClusterBackupDatasourceParameters `json:"kubernetesClusterBackupDatasourceParameters,omitempty"` -} - -var _ genruntime.ARMTransformer = &BackupDatasourceParameters{} - -// ConvertToARM converts from a Kubernetes CRD object to an ARM object -func (parameters *BackupDatasourceParameters) ConvertToARM(resolved genruntime.ConvertToARMResolvedDetails) (interface{}, error) { - if parameters == nil { - return nil, nil - } - result := &BackupDatasourceParameters_ARM{} - - // Set property "Blob": - if parameters.Blob != nil { - blob_ARM, err := (*parameters.Blob).ConvertToARM(resolved) - if err != nil { - return nil, err - } - blob := *blob_ARM.(*BlobBackupDatasourceParameters_ARM) - result.Blob = &blob - } - - // Set property "KubernetesCluster": - if parameters.KubernetesCluster != nil { - kubernetesCluster_ARM, err := (*parameters.KubernetesCluster).ConvertToARM(resolved) - if err != nil { - return nil, err - } - kubernetesCluster := *kubernetesCluster_ARM.(*KubernetesClusterBackupDatasourceParameters_ARM) - result.KubernetesCluster = &kubernetesCluster - } - return result, nil -} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (parameters *BackupDatasourceParameters) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &BackupDatasourceParameters_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (parameters *BackupDatasourceParameters) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(BackupDatasourceParameters_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected BackupDatasourceParameters_ARM, got %T", armInput) - } - - // Set property "Blob": - if typedInput.Blob != nil { - var blob1 BlobBackupDatasourceParameters - err := blob1.PopulateFromARM(owner, *typedInput.Blob) - if err != nil { - return err - } - blob := blob1 - parameters.Blob = &blob - } - - // Set property "KubernetesCluster": - if typedInput.KubernetesCluster != nil { - var kubernetesCluster1 KubernetesClusterBackupDatasourceParameters - err := kubernetesCluster1.PopulateFromARM(owner, *typedInput.KubernetesCluster) - if err != nil { - return err - } - kubernetesCluster := kubernetesCluster1 - parameters.KubernetesCluster = &kubernetesCluster - } - - // No error - return nil -} - -// AssignProperties_From_BackupDatasourceParameters populates our BackupDatasourceParameters from the provided source BackupDatasourceParameters -func (parameters *BackupDatasourceParameters) AssignProperties_From_BackupDatasourceParameters(source *v20230101s.BackupDatasourceParameters) error { - - // Blob - if source.Blob != nil { - var blob BlobBackupDatasourceParameters - err := blob.AssignProperties_From_BlobBackupDatasourceParameters(source.Blob) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_BlobBackupDatasourceParameters() to populate field Blob") - } - parameters.Blob = &blob - } else { - parameters.Blob = nil - } - - // KubernetesCluster - if source.KubernetesCluster != nil { - var kubernetesCluster KubernetesClusterBackupDatasourceParameters - err := kubernetesCluster.AssignProperties_From_KubernetesClusterBackupDatasourceParameters(source.KubernetesCluster) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_KubernetesClusterBackupDatasourceParameters() to populate field KubernetesCluster") - } - parameters.KubernetesCluster = &kubernetesCluster - } else { - parameters.KubernetesCluster = nil - } - - // No error - return nil -} - -// AssignProperties_To_BackupDatasourceParameters populates the provided destination BackupDatasourceParameters from our BackupDatasourceParameters -func (parameters *BackupDatasourceParameters) AssignProperties_To_BackupDatasourceParameters(destination *v20230101s.BackupDatasourceParameters) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // Blob - if parameters.Blob != nil { - var blob v20230101s.BlobBackupDatasourceParameters - err := parameters.Blob.AssignProperties_To_BlobBackupDatasourceParameters(&blob) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_BlobBackupDatasourceParameters() to populate field Blob") - } - destination.Blob = &blob - } else { - destination.Blob = nil - } - - // KubernetesCluster - if parameters.KubernetesCluster != nil { - var kubernetesCluster v20230101s.KubernetesClusterBackupDatasourceParameters - err := parameters.KubernetesCluster.AssignProperties_To_KubernetesClusterBackupDatasourceParameters(&kubernetesCluster) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_KubernetesClusterBackupDatasourceParameters() to populate field KubernetesCluster") - } - destination.KubernetesCluster = &kubernetesCluster - } else { - destination.KubernetesCluster = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -type BackupDatasourceParameters_STATUS struct { - // Blob: Mutually exclusive with all other properties - Blob *BlobBackupDatasourceParameters_STATUS `json:"blobBackupDatasourceParameters,omitempty"` - - // KubernetesCluster: Mutually exclusive with all other properties - KubernetesCluster *KubernetesClusterBackupDatasourceParameters_STATUS `json:"kubernetesClusterBackupDatasourceParameters,omitempty"` -} - -var _ genruntime.FromARMConverter = &BackupDatasourceParameters_STATUS{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (parameters *BackupDatasourceParameters_STATUS) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &BackupDatasourceParameters_STATUS_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (parameters *BackupDatasourceParameters_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(BackupDatasourceParameters_STATUS_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected BackupDatasourceParameters_STATUS_ARM, got %T", armInput) - } - - // Set property "Blob": - if typedInput.Blob != nil { - var blob1 BlobBackupDatasourceParameters_STATUS - err := blob1.PopulateFromARM(owner, *typedInput.Blob) - if err != nil { - return err - } - blob := blob1 - parameters.Blob = &blob - } - - // Set property "KubernetesCluster": - if typedInput.KubernetesCluster != nil { - var kubernetesCluster1 KubernetesClusterBackupDatasourceParameters_STATUS - err := kubernetesCluster1.PopulateFromARM(owner, *typedInput.KubernetesCluster) - if err != nil { - return err - } - kubernetesCluster := kubernetesCluster1 - parameters.KubernetesCluster = &kubernetesCluster - } - - // No error - return nil -} - -// AssignProperties_From_BackupDatasourceParameters_STATUS populates our BackupDatasourceParameters_STATUS from the provided source BackupDatasourceParameters_STATUS -func (parameters *BackupDatasourceParameters_STATUS) AssignProperties_From_BackupDatasourceParameters_STATUS(source *v20230101s.BackupDatasourceParameters_STATUS) error { - - // Blob - if source.Blob != nil { - var blob BlobBackupDatasourceParameters_STATUS - err := blob.AssignProperties_From_BlobBackupDatasourceParameters_STATUS(source.Blob) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_BlobBackupDatasourceParameters_STATUS() to populate field Blob") - } - parameters.Blob = &blob - } else { - parameters.Blob = nil - } - - // KubernetesCluster - if source.KubernetesCluster != nil { - var kubernetesCluster KubernetesClusterBackupDatasourceParameters_STATUS - err := kubernetesCluster.AssignProperties_From_KubernetesClusterBackupDatasourceParameters_STATUS(source.KubernetesCluster) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_KubernetesClusterBackupDatasourceParameters_STATUS() to populate field KubernetesCluster") - } - parameters.KubernetesCluster = &kubernetesCluster - } else { - parameters.KubernetesCluster = nil - } - - // No error - return nil -} - -// AssignProperties_To_BackupDatasourceParameters_STATUS populates the provided destination BackupDatasourceParameters_STATUS from our BackupDatasourceParameters_STATUS -func (parameters *BackupDatasourceParameters_STATUS) AssignProperties_To_BackupDatasourceParameters_STATUS(destination *v20230101s.BackupDatasourceParameters_STATUS) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // Blob - if parameters.Blob != nil { - var blob v20230101s.BlobBackupDatasourceParameters_STATUS - err := parameters.Blob.AssignProperties_To_BlobBackupDatasourceParameters_STATUS(&blob) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_BlobBackupDatasourceParameters_STATUS() to populate field Blob") - } - destination.Blob = &blob - } else { - destination.Blob = nil - } - - // KubernetesCluster - if parameters.KubernetesCluster != nil { - var kubernetesCluster v20230101s.KubernetesClusterBackupDatasourceParameters_STATUS - err := parameters.KubernetesCluster.AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS(&kubernetesCluster) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS() to populate field KubernetesCluster") - } - destination.KubernetesCluster = &kubernetesCluster - } else { - destination.KubernetesCluster = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -type DataStoreParameters struct { - // AzureOperationalStoreParameters: Mutually exclusive with all other properties - AzureOperationalStoreParameters *AzureOperationalStoreParameters `json:"azureOperationalStoreParameters,omitempty"` -} - -var _ genruntime.ARMTransformer = &DataStoreParameters{} - -// ConvertToARM converts from a Kubernetes CRD object to an ARM object -func (parameters *DataStoreParameters) ConvertToARM(resolved genruntime.ConvertToARMResolvedDetails) (interface{}, error) { - if parameters == nil { - return nil, nil - } - result := &DataStoreParameters_ARM{} - - // Set property "AzureOperationalStoreParameters": - if parameters.AzureOperationalStoreParameters != nil { - azureOperationalStoreParameters_ARM, err := (*parameters.AzureOperationalStoreParameters).ConvertToARM(resolved) - if err != nil { - return nil, err - } - azureOperationalStoreParameters := *azureOperationalStoreParameters_ARM.(*AzureOperationalStoreParameters_ARM) - result.AzureOperationalStoreParameters = &azureOperationalStoreParameters - } - return result, nil -} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (parameters *DataStoreParameters) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &DataStoreParameters_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (parameters *DataStoreParameters) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(DataStoreParameters_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected DataStoreParameters_ARM, got %T", armInput) - } - - // Set property "AzureOperationalStoreParameters": - if typedInput.AzureOperationalStoreParameters != nil { - var azureOperationalStoreParameters1 AzureOperationalStoreParameters - err := azureOperationalStoreParameters1.PopulateFromARM(owner, *typedInput.AzureOperationalStoreParameters) - if err != nil { - return err - } - azureOperationalStoreParameters := azureOperationalStoreParameters1 - parameters.AzureOperationalStoreParameters = &azureOperationalStoreParameters - } - - // No error - return nil -} - -// AssignProperties_From_DataStoreParameters populates our DataStoreParameters from the provided source DataStoreParameters -func (parameters *DataStoreParameters) AssignProperties_From_DataStoreParameters(source *v20230101s.DataStoreParameters) error { - - // AzureOperationalStoreParameters - if source.AzureOperationalStoreParameters != nil { - var azureOperationalStoreParameter AzureOperationalStoreParameters - err := azureOperationalStoreParameter.AssignProperties_From_AzureOperationalStoreParameters(source.AzureOperationalStoreParameters) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_AzureOperationalStoreParameters() to populate field AzureOperationalStoreParameters") - } - parameters.AzureOperationalStoreParameters = &azureOperationalStoreParameter - } else { - parameters.AzureOperationalStoreParameters = nil - } - - // No error - return nil -} - -// AssignProperties_To_DataStoreParameters populates the provided destination DataStoreParameters from our DataStoreParameters -func (parameters *DataStoreParameters) AssignProperties_To_DataStoreParameters(destination *v20230101s.DataStoreParameters) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // AzureOperationalStoreParameters - if parameters.AzureOperationalStoreParameters != nil { - var azureOperationalStoreParameter v20230101s.AzureOperationalStoreParameters - err := parameters.AzureOperationalStoreParameters.AssignProperties_To_AzureOperationalStoreParameters(&azureOperationalStoreParameter) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_AzureOperationalStoreParameters() to populate field AzureOperationalStoreParameters") - } - destination.AzureOperationalStoreParameters = &azureOperationalStoreParameter - } else { - destination.AzureOperationalStoreParameters = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -type DataStoreParameters_STATUS struct { - // AzureOperationalStoreParameters: Mutually exclusive with all other properties - AzureOperationalStoreParameters *AzureOperationalStoreParameters_STATUS `json:"azureOperationalStoreParameters,omitempty"` -} - -var _ genruntime.FromARMConverter = &DataStoreParameters_STATUS{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (parameters *DataStoreParameters_STATUS) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &DataStoreParameters_STATUS_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (parameters *DataStoreParameters_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(DataStoreParameters_STATUS_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected DataStoreParameters_STATUS_ARM, got %T", armInput) - } - - // Set property "AzureOperationalStoreParameters": - if typedInput.AzureOperationalStoreParameters != nil { - var azureOperationalStoreParameters1 AzureOperationalStoreParameters_STATUS - err := azureOperationalStoreParameters1.PopulateFromARM(owner, *typedInput.AzureOperationalStoreParameters) - if err != nil { - return err - } - azureOperationalStoreParameters := azureOperationalStoreParameters1 - parameters.AzureOperationalStoreParameters = &azureOperationalStoreParameters - } - - // No error - return nil -} - -// AssignProperties_From_DataStoreParameters_STATUS populates our DataStoreParameters_STATUS from the provided source DataStoreParameters_STATUS -func (parameters *DataStoreParameters_STATUS) AssignProperties_From_DataStoreParameters_STATUS(source *v20230101s.DataStoreParameters_STATUS) error { - - // AzureOperationalStoreParameters - if source.AzureOperationalStoreParameters != nil { - var azureOperationalStoreParameter AzureOperationalStoreParameters_STATUS - err := azureOperationalStoreParameter.AssignProperties_From_AzureOperationalStoreParameters_STATUS(source.AzureOperationalStoreParameters) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_AzureOperationalStoreParameters_STATUS() to populate field AzureOperationalStoreParameters") - } - parameters.AzureOperationalStoreParameters = &azureOperationalStoreParameter - } else { - parameters.AzureOperationalStoreParameters = nil - } - - // No error - return nil -} - -// AssignProperties_To_DataStoreParameters_STATUS populates the provided destination DataStoreParameters_STATUS from our DataStoreParameters_STATUS -func (parameters *DataStoreParameters_STATUS) AssignProperties_To_DataStoreParameters_STATUS(destination *v20230101s.DataStoreParameters_STATUS) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // AzureOperationalStoreParameters - if parameters.AzureOperationalStoreParameters != nil { - var azureOperationalStoreParameter v20230101s.AzureOperationalStoreParameters_STATUS - err := parameters.AzureOperationalStoreParameters.AssignProperties_To_AzureOperationalStoreParameters_STATUS(&azureOperationalStoreParameter) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_AzureOperationalStoreParameters_STATUS() to populate field AzureOperationalStoreParameters") - } - destination.AzureOperationalStoreParameters = &azureOperationalStoreParameter - } else { - destination.AzureOperationalStoreParameters = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -type InnerError_STATUS_Unrolled struct { - // AdditionalInfo: Any Key value pairs that can be provided to the client for additional verbose information. - AdditionalInfo map[string]string `json:"additionalInfo,omitempty"` - - // Code: Unique code for this error - Code *string `json:"code,omitempty"` -} - -var _ genruntime.FromARMConverter = &InnerError_STATUS_Unrolled{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (unrolled *InnerError_STATUS_Unrolled) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &InnerError_STATUS_Unrolled_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (unrolled *InnerError_STATUS_Unrolled) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(InnerError_STATUS_Unrolled_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected InnerError_STATUS_Unrolled_ARM, got %T", armInput) - } - - // Set property "AdditionalInfo": - if typedInput.AdditionalInfo != nil { - unrolled.AdditionalInfo = make(map[string]string, len(typedInput.AdditionalInfo)) - for key, value := range typedInput.AdditionalInfo { - unrolled.AdditionalInfo[key] = value - } - } - - // Set property "Code": - if typedInput.Code != nil { - code := *typedInput.Code - unrolled.Code = &code - } - - // No error - return nil -} - -// AssignProperties_From_InnerError_STATUS_Unrolled populates our InnerError_STATUS_Unrolled from the provided source InnerError_STATUS_Unrolled -func (unrolled *InnerError_STATUS_Unrolled) AssignProperties_From_InnerError_STATUS_Unrolled(source *v20230101s.InnerError_STATUS_Unrolled) error { - - // AdditionalInfo - unrolled.AdditionalInfo = genruntime.CloneMapOfStringToString(source.AdditionalInfo) - - // Code - unrolled.Code = genruntime.ClonePointerToString(source.Code) - - // No error - return nil -} - -// AssignProperties_To_InnerError_STATUS_Unrolled populates the provided destination InnerError_STATUS_Unrolled from our InnerError_STATUS_Unrolled -func (unrolled *InnerError_STATUS_Unrolled) AssignProperties_To_InnerError_STATUS_Unrolled(destination *v20230101s.InnerError_STATUS_Unrolled) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // AdditionalInfo - destination.AdditionalInfo = genruntime.CloneMapOfStringToString(unrolled.AdditionalInfo) - - // Code - destination.Code = genruntime.ClonePointerToString(unrolled.Code) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -// Class representing a secret store resource. -type SecretStoreResource struct { - // +kubebuilder:validation:Required - // SecretStoreType: Gets or sets the type of secret store - SecretStoreType *SecretStoreResource_SecretStoreType `json:"secretStoreType,omitempty"` - - // Uri: Uri to get to the resource - Uri *string `json:"uri,omitempty"` - - // Value: Gets or sets value stored in secret store resource - Value *string `json:"value,omitempty"` -} - -var _ genruntime.ARMTransformer = &SecretStoreResource{} - -// ConvertToARM converts from a Kubernetes CRD object to an ARM object -func (resource *SecretStoreResource) ConvertToARM(resolved genruntime.ConvertToARMResolvedDetails) (interface{}, error) { - if resource == nil { - return nil, nil - } - result := &SecretStoreResource_ARM{} - - // Set property "SecretStoreType": - if resource.SecretStoreType != nil { - secretStoreType := *resource.SecretStoreType - result.SecretStoreType = &secretStoreType - } - - // Set property "Uri": - if resource.Uri != nil { - uri := *resource.Uri - result.Uri = &uri - } - - // Set property "Value": - if resource.Value != nil { - value := *resource.Value - result.Value = &value - } - return result, nil -} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (resource *SecretStoreResource) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &SecretStoreResource_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (resource *SecretStoreResource) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(SecretStoreResource_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected SecretStoreResource_ARM, got %T", armInput) - } - - // Set property "SecretStoreType": - if typedInput.SecretStoreType != nil { - secretStoreType := *typedInput.SecretStoreType - resource.SecretStoreType = &secretStoreType - } - - // Set property "Uri": - if typedInput.Uri != nil { - uri := *typedInput.Uri - resource.Uri = &uri - } - - // Set property "Value": - if typedInput.Value != nil { - value := *typedInput.Value - resource.Value = &value - } - - // No error - return nil -} - -// AssignProperties_From_SecretStoreResource populates our SecretStoreResource from the provided source SecretStoreResource -func (resource *SecretStoreResource) AssignProperties_From_SecretStoreResource(source *v20230101s.SecretStoreResource) error { - - // SecretStoreType - if source.SecretStoreType != nil { - secretStoreType := SecretStoreResource_SecretStoreType(*source.SecretStoreType) - resource.SecretStoreType = &secretStoreType - } else { - resource.SecretStoreType = nil - } - - // Uri - resource.Uri = genruntime.ClonePointerToString(source.Uri) - - // Value - resource.Value = genruntime.ClonePointerToString(source.Value) - - // No error - return nil -} - -// AssignProperties_To_SecretStoreResource populates the provided destination SecretStoreResource from our SecretStoreResource -func (resource *SecretStoreResource) AssignProperties_To_SecretStoreResource(destination *v20230101s.SecretStoreResource) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // SecretStoreType - if resource.SecretStoreType != nil { - secretStoreType := string(*resource.SecretStoreType) - destination.SecretStoreType = &secretStoreType - } else { - destination.SecretStoreType = nil - } - - // Uri - destination.Uri = genruntime.ClonePointerToString(resource.Uri) - - // Value - destination.Value = genruntime.ClonePointerToString(resource.Value) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -// Class representing a secret store resource. -type SecretStoreResource_STATUS struct { - // SecretStoreType: Gets or sets the type of secret store - SecretStoreType *SecretStoreResource_SecretStoreType_STATUS `json:"secretStoreType,omitempty"` - - // Uri: Uri to get to the resource - Uri *string `json:"uri,omitempty"` - - // Value: Gets or sets value stored in secret store resource - Value *string `json:"value,omitempty"` -} - -var _ genruntime.FromARMConverter = &SecretStoreResource_STATUS{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (resource *SecretStoreResource_STATUS) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &SecretStoreResource_STATUS_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (resource *SecretStoreResource_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(SecretStoreResource_STATUS_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected SecretStoreResource_STATUS_ARM, got %T", armInput) - } - - // Set property "SecretStoreType": - if typedInput.SecretStoreType != nil { - secretStoreType := *typedInput.SecretStoreType - resource.SecretStoreType = &secretStoreType - } - - // Set property "Uri": - if typedInput.Uri != nil { - uri := *typedInput.Uri - resource.Uri = &uri - } - - // Set property "Value": - if typedInput.Value != nil { - value := *typedInput.Value - resource.Value = &value - } - - // No error - return nil -} - -// AssignProperties_From_SecretStoreResource_STATUS populates our SecretStoreResource_STATUS from the provided source SecretStoreResource_STATUS -func (resource *SecretStoreResource_STATUS) AssignProperties_From_SecretStoreResource_STATUS(source *v20230101s.SecretStoreResource_STATUS) error { - - // SecretStoreType - if source.SecretStoreType != nil { - secretStoreType := SecretStoreResource_SecretStoreType_STATUS(*source.SecretStoreType) - resource.SecretStoreType = &secretStoreType - } else { - resource.SecretStoreType = nil - } - - // Uri - resource.Uri = genruntime.ClonePointerToString(source.Uri) - - // Value - resource.Value = genruntime.ClonePointerToString(source.Value) - - // No error - return nil -} - -// AssignProperties_To_SecretStoreResource_STATUS populates the provided destination SecretStoreResource_STATUS from our SecretStoreResource_STATUS -func (resource *SecretStoreResource_STATUS) AssignProperties_To_SecretStoreResource_STATUS(destination *v20230101s.SecretStoreResource_STATUS) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // SecretStoreType - if resource.SecretStoreType != nil { - secretStoreType := string(*resource.SecretStoreType) - destination.SecretStoreType = &secretStoreType - } else { - destination.SecretStoreType = nil - } - - // Uri - destination.Uri = genruntime.ClonePointerToString(resource.Uri) - - // Value - destination.Value = genruntime.ClonePointerToString(resource.Value) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -type AzureOperationalStoreParameters struct { - // +kubebuilder:validation:Required - // DataStoreType: type of datastore; Operational/Vault/Archive - DataStoreType *AzureOperationalStoreParameters_DataStoreType `json:"dataStoreType,omitempty"` - - // +kubebuilder:validation:Required - // ObjectType: Type of the specific object - used for deserializing - ObjectType *AzureOperationalStoreParameters_ObjectType `json:"objectType,omitempty"` - - // ResourceGroupId: Gets or sets the Snapshot Resource Group Uri. - ResourceGroupId *string `json:"resourceGroupId,omitempty"` -} - -var _ genruntime.ARMTransformer = &AzureOperationalStoreParameters{} - -// ConvertToARM converts from a Kubernetes CRD object to an ARM object -func (parameters *AzureOperationalStoreParameters) ConvertToARM(resolved genruntime.ConvertToARMResolvedDetails) (interface{}, error) { - if parameters == nil { - return nil, nil - } - result := &AzureOperationalStoreParameters_ARM{} - - // Set property "DataStoreType": - if parameters.DataStoreType != nil { - dataStoreType := *parameters.DataStoreType - result.DataStoreType = &dataStoreType - } - - // Set property "ObjectType": - if parameters.ObjectType != nil { - result.ObjectType = *parameters.ObjectType - } - - // Set property "ResourceGroupId": - if parameters.ResourceGroupId != nil { - resourceGroupId := *parameters.ResourceGroupId - result.ResourceGroupId = &resourceGroupId - } - return result, nil -} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (parameters *AzureOperationalStoreParameters) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &AzureOperationalStoreParameters_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (parameters *AzureOperationalStoreParameters) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(AzureOperationalStoreParameters_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected AzureOperationalStoreParameters_ARM, got %T", armInput) - } - - // Set property "DataStoreType": - if typedInput.DataStoreType != nil { - dataStoreType := *typedInput.DataStoreType - parameters.DataStoreType = &dataStoreType - } - - // Set property "ObjectType": - parameters.ObjectType = &typedInput.ObjectType - - // Set property "ResourceGroupId": - if typedInput.ResourceGroupId != nil { - resourceGroupId := *typedInput.ResourceGroupId - parameters.ResourceGroupId = &resourceGroupId - } - - // No error - return nil -} - -// AssignProperties_From_AzureOperationalStoreParameters populates our AzureOperationalStoreParameters from the provided source AzureOperationalStoreParameters -func (parameters *AzureOperationalStoreParameters) AssignProperties_From_AzureOperationalStoreParameters(source *v20230101s.AzureOperationalStoreParameters) error { - - // DataStoreType - if source.DataStoreType != nil { - dataStoreType := AzureOperationalStoreParameters_DataStoreType(*source.DataStoreType) - parameters.DataStoreType = &dataStoreType - } else { - parameters.DataStoreType = nil - } - - // ObjectType - if source.ObjectType != nil { - objectType := AzureOperationalStoreParameters_ObjectType(*source.ObjectType) - parameters.ObjectType = &objectType - } else { - parameters.ObjectType = nil - } - - // ResourceGroupId - parameters.ResourceGroupId = genruntime.ClonePointerToString(source.ResourceGroupId) - - // No error - return nil -} - -// AssignProperties_To_AzureOperationalStoreParameters populates the provided destination AzureOperationalStoreParameters from our AzureOperationalStoreParameters -func (parameters *AzureOperationalStoreParameters) AssignProperties_To_AzureOperationalStoreParameters(destination *v20230101s.AzureOperationalStoreParameters) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // DataStoreType - if parameters.DataStoreType != nil { - dataStoreType := string(*parameters.DataStoreType) - destination.DataStoreType = &dataStoreType - } else { - destination.DataStoreType = nil - } - - // ObjectType - if parameters.ObjectType != nil { - objectType := string(*parameters.ObjectType) - destination.ObjectType = &objectType - } else { - destination.ObjectType = nil - } - - // ResourceGroupId - destination.ResourceGroupId = genruntime.ClonePointerToString(parameters.ResourceGroupId) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -type AzureOperationalStoreParameters_STATUS struct { - // DataStoreType: type of datastore; Operational/Vault/Archive - DataStoreType *AzureOperationalStoreParameters_DataStoreType_STATUS `json:"dataStoreType,omitempty"` - - // ObjectType: Type of the specific object - used for deserializing - ObjectType *AzureOperationalStoreParameters_ObjectType_STATUS `json:"objectType,omitempty"` - - // ResourceGroupId: Gets or sets the Snapshot Resource Group Uri. - ResourceGroupId *string `json:"resourceGroupId,omitempty"` -} - -var _ genruntime.FromARMConverter = &AzureOperationalStoreParameters_STATUS{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (parameters *AzureOperationalStoreParameters_STATUS) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &AzureOperationalStoreParameters_STATUS_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (parameters *AzureOperationalStoreParameters_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(AzureOperationalStoreParameters_STATUS_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected AzureOperationalStoreParameters_STATUS_ARM, got %T", armInput) - } - - // Set property "DataStoreType": - if typedInput.DataStoreType != nil { - dataStoreType := *typedInput.DataStoreType - parameters.DataStoreType = &dataStoreType - } - - // Set property "ObjectType": - parameters.ObjectType = &typedInput.ObjectType - - // Set property "ResourceGroupId": - if typedInput.ResourceGroupId != nil { - resourceGroupId := *typedInput.ResourceGroupId - parameters.ResourceGroupId = &resourceGroupId - } - - // No error - return nil -} - -// AssignProperties_From_AzureOperationalStoreParameters_STATUS populates our AzureOperationalStoreParameters_STATUS from the provided source AzureOperationalStoreParameters_STATUS -func (parameters *AzureOperationalStoreParameters_STATUS) AssignProperties_From_AzureOperationalStoreParameters_STATUS(source *v20230101s.AzureOperationalStoreParameters_STATUS) error { - - // DataStoreType - if source.DataStoreType != nil { - dataStoreType := AzureOperationalStoreParameters_DataStoreType_STATUS(*source.DataStoreType) - parameters.DataStoreType = &dataStoreType - } else { - parameters.DataStoreType = nil - } - - // ObjectType - if source.ObjectType != nil { - objectType := AzureOperationalStoreParameters_ObjectType_STATUS(*source.ObjectType) - parameters.ObjectType = &objectType - } else { - parameters.ObjectType = nil - } - - // ResourceGroupId - parameters.ResourceGroupId = genruntime.ClonePointerToString(source.ResourceGroupId) - - // No error - return nil -} - -// AssignProperties_To_AzureOperationalStoreParameters_STATUS populates the provided destination AzureOperationalStoreParameters_STATUS from our AzureOperationalStoreParameters_STATUS -func (parameters *AzureOperationalStoreParameters_STATUS) AssignProperties_To_AzureOperationalStoreParameters_STATUS(destination *v20230101s.AzureOperationalStoreParameters_STATUS) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // DataStoreType - if parameters.DataStoreType != nil { - dataStoreType := string(*parameters.DataStoreType) - destination.DataStoreType = &dataStoreType - } else { - destination.DataStoreType = nil - } - - // ObjectType - if parameters.ObjectType != nil { - objectType := string(*parameters.ObjectType) - destination.ObjectType = &objectType - } else { - destination.ObjectType = nil - } - - // ResourceGroupId - destination.ResourceGroupId = genruntime.ClonePointerToString(parameters.ResourceGroupId) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -type BlobBackupDatasourceParameters struct { - // +kubebuilder:validation:Required - // ContainersList: List of containers to be backed up during configuration of backup of blobs - ContainersList []string `json:"containersList,omitempty"` - - // +kubebuilder:validation:Required - // ObjectType: Type of the specific object - used for deserializing - ObjectType *BlobBackupDatasourceParameters_ObjectType `json:"objectType,omitempty"` -} - -var _ genruntime.ARMTransformer = &BlobBackupDatasourceParameters{} - -// ConvertToARM converts from a Kubernetes CRD object to an ARM object -func (parameters *BlobBackupDatasourceParameters) ConvertToARM(resolved genruntime.ConvertToARMResolvedDetails) (interface{}, error) { - if parameters == nil { - return nil, nil - } - result := &BlobBackupDatasourceParameters_ARM{} - - // Set property "ContainersList": - for _, item := range parameters.ContainersList { - result.ContainersList = append(result.ContainersList, item) - } - - // Set property "ObjectType": - if parameters.ObjectType != nil { - result.ObjectType = *parameters.ObjectType - } - return result, nil -} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (parameters *BlobBackupDatasourceParameters) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &BlobBackupDatasourceParameters_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (parameters *BlobBackupDatasourceParameters) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(BlobBackupDatasourceParameters_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected BlobBackupDatasourceParameters_ARM, got %T", armInput) - } - - // Set property "ContainersList": - for _, item := range typedInput.ContainersList { - parameters.ContainersList = append(parameters.ContainersList, item) - } - - // Set property "ObjectType": - parameters.ObjectType = &typedInput.ObjectType - - // No error - return nil -} - -// AssignProperties_From_BlobBackupDatasourceParameters populates our BlobBackupDatasourceParameters from the provided source BlobBackupDatasourceParameters -func (parameters *BlobBackupDatasourceParameters) AssignProperties_From_BlobBackupDatasourceParameters(source *v20230101s.BlobBackupDatasourceParameters) error { - - // ContainersList - parameters.ContainersList = genruntime.CloneSliceOfString(source.ContainersList) - - // ObjectType - if source.ObjectType != nil { - objectType := BlobBackupDatasourceParameters_ObjectType(*source.ObjectType) - parameters.ObjectType = &objectType - } else { - parameters.ObjectType = nil - } - - // No error - return nil -} - -// AssignProperties_To_BlobBackupDatasourceParameters populates the provided destination BlobBackupDatasourceParameters from our BlobBackupDatasourceParameters -func (parameters *BlobBackupDatasourceParameters) AssignProperties_To_BlobBackupDatasourceParameters(destination *v20230101s.BlobBackupDatasourceParameters) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // ContainersList - destination.ContainersList = genruntime.CloneSliceOfString(parameters.ContainersList) - - // ObjectType - if parameters.ObjectType != nil { - objectType := string(*parameters.ObjectType) - destination.ObjectType = &objectType - } else { - destination.ObjectType = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -type BlobBackupDatasourceParameters_STATUS struct { - // ContainersList: List of containers to be backed up during configuration of backup of blobs - ContainersList []string `json:"containersList,omitempty"` - - // ObjectType: Type of the specific object - used for deserializing - ObjectType *BlobBackupDatasourceParameters_ObjectType_STATUS `json:"objectType,omitempty"` -} - -var _ genruntime.FromARMConverter = &BlobBackupDatasourceParameters_STATUS{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (parameters *BlobBackupDatasourceParameters_STATUS) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &BlobBackupDatasourceParameters_STATUS_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (parameters *BlobBackupDatasourceParameters_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(BlobBackupDatasourceParameters_STATUS_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected BlobBackupDatasourceParameters_STATUS_ARM, got %T", armInput) - } - - // Set property "ContainersList": - for _, item := range typedInput.ContainersList { - parameters.ContainersList = append(parameters.ContainersList, item) - } - - // Set property "ObjectType": - parameters.ObjectType = &typedInput.ObjectType - - // No error - return nil -} - -// AssignProperties_From_BlobBackupDatasourceParameters_STATUS populates our BlobBackupDatasourceParameters_STATUS from the provided source BlobBackupDatasourceParameters_STATUS -func (parameters *BlobBackupDatasourceParameters_STATUS) AssignProperties_From_BlobBackupDatasourceParameters_STATUS(source *v20230101s.BlobBackupDatasourceParameters_STATUS) error { - - // ContainersList - parameters.ContainersList = genruntime.CloneSliceOfString(source.ContainersList) - - // ObjectType - if source.ObjectType != nil { - objectType := BlobBackupDatasourceParameters_ObjectType_STATUS(*source.ObjectType) - parameters.ObjectType = &objectType - } else { - parameters.ObjectType = nil - } - - // No error - return nil -} - -// AssignProperties_To_BlobBackupDatasourceParameters_STATUS populates the provided destination BlobBackupDatasourceParameters_STATUS from our BlobBackupDatasourceParameters_STATUS -func (parameters *BlobBackupDatasourceParameters_STATUS) AssignProperties_To_BlobBackupDatasourceParameters_STATUS(destination *v20230101s.BlobBackupDatasourceParameters_STATUS) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // ContainersList - destination.ContainersList = genruntime.CloneSliceOfString(parameters.ContainersList) - - // ObjectType - if parameters.ObjectType != nil { - objectType := string(*parameters.ObjectType) - destination.ObjectType = &objectType - } else { - destination.ObjectType = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -type KubernetesClusterBackupDatasourceParameters struct { - // ExcludedNamespaces: Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded - // during restore. - ExcludedNamespaces []string `json:"excludedNamespaces,omitempty"` - - // ExcludedResourceTypes: Gets or sets the exclude resource types property. This property sets the resource types to be - // excluded during restore. - ExcludedResourceTypes []string `json:"excludedResourceTypes,omitempty"` - - // +kubebuilder:validation:Required - // IncludeClusterScopeResources: Gets or sets the include cluster resources property. This property if enabled will include - // cluster scope resources during restore. - IncludeClusterScopeResources *bool `json:"includeClusterScopeResources,omitempty"` - - // IncludedNamespaces: Gets or sets the include namespaces property. This property sets the namespaces to be included - // during restore. - IncludedNamespaces []string `json:"includedNamespaces,omitempty"` - - // IncludedResourceTypes: Gets or sets the include resource types property. This property sets the resource types to be - // included during restore. - IncludedResourceTypes []string `json:"includedResourceTypes,omitempty"` - - // LabelSelectors: Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to - // be included during restore. - LabelSelectors []string `json:"labelSelectors,omitempty"` - - // +kubebuilder:validation:Required - // ObjectType: Type of the specific object - used for deserializing - ObjectType *KubernetesClusterBackupDatasourceParameters_ObjectType `json:"objectType,omitempty"` - - // +kubebuilder:validation:Required - // SnapshotVolumes: Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during - // restore. - SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` -} - -var _ genruntime.ARMTransformer = &KubernetesClusterBackupDatasourceParameters{} - -// ConvertToARM converts from a Kubernetes CRD object to an ARM object -func (parameters *KubernetesClusterBackupDatasourceParameters) ConvertToARM(resolved genruntime.ConvertToARMResolvedDetails) (interface{}, error) { - if parameters == nil { - return nil, nil - } - result := &KubernetesClusterBackupDatasourceParameters_ARM{} - - // Set property "ExcludedNamespaces": - for _, item := range parameters.ExcludedNamespaces { - result.ExcludedNamespaces = append(result.ExcludedNamespaces, item) - } - - // Set property "ExcludedResourceTypes": - for _, item := range parameters.ExcludedResourceTypes { - result.ExcludedResourceTypes = append(result.ExcludedResourceTypes, item) - } - - // Set property "IncludeClusterScopeResources": - if parameters.IncludeClusterScopeResources != nil { - includeClusterScopeResources := *parameters.IncludeClusterScopeResources - result.IncludeClusterScopeResources = &includeClusterScopeResources - } - - // Set property "IncludedNamespaces": - for _, item := range parameters.IncludedNamespaces { - result.IncludedNamespaces = append(result.IncludedNamespaces, item) - } - - // Set property "IncludedResourceTypes": - for _, item := range parameters.IncludedResourceTypes { - result.IncludedResourceTypes = append(result.IncludedResourceTypes, item) - } - - // Set property "LabelSelectors": - for _, item := range parameters.LabelSelectors { - result.LabelSelectors = append(result.LabelSelectors, item) - } - - // Set property "ObjectType": - if parameters.ObjectType != nil { - result.ObjectType = *parameters.ObjectType - } - - // Set property "SnapshotVolumes": - if parameters.SnapshotVolumes != nil { - snapshotVolumes := *parameters.SnapshotVolumes - result.SnapshotVolumes = &snapshotVolumes - } - return result, nil -} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (parameters *KubernetesClusterBackupDatasourceParameters) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &KubernetesClusterBackupDatasourceParameters_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (parameters *KubernetesClusterBackupDatasourceParameters) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(KubernetesClusterBackupDatasourceParameters_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected KubernetesClusterBackupDatasourceParameters_ARM, got %T", armInput) - } - - // Set property "ExcludedNamespaces": - for _, item := range typedInput.ExcludedNamespaces { - parameters.ExcludedNamespaces = append(parameters.ExcludedNamespaces, item) - } - - // Set property "ExcludedResourceTypes": - for _, item := range typedInput.ExcludedResourceTypes { - parameters.ExcludedResourceTypes = append(parameters.ExcludedResourceTypes, item) - } - - // Set property "IncludeClusterScopeResources": - if typedInput.IncludeClusterScopeResources != nil { - includeClusterScopeResources := *typedInput.IncludeClusterScopeResources - parameters.IncludeClusterScopeResources = &includeClusterScopeResources - } - - // Set property "IncludedNamespaces": - for _, item := range typedInput.IncludedNamespaces { - parameters.IncludedNamespaces = append(parameters.IncludedNamespaces, item) - } - - // Set property "IncludedResourceTypes": - for _, item := range typedInput.IncludedResourceTypes { - parameters.IncludedResourceTypes = append(parameters.IncludedResourceTypes, item) - } - - // Set property "LabelSelectors": - for _, item := range typedInput.LabelSelectors { - parameters.LabelSelectors = append(parameters.LabelSelectors, item) - } - - // Set property "ObjectType": - parameters.ObjectType = &typedInput.ObjectType - - // Set property "SnapshotVolumes": - if typedInput.SnapshotVolumes != nil { - snapshotVolumes := *typedInput.SnapshotVolumes - parameters.SnapshotVolumes = &snapshotVolumes - } - - // No error - return nil -} - -// AssignProperties_From_KubernetesClusterBackupDatasourceParameters populates our KubernetesClusterBackupDatasourceParameters from the provided source KubernetesClusterBackupDatasourceParameters -func (parameters *KubernetesClusterBackupDatasourceParameters) AssignProperties_From_KubernetesClusterBackupDatasourceParameters(source *v20230101s.KubernetesClusterBackupDatasourceParameters) error { - - // ExcludedNamespaces - parameters.ExcludedNamespaces = genruntime.CloneSliceOfString(source.ExcludedNamespaces) - - // ExcludedResourceTypes - parameters.ExcludedResourceTypes = genruntime.CloneSliceOfString(source.ExcludedResourceTypes) - - // IncludeClusterScopeResources - if source.IncludeClusterScopeResources != nil { - includeClusterScopeResource := *source.IncludeClusterScopeResources - parameters.IncludeClusterScopeResources = &includeClusterScopeResource - } else { - parameters.IncludeClusterScopeResources = nil - } - - // IncludedNamespaces - parameters.IncludedNamespaces = genruntime.CloneSliceOfString(source.IncludedNamespaces) - - // IncludedResourceTypes - parameters.IncludedResourceTypes = genruntime.CloneSliceOfString(source.IncludedResourceTypes) - - // LabelSelectors - parameters.LabelSelectors = genruntime.CloneSliceOfString(source.LabelSelectors) - - // ObjectType - if source.ObjectType != nil { - objectType := KubernetesClusterBackupDatasourceParameters_ObjectType(*source.ObjectType) - parameters.ObjectType = &objectType - } else { - parameters.ObjectType = nil - } - - // SnapshotVolumes - if source.SnapshotVolumes != nil { - snapshotVolume := *source.SnapshotVolumes - parameters.SnapshotVolumes = &snapshotVolume - } else { - parameters.SnapshotVolumes = nil - } - - // No error - return nil -} - -// AssignProperties_To_KubernetesClusterBackupDatasourceParameters populates the provided destination KubernetesClusterBackupDatasourceParameters from our KubernetesClusterBackupDatasourceParameters -func (parameters *KubernetesClusterBackupDatasourceParameters) AssignProperties_To_KubernetesClusterBackupDatasourceParameters(destination *v20230101s.KubernetesClusterBackupDatasourceParameters) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // ExcludedNamespaces - destination.ExcludedNamespaces = genruntime.CloneSliceOfString(parameters.ExcludedNamespaces) - - // ExcludedResourceTypes - destination.ExcludedResourceTypes = genruntime.CloneSliceOfString(parameters.ExcludedResourceTypes) - - // IncludeClusterScopeResources - if parameters.IncludeClusterScopeResources != nil { - includeClusterScopeResource := *parameters.IncludeClusterScopeResources - destination.IncludeClusterScopeResources = &includeClusterScopeResource - } else { - destination.IncludeClusterScopeResources = nil - } - - // IncludedNamespaces - destination.IncludedNamespaces = genruntime.CloneSliceOfString(parameters.IncludedNamespaces) - - // IncludedResourceTypes - destination.IncludedResourceTypes = genruntime.CloneSliceOfString(parameters.IncludedResourceTypes) - - // LabelSelectors - destination.LabelSelectors = genruntime.CloneSliceOfString(parameters.LabelSelectors) - - // ObjectType - if parameters.ObjectType != nil { - objectType := string(*parameters.ObjectType) - destination.ObjectType = &objectType - } else { - destination.ObjectType = nil - } - - // SnapshotVolumes - if parameters.SnapshotVolumes != nil { - snapshotVolume := *parameters.SnapshotVolumes - destination.SnapshotVolumes = &snapshotVolume - } else { - destination.SnapshotVolumes = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -type KubernetesClusterBackupDatasourceParameters_STATUS struct { - // ExcludedNamespaces: Gets or sets the exclude namespaces property. This property sets the namespaces to be excluded - // during restore. - ExcludedNamespaces []string `json:"excludedNamespaces,omitempty"` - - // ExcludedResourceTypes: Gets or sets the exclude resource types property. This property sets the resource types to be - // excluded during restore. - ExcludedResourceTypes []string `json:"excludedResourceTypes,omitempty"` - - // IncludeClusterScopeResources: Gets or sets the include cluster resources property. This property if enabled will include - // cluster scope resources during restore. - IncludeClusterScopeResources *bool `json:"includeClusterScopeResources,omitempty"` - - // IncludedNamespaces: Gets or sets the include namespaces property. This property sets the namespaces to be included - // during restore. - IncludedNamespaces []string `json:"includedNamespaces,omitempty"` - - // IncludedResourceTypes: Gets or sets the include resource types property. This property sets the resource types to be - // included during restore. - IncludedResourceTypes []string `json:"includedResourceTypes,omitempty"` - - // LabelSelectors: Gets or sets the LabelSelectors property. This property sets the resource with such label selectors to - // be included during restore. - LabelSelectors []string `json:"labelSelectors,omitempty"` - - // ObjectType: Type of the specific object - used for deserializing - ObjectType *KubernetesClusterBackupDatasourceParameters_ObjectType_STATUS `json:"objectType,omitempty"` - - // SnapshotVolumes: Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during - // restore. - SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` -} - -var _ genruntime.FromARMConverter = &KubernetesClusterBackupDatasourceParameters_STATUS{} - -// NewEmptyARMValue returns an empty ARM value suitable for deserializing into -func (parameters *KubernetesClusterBackupDatasourceParameters_STATUS) NewEmptyARMValue() genruntime.ARMResourceStatus { - return &KubernetesClusterBackupDatasourceParameters_STATUS_ARM{} -} - -// PopulateFromARM populates a Kubernetes CRD object from an Azure ARM object -func (parameters *KubernetesClusterBackupDatasourceParameters_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInput interface{}) error { - typedInput, ok := armInput.(KubernetesClusterBackupDatasourceParameters_STATUS_ARM) - if !ok { - return fmt.Errorf("unexpected type supplied for PopulateFromARM() function. Expected KubernetesClusterBackupDatasourceParameters_STATUS_ARM, got %T", armInput) - } - - // Set property "ExcludedNamespaces": - for _, item := range typedInput.ExcludedNamespaces { - parameters.ExcludedNamespaces = append(parameters.ExcludedNamespaces, item) - } - - // Set property "ExcludedResourceTypes": - for _, item := range typedInput.ExcludedResourceTypes { - parameters.ExcludedResourceTypes = append(parameters.ExcludedResourceTypes, item) - } - - // Set property "IncludeClusterScopeResources": - if typedInput.IncludeClusterScopeResources != nil { - includeClusterScopeResources := *typedInput.IncludeClusterScopeResources - parameters.IncludeClusterScopeResources = &includeClusterScopeResources - } - - // Set property "IncludedNamespaces": - for _, item := range typedInput.IncludedNamespaces { - parameters.IncludedNamespaces = append(parameters.IncludedNamespaces, item) - } - - // Set property "IncludedResourceTypes": - for _, item := range typedInput.IncludedResourceTypes { - parameters.IncludedResourceTypes = append(parameters.IncludedResourceTypes, item) - } - - // Set property "LabelSelectors": - for _, item := range typedInput.LabelSelectors { - parameters.LabelSelectors = append(parameters.LabelSelectors, item) - } - - // Set property "ObjectType": - parameters.ObjectType = &typedInput.ObjectType - - // Set property "SnapshotVolumes": - if typedInput.SnapshotVolumes != nil { - snapshotVolumes := *typedInput.SnapshotVolumes - parameters.SnapshotVolumes = &snapshotVolumes - } - - // No error - return nil -} - -// AssignProperties_From_KubernetesClusterBackupDatasourceParameters_STATUS populates our KubernetesClusterBackupDatasourceParameters_STATUS from the provided source KubernetesClusterBackupDatasourceParameters_STATUS -func (parameters *KubernetesClusterBackupDatasourceParameters_STATUS) AssignProperties_From_KubernetesClusterBackupDatasourceParameters_STATUS(source *v20230101s.KubernetesClusterBackupDatasourceParameters_STATUS) error { - - // ExcludedNamespaces - parameters.ExcludedNamespaces = genruntime.CloneSliceOfString(source.ExcludedNamespaces) - - // ExcludedResourceTypes - parameters.ExcludedResourceTypes = genruntime.CloneSliceOfString(source.ExcludedResourceTypes) - - // IncludeClusterScopeResources - if source.IncludeClusterScopeResources != nil { - includeClusterScopeResource := *source.IncludeClusterScopeResources - parameters.IncludeClusterScopeResources = &includeClusterScopeResource - } else { - parameters.IncludeClusterScopeResources = nil - } - - // IncludedNamespaces - parameters.IncludedNamespaces = genruntime.CloneSliceOfString(source.IncludedNamespaces) - - // IncludedResourceTypes - parameters.IncludedResourceTypes = genruntime.CloneSliceOfString(source.IncludedResourceTypes) - - // LabelSelectors - parameters.LabelSelectors = genruntime.CloneSliceOfString(source.LabelSelectors) - - // ObjectType - if source.ObjectType != nil { - objectType := KubernetesClusterBackupDatasourceParameters_ObjectType_STATUS(*source.ObjectType) - parameters.ObjectType = &objectType - } else { - parameters.ObjectType = nil - } - - // SnapshotVolumes - if source.SnapshotVolumes != nil { - snapshotVolume := *source.SnapshotVolumes - parameters.SnapshotVolumes = &snapshotVolume - } else { - parameters.SnapshotVolumes = nil - } - - // No error - return nil -} - -// AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS populates the provided destination KubernetesClusterBackupDatasourceParameters_STATUS from our KubernetesClusterBackupDatasourceParameters_STATUS -func (parameters *KubernetesClusterBackupDatasourceParameters_STATUS) AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS(destination *v20230101s.KubernetesClusterBackupDatasourceParameters_STATUS) error { - // Create a new property bag - propertyBag := genruntime.NewPropertyBag() - - // ExcludedNamespaces - destination.ExcludedNamespaces = genruntime.CloneSliceOfString(parameters.ExcludedNamespaces) - - // ExcludedResourceTypes - destination.ExcludedResourceTypes = genruntime.CloneSliceOfString(parameters.ExcludedResourceTypes) - - // IncludeClusterScopeResources - if parameters.IncludeClusterScopeResources != nil { - includeClusterScopeResource := *parameters.IncludeClusterScopeResources - destination.IncludeClusterScopeResources = &includeClusterScopeResource - } else { - destination.IncludeClusterScopeResources = nil - } - - // IncludedNamespaces - destination.IncludedNamespaces = genruntime.CloneSliceOfString(parameters.IncludedNamespaces) - - // IncludedResourceTypes - destination.IncludedResourceTypes = genruntime.CloneSliceOfString(parameters.IncludedResourceTypes) - - // LabelSelectors - destination.LabelSelectors = genruntime.CloneSliceOfString(parameters.LabelSelectors) - - // ObjectType - if parameters.ObjectType != nil { - objectType := string(*parameters.ObjectType) - destination.ObjectType = &objectType - } else { - destination.ObjectType = nil - } - - // SnapshotVolumes - if parameters.SnapshotVolumes != nil { - snapshotVolume := *parameters.SnapshotVolumes - destination.SnapshotVolumes = &snapshotVolume - } else { - destination.SnapshotVolumes = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // No error - return nil -} - -func init() { - SchemeBuilder.Register(&BackupVaultsBackupInstance{}, &BackupVaultsBackupInstanceList{}) -} diff --git a/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_types_gen_test.go b/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_types_gen_test.go deleted file mode 100644 index eddd03d00ff..00000000000 --- a/v2/api/dataprotection/v1api20230101/backup_vaults_backup_instance_types_gen_test.go +++ /dev/null @@ -1,3866 +0,0 @@ -// Code generated by azure-service-operator-codegen. DO NOT EDIT. -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -package v1api20230101 - -import ( - "encoding/json" - v20230101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101/storage" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" - "github.com/google/go-cmp/cmp" - "github.com/google/go-cmp/cmp/cmpopts" - "github.com/kr/pretty" - "github.com/kylelemons/godebug/diff" - "github.com/leanovate/gopter" - "github.com/leanovate/gopter/gen" - "github.com/leanovate/gopter/prop" - "os" - "reflect" - "testing" -) - -func Test_BackupVaultsBackupInstance_WhenConvertedToHub_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - parameters.MinSuccessfulTests = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BackupVaultsBackupInstance to hub returns original", - prop.ForAll(RunResourceConversionTestForBackupVaultsBackupInstance, BackupVaultsBackupInstanceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunResourceConversionTestForBackupVaultsBackupInstance tests if a specific instance of BackupVaultsBackupInstance round trips to the hub storage version and back losslessly -func RunResourceConversionTestForBackupVaultsBackupInstance(subject BackupVaultsBackupInstance) string { - // Copy subject to make sure conversion doesn't modify it - copied := subject.DeepCopy() - - // Convert to our hub version - var hub v20231201s.BackupVaultsBackupInstance - err := copied.ConvertTo(&hub) - if err != nil { - return err.Error() - } - - // Convert from our hub version - var actual BackupVaultsBackupInstance - err = actual.ConvertFrom(&hub) - if err != nil { - return err.Error() - } - - // Compare actual with what we started with - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BackupVaultsBackupInstance_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BackupVaultsBackupInstance to BackupVaultsBackupInstance via AssignProperties_To_BackupVaultsBackupInstance & AssignProperties_From_BackupVaultsBackupInstance returns original", - prop.ForAll(RunPropertyAssignmentTestForBackupVaultsBackupInstance, BackupVaultsBackupInstanceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBackupVaultsBackupInstance tests if a specific instance of BackupVaultsBackupInstance can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBackupVaultsBackupInstance(subject BackupVaultsBackupInstance) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.BackupVaultsBackupInstance - err := copied.AssignProperties_To_BackupVaultsBackupInstance(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BackupVaultsBackupInstance - err = actual.AssignProperties_From_BackupVaultsBackupInstance(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BackupVaultsBackupInstance_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 20 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupVaultsBackupInstance via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupVaultsBackupInstance, BackupVaultsBackupInstanceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupVaultsBackupInstance runs a test to see if a specific instance of BackupVaultsBackupInstance round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupVaultsBackupInstance(subject BackupVaultsBackupInstance) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupVaultsBackupInstance - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupVaultsBackupInstance instances for property testing - lazily instantiated by -// BackupVaultsBackupInstanceGenerator() -var backupVaultsBackupInstanceGenerator gopter.Gen - -// BackupVaultsBackupInstanceGenerator returns a generator of BackupVaultsBackupInstance instances for property testing. -func BackupVaultsBackupInstanceGenerator() gopter.Gen { - if backupVaultsBackupInstanceGenerator != nil { - return backupVaultsBackupInstanceGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForBackupVaultsBackupInstance(generators) - backupVaultsBackupInstanceGenerator = gen.Struct(reflect.TypeOf(BackupVaultsBackupInstance{}), generators) - - return backupVaultsBackupInstanceGenerator -} - -// AddRelatedPropertyGeneratorsForBackupVaultsBackupInstance is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupVaultsBackupInstance(gens map[string]gopter.Gen) { - gens["Spec"] = BackupVaults_BackupInstance_SpecGenerator() - gens["Status"] = BackupVaults_BackupInstance_STATUSGenerator() -} - -func Test_BackupVaults_BackupInstance_Spec_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BackupVaults_BackupInstance_Spec to BackupVaults_BackupInstance_Spec via AssignProperties_To_BackupVaults_BackupInstance_Spec & AssignProperties_From_BackupVaults_BackupInstance_Spec returns original", - prop.ForAll(RunPropertyAssignmentTestForBackupVaults_BackupInstance_Spec, BackupVaults_BackupInstance_SpecGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBackupVaults_BackupInstance_Spec tests if a specific instance of BackupVaults_BackupInstance_Spec can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBackupVaults_BackupInstance_Spec(subject BackupVaults_BackupInstance_Spec) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.BackupVaults_BackupInstance_Spec - err := copied.AssignProperties_To_BackupVaults_BackupInstance_Spec(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BackupVaults_BackupInstance_Spec - err = actual.AssignProperties_From_BackupVaults_BackupInstance_Spec(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BackupVaults_BackupInstance_Spec_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupVaults_BackupInstance_Spec via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupVaults_BackupInstance_Spec, BackupVaults_BackupInstance_SpecGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupVaults_BackupInstance_Spec runs a test to see if a specific instance of BackupVaults_BackupInstance_Spec round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupVaults_BackupInstance_Spec(subject BackupVaults_BackupInstance_Spec) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupVaults_BackupInstance_Spec - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupVaults_BackupInstance_Spec instances for property testing - lazily instantiated by -// BackupVaults_BackupInstance_SpecGenerator() -var backupVaults_BackupInstance_SpecGenerator gopter.Gen - -// BackupVaults_BackupInstance_SpecGenerator returns a generator of BackupVaults_BackupInstance_Spec instances for property testing. -// We first initialize backupVaults_BackupInstance_SpecGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func BackupVaults_BackupInstance_SpecGenerator() gopter.Gen { - if backupVaults_BackupInstance_SpecGenerator != nil { - return backupVaults_BackupInstance_SpecGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_Spec(generators) - backupVaults_BackupInstance_SpecGenerator = gen.Struct(reflect.TypeOf(BackupVaults_BackupInstance_Spec{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_Spec(generators) - AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_Spec(generators) - backupVaults_BackupInstance_SpecGenerator = gen.Struct(reflect.TypeOf(BackupVaults_BackupInstance_Spec{}), generators) - - return backupVaults_BackupInstance_SpecGenerator -} - -// 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()) -} - -// AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_Spec is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_Spec(gens map[string]gopter.Gen) { - gens["Properties"] = gen.PtrOf(BackupInstanceGenerator()) -} - -func Test_BackupVaults_BackupInstance_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BackupVaults_BackupInstance_STATUS to BackupVaults_BackupInstance_STATUS via AssignProperties_To_BackupVaults_BackupInstance_STATUS & AssignProperties_From_BackupVaults_BackupInstance_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForBackupVaults_BackupInstance_STATUS, BackupVaults_BackupInstance_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBackupVaults_BackupInstance_STATUS tests if a specific instance of BackupVaults_BackupInstance_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBackupVaults_BackupInstance_STATUS(subject BackupVaults_BackupInstance_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.BackupVaults_BackupInstance_STATUS - err := copied.AssignProperties_To_BackupVaults_BackupInstance_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BackupVaults_BackupInstance_STATUS - err = actual.AssignProperties_From_BackupVaults_BackupInstance_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BackupVaults_BackupInstance_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupVaults_BackupInstance_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupVaults_BackupInstance_STATUS, BackupVaults_BackupInstance_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupVaults_BackupInstance_STATUS runs a test to see if a specific instance of BackupVaults_BackupInstance_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupVaults_BackupInstance_STATUS(subject BackupVaults_BackupInstance_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupVaults_BackupInstance_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupVaults_BackupInstance_STATUS instances for property testing - lazily instantiated by -// BackupVaults_BackupInstance_STATUSGenerator() -var backupVaults_BackupInstance_STATUSGenerator gopter.Gen - -// BackupVaults_BackupInstance_STATUSGenerator returns a generator of BackupVaults_BackupInstance_STATUS instances for property testing. -// We first initialize backupVaults_BackupInstance_STATUSGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func BackupVaults_BackupInstance_STATUSGenerator() gopter.Gen { - if backupVaults_BackupInstance_STATUSGenerator != nil { - return backupVaults_BackupInstance_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_STATUS(generators) - backupVaults_BackupInstance_STATUSGenerator = gen.Struct(reflect.TypeOf(BackupVaults_BackupInstance_STATUS{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_STATUS(generators) - AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_STATUS(generators) - backupVaults_BackupInstance_STATUSGenerator = gen.Struct(reflect.TypeOf(BackupVaults_BackupInstance_STATUS{}), generators) - - return backupVaults_BackupInstance_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_STATUS is a factory method for creating gopter generators -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["Type"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_STATUS(gens map[string]gopter.Gen) { - gens["Properties"] = gen.PtrOf(BackupInstance_STATUSGenerator()) - gens["SystemData"] = gen.PtrOf(SystemData_STATUSGenerator()) -} - -func Test_BackupInstance_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BackupInstance to BackupInstance via AssignProperties_To_BackupInstance & AssignProperties_From_BackupInstance returns original", - prop.ForAll(RunPropertyAssignmentTestForBackupInstance, BackupInstanceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBackupInstance tests if a specific instance of BackupInstance can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBackupInstance(subject BackupInstance) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.BackupInstance - err := copied.AssignProperties_To_BackupInstance(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BackupInstance - err = actual.AssignProperties_From_BackupInstance(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BackupInstance_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupInstance via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupInstance, BackupInstanceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupInstance runs a test to see if a specific instance of BackupInstance round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupInstance(subject BackupInstance) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupInstance - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupInstance instances for property testing - lazily instantiated by BackupInstanceGenerator() -var backupInstanceGenerator gopter.Gen - -// BackupInstanceGenerator returns a generator of BackupInstance instances for property testing. -// We first initialize backupInstanceGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func BackupInstanceGenerator() gopter.Gen { - if backupInstanceGenerator != nil { - return backupInstanceGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupInstance(generators) - backupInstanceGenerator = gen.Struct(reflect.TypeOf(BackupInstance{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupInstance(generators) - AddRelatedPropertyGeneratorsForBackupInstance(generators) - backupInstanceGenerator = gen.Struct(reflect.TypeOf(BackupInstance{}), generators) - - return backupInstanceGenerator -} - -// AddIndependentPropertyGeneratorsForBackupInstance is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForBackupInstance(gens map[string]gopter.Gen) { - gens["FriendlyName"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ValidationType"] = gen.PtrOf(gen.OneConstOf(BackupInstance_ValidationType_DeepValidation, BackupInstance_ValidationType_ShallowValidation)) -} - -// AddRelatedPropertyGeneratorsForBackupInstance is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupInstance(gens map[string]gopter.Gen) { - gens["DataSourceInfo"] = gen.PtrOf(DatasourceGenerator()) - gens["DataSourceSetInfo"] = gen.PtrOf(DatasourceSetGenerator()) - gens["DatasourceAuthCredentials"] = gen.PtrOf(AuthCredentialsGenerator()) - gens["PolicyInfo"] = gen.PtrOf(PolicyInfoGenerator()) -} - -func Test_BackupInstance_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BackupInstance_STATUS to BackupInstance_STATUS via AssignProperties_To_BackupInstance_STATUS & AssignProperties_From_BackupInstance_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForBackupInstance_STATUS, BackupInstance_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBackupInstance_STATUS tests if a specific instance of BackupInstance_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBackupInstance_STATUS(subject BackupInstance_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.BackupInstance_STATUS - err := copied.AssignProperties_To_BackupInstance_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BackupInstance_STATUS - err = actual.AssignProperties_From_BackupInstance_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BackupInstance_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupInstance_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupInstance_STATUS, BackupInstance_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupInstance_STATUS runs a test to see if a specific instance of BackupInstance_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupInstance_STATUS(subject BackupInstance_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupInstance_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupInstance_STATUS instances for property testing - lazily instantiated by -// BackupInstance_STATUSGenerator() -var backupInstance_STATUSGenerator gopter.Gen - -// BackupInstance_STATUSGenerator returns a generator of BackupInstance_STATUS instances for property testing. -// We first initialize backupInstance_STATUSGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func BackupInstance_STATUSGenerator() gopter.Gen { - if backupInstance_STATUSGenerator != nil { - return backupInstance_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupInstance_STATUS(generators) - backupInstance_STATUSGenerator = gen.Struct(reflect.TypeOf(BackupInstance_STATUS{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupInstance_STATUS(generators) - AddRelatedPropertyGeneratorsForBackupInstance_STATUS(generators) - backupInstance_STATUSGenerator = gen.Struct(reflect.TypeOf(BackupInstance_STATUS{}), generators) - - return backupInstance_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForBackupInstance_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForBackupInstance_STATUS(gens map[string]gopter.Gen) { - gens["CurrentProtectionState"] = gen.PtrOf(gen.OneConstOf( - BackupInstance_CurrentProtectionState_STATUS_BackupSchedulesSuspended, - BackupInstance_CurrentProtectionState_STATUS_ConfiguringProtection, - BackupInstance_CurrentProtectionState_STATUS_ConfiguringProtectionFailed, - BackupInstance_CurrentProtectionState_STATUS_Invalid, - BackupInstance_CurrentProtectionState_STATUS_NotProtected, - BackupInstance_CurrentProtectionState_STATUS_ProtectionConfigured, - BackupInstance_CurrentProtectionState_STATUS_ProtectionError, - BackupInstance_CurrentProtectionState_STATUS_ProtectionStopped, - BackupInstance_CurrentProtectionState_STATUS_RetentionSchedulesSuspended, - BackupInstance_CurrentProtectionState_STATUS_SoftDeleted, - BackupInstance_CurrentProtectionState_STATUS_SoftDeleting, - BackupInstance_CurrentProtectionState_STATUS_UpdatingProtection)) - gens["FriendlyName"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ProvisioningState"] = gen.PtrOf(gen.AlphaString()) - gens["ValidationType"] = gen.PtrOf(gen.OneConstOf(BackupInstance_ValidationType_STATUS_DeepValidation, BackupInstance_ValidationType_STATUS_ShallowValidation)) -} - -// AddRelatedPropertyGeneratorsForBackupInstance_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupInstance_STATUS(gens map[string]gopter.Gen) { - gens["DataSourceInfo"] = gen.PtrOf(Datasource_STATUSGenerator()) - gens["DataSourceSetInfo"] = gen.PtrOf(DatasourceSet_STATUSGenerator()) - gens["DatasourceAuthCredentials"] = gen.PtrOf(AuthCredentials_STATUSGenerator()) - gens["PolicyInfo"] = gen.PtrOf(PolicyInfo_STATUSGenerator()) - gens["ProtectionErrorDetails"] = gen.PtrOf(UserFacingError_STATUSGenerator()) - gens["ProtectionStatus"] = gen.PtrOf(ProtectionStatusDetails_STATUSGenerator()) -} - -func Test_AuthCredentials_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from AuthCredentials to AuthCredentials via AssignProperties_To_AuthCredentials & AssignProperties_From_AuthCredentials returns original", - prop.ForAll(RunPropertyAssignmentTestForAuthCredentials, AuthCredentialsGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForAuthCredentials tests if a specific instance of AuthCredentials can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForAuthCredentials(subject AuthCredentials) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.AuthCredentials - err := copied.AssignProperties_To_AuthCredentials(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual AuthCredentials - err = actual.AssignProperties_From_AuthCredentials(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_AuthCredentials_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of AuthCredentials via JSON returns original", - prop.ForAll(RunJSONSerializationTestForAuthCredentials, AuthCredentialsGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForAuthCredentials runs a test to see if a specific instance of AuthCredentials round trips to JSON and back losslessly -func RunJSONSerializationTestForAuthCredentials(subject AuthCredentials) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual AuthCredentials - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of AuthCredentials instances for property testing - lazily instantiated by AuthCredentialsGenerator() -var authCredentialsGenerator gopter.Gen - -// AuthCredentialsGenerator returns a generator of AuthCredentials instances for property testing. -func AuthCredentialsGenerator() gopter.Gen { - if authCredentialsGenerator != nil { - return authCredentialsGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForAuthCredentials(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(AuthCredentials{}), map[string]gopter.Gen{propName: propGen})) - } - authCredentialsGenerator = gen.OneGenOf(gens...) - - return authCredentialsGenerator -} - -// AddRelatedPropertyGeneratorsForAuthCredentials is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForAuthCredentials(gens map[string]gopter.Gen) { - gens["SecretStoreBasedAuthCredentials"] = SecretStoreBasedAuthCredentialsGenerator().Map(func(it SecretStoreBasedAuthCredentials) *SecretStoreBasedAuthCredentials { - return &it - }) // generate one case for OneOf type -} - -func Test_AuthCredentials_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from AuthCredentials_STATUS to AuthCredentials_STATUS via AssignProperties_To_AuthCredentials_STATUS & AssignProperties_From_AuthCredentials_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForAuthCredentials_STATUS, AuthCredentials_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForAuthCredentials_STATUS tests if a specific instance of AuthCredentials_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForAuthCredentials_STATUS(subject AuthCredentials_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.AuthCredentials_STATUS - err := copied.AssignProperties_To_AuthCredentials_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual AuthCredentials_STATUS - err = actual.AssignProperties_From_AuthCredentials_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_AuthCredentials_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of AuthCredentials_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForAuthCredentials_STATUS, AuthCredentials_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForAuthCredentials_STATUS runs a test to see if a specific instance of AuthCredentials_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForAuthCredentials_STATUS(subject AuthCredentials_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual AuthCredentials_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of AuthCredentials_STATUS instances for property testing - lazily instantiated by -// AuthCredentials_STATUSGenerator() -var authCredentials_STATUSGenerator gopter.Gen - -// AuthCredentials_STATUSGenerator returns a generator of AuthCredentials_STATUS instances for property testing. -func AuthCredentials_STATUSGenerator() gopter.Gen { - if authCredentials_STATUSGenerator != nil { - return authCredentials_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForAuthCredentials_STATUS(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(AuthCredentials_STATUS{}), map[string]gopter.Gen{propName: propGen})) - } - authCredentials_STATUSGenerator = gen.OneGenOf(gens...) - - return authCredentials_STATUSGenerator -} - -// AddRelatedPropertyGeneratorsForAuthCredentials_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForAuthCredentials_STATUS(gens map[string]gopter.Gen) { - gens["SecretStoreBasedAuthCredentials"] = SecretStoreBasedAuthCredentials_STATUSGenerator().Map(func(it SecretStoreBasedAuthCredentials_STATUS) *SecretStoreBasedAuthCredentials_STATUS { - return &it - }) // generate one case for OneOf type -} - -func Test_Datasource_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from Datasource to Datasource via AssignProperties_To_Datasource & AssignProperties_From_Datasource returns original", - prop.ForAll(RunPropertyAssignmentTestForDatasource, DatasourceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForDatasource tests if a specific instance of Datasource can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForDatasource(subject Datasource) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.Datasource - err := copied.AssignProperties_To_Datasource(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual Datasource - err = actual.AssignProperties_From_Datasource(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_Datasource_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of Datasource via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDatasource, DatasourceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDatasource runs a test to see if a specific instance of Datasource round trips to JSON and back losslessly -func RunJSONSerializationTestForDatasource(subject Datasource) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual Datasource - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of Datasource instances for property testing - lazily instantiated by DatasourceGenerator() -var datasourceGenerator gopter.Gen - -// DatasourceGenerator returns a generator of Datasource instances for property testing. -func DatasourceGenerator() gopter.Gen { - if datasourceGenerator != nil { - return datasourceGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForDatasource(generators) - datasourceGenerator = gen.Struct(reflect.TypeOf(Datasource{}), generators) - - return datasourceGenerator -} - -// AddIndependentPropertyGeneratorsForDatasource is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForDatasource(gens map[string]gopter.Gen) { - gens["DatasourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceLocation"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceName"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceUri"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_Datasource_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from Datasource_STATUS to Datasource_STATUS via AssignProperties_To_Datasource_STATUS & AssignProperties_From_Datasource_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForDatasource_STATUS, Datasource_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForDatasource_STATUS tests if a specific instance of Datasource_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForDatasource_STATUS(subject Datasource_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.Datasource_STATUS - err := copied.AssignProperties_To_Datasource_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual Datasource_STATUS - err = actual.AssignProperties_From_Datasource_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_Datasource_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of Datasource_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDatasource_STATUS, Datasource_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDatasource_STATUS runs a test to see if a specific instance of Datasource_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForDatasource_STATUS(subject Datasource_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual Datasource_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of Datasource_STATUS instances for property testing - lazily instantiated by Datasource_STATUSGenerator() -var datasource_STATUSGenerator gopter.Gen - -// Datasource_STATUSGenerator returns a generator of Datasource_STATUS instances for property testing. -func Datasource_STATUSGenerator() gopter.Gen { - if datasource_STATUSGenerator != nil { - return datasource_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForDatasource_STATUS(generators) - datasource_STATUSGenerator = gen.Struct(reflect.TypeOf(Datasource_STATUS{}), generators) - - return datasource_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForDatasource_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForDatasource_STATUS(gens map[string]gopter.Gen) { - gens["DatasourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceID"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceLocation"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceName"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceUri"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_DatasourceSet_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from DatasourceSet to DatasourceSet via AssignProperties_To_DatasourceSet & AssignProperties_From_DatasourceSet returns original", - prop.ForAll(RunPropertyAssignmentTestForDatasourceSet, DatasourceSetGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForDatasourceSet tests if a specific instance of DatasourceSet can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForDatasourceSet(subject DatasourceSet) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.DatasourceSet - err := copied.AssignProperties_To_DatasourceSet(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual DatasourceSet - err = actual.AssignProperties_From_DatasourceSet(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_DatasourceSet_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of DatasourceSet via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDatasourceSet, DatasourceSetGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDatasourceSet runs a test to see if a specific instance of DatasourceSet round trips to JSON and back losslessly -func RunJSONSerializationTestForDatasourceSet(subject DatasourceSet) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual DatasourceSet - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of DatasourceSet instances for property testing - lazily instantiated by DatasourceSetGenerator() -var datasourceSetGenerator gopter.Gen - -// DatasourceSetGenerator returns a generator of DatasourceSet instances for property testing. -func DatasourceSetGenerator() gopter.Gen { - if datasourceSetGenerator != nil { - return datasourceSetGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForDatasourceSet(generators) - datasourceSetGenerator = gen.Struct(reflect.TypeOf(DatasourceSet{}), generators) - - return datasourceSetGenerator -} - -// AddIndependentPropertyGeneratorsForDatasourceSet is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForDatasourceSet(gens map[string]gopter.Gen) { - gens["DatasourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceLocation"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceName"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceUri"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_DatasourceSet_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from DatasourceSet_STATUS to DatasourceSet_STATUS via AssignProperties_To_DatasourceSet_STATUS & AssignProperties_From_DatasourceSet_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForDatasourceSet_STATUS, DatasourceSet_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForDatasourceSet_STATUS tests if a specific instance of DatasourceSet_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForDatasourceSet_STATUS(subject DatasourceSet_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.DatasourceSet_STATUS - err := copied.AssignProperties_To_DatasourceSet_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual DatasourceSet_STATUS - err = actual.AssignProperties_From_DatasourceSet_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_DatasourceSet_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of DatasourceSet_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDatasourceSet_STATUS, DatasourceSet_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDatasourceSet_STATUS runs a test to see if a specific instance of DatasourceSet_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForDatasourceSet_STATUS(subject DatasourceSet_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual DatasourceSet_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of DatasourceSet_STATUS instances for property testing - lazily instantiated by -// DatasourceSet_STATUSGenerator() -var datasourceSet_STATUSGenerator gopter.Gen - -// DatasourceSet_STATUSGenerator returns a generator of DatasourceSet_STATUS instances for property testing. -func DatasourceSet_STATUSGenerator() gopter.Gen { - if datasourceSet_STATUSGenerator != nil { - return datasourceSet_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForDatasourceSet_STATUS(generators) - datasourceSet_STATUSGenerator = gen.Struct(reflect.TypeOf(DatasourceSet_STATUS{}), generators) - - return datasourceSet_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForDatasourceSet_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForDatasourceSet_STATUS(gens map[string]gopter.Gen) { - gens["DatasourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceID"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceLocation"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceName"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceUri"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_PolicyInfo_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from PolicyInfo to PolicyInfo via AssignProperties_To_PolicyInfo & AssignProperties_From_PolicyInfo returns original", - prop.ForAll(RunPropertyAssignmentTestForPolicyInfo, PolicyInfoGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForPolicyInfo tests if a specific instance of PolicyInfo can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForPolicyInfo(subject PolicyInfo) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.PolicyInfo - err := copied.AssignProperties_To_PolicyInfo(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual PolicyInfo - err = actual.AssignProperties_From_PolicyInfo(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_PolicyInfo_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of PolicyInfo via JSON returns original", - prop.ForAll(RunJSONSerializationTestForPolicyInfo, PolicyInfoGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForPolicyInfo runs a test to see if a specific instance of PolicyInfo round trips to JSON and back losslessly -func RunJSONSerializationTestForPolicyInfo(subject PolicyInfo) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual PolicyInfo - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of PolicyInfo instances for property testing - lazily instantiated by PolicyInfoGenerator() -var policyInfoGenerator gopter.Gen - -// PolicyInfoGenerator returns a generator of PolicyInfo instances for property testing. -func PolicyInfoGenerator() gopter.Gen { - if policyInfoGenerator != nil { - return policyInfoGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForPolicyInfo(generators) - policyInfoGenerator = gen.Struct(reflect.TypeOf(PolicyInfo{}), generators) - - return policyInfoGenerator -} - -// AddRelatedPropertyGeneratorsForPolicyInfo is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForPolicyInfo(gens map[string]gopter.Gen) { - gens["PolicyParameters"] = gen.PtrOf(PolicyParametersGenerator()) -} - -func Test_PolicyInfo_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from PolicyInfo_STATUS to PolicyInfo_STATUS via AssignProperties_To_PolicyInfo_STATUS & AssignProperties_From_PolicyInfo_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForPolicyInfo_STATUS, PolicyInfo_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForPolicyInfo_STATUS tests if a specific instance of PolicyInfo_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForPolicyInfo_STATUS(subject PolicyInfo_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.PolicyInfo_STATUS - err := copied.AssignProperties_To_PolicyInfo_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual PolicyInfo_STATUS - err = actual.AssignProperties_From_PolicyInfo_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_PolicyInfo_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of PolicyInfo_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForPolicyInfo_STATUS, PolicyInfo_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForPolicyInfo_STATUS runs a test to see if a specific instance of PolicyInfo_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForPolicyInfo_STATUS(subject PolicyInfo_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual PolicyInfo_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of PolicyInfo_STATUS instances for property testing - lazily instantiated by PolicyInfo_STATUSGenerator() -var policyInfo_STATUSGenerator gopter.Gen - -// PolicyInfo_STATUSGenerator returns a generator of PolicyInfo_STATUS instances for property testing. -// We first initialize policyInfo_STATUSGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func PolicyInfo_STATUSGenerator() gopter.Gen { - if policyInfo_STATUSGenerator != nil { - return policyInfo_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForPolicyInfo_STATUS(generators) - policyInfo_STATUSGenerator = gen.Struct(reflect.TypeOf(PolicyInfo_STATUS{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForPolicyInfo_STATUS(generators) - AddRelatedPropertyGeneratorsForPolicyInfo_STATUS(generators) - policyInfo_STATUSGenerator = gen.Struct(reflect.TypeOf(PolicyInfo_STATUS{}), generators) - - return policyInfo_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForPolicyInfo_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForPolicyInfo_STATUS(gens map[string]gopter.Gen) { - gens["PolicyId"] = gen.PtrOf(gen.AlphaString()) - gens["PolicyVersion"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForPolicyInfo_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForPolicyInfo_STATUS(gens map[string]gopter.Gen) { - gens["PolicyParameters"] = gen.PtrOf(PolicyParameters_STATUSGenerator()) -} - -func Test_ProtectionStatusDetails_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from ProtectionStatusDetails_STATUS to ProtectionStatusDetails_STATUS via AssignProperties_To_ProtectionStatusDetails_STATUS & AssignProperties_From_ProtectionStatusDetails_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForProtectionStatusDetails_STATUS, ProtectionStatusDetails_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForProtectionStatusDetails_STATUS tests if a specific instance of ProtectionStatusDetails_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForProtectionStatusDetails_STATUS(subject ProtectionStatusDetails_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.ProtectionStatusDetails_STATUS - err := copied.AssignProperties_To_ProtectionStatusDetails_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual ProtectionStatusDetails_STATUS - err = actual.AssignProperties_From_ProtectionStatusDetails_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_ProtectionStatusDetails_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of ProtectionStatusDetails_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForProtectionStatusDetails_STATUS, ProtectionStatusDetails_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForProtectionStatusDetails_STATUS runs a test to see if a specific instance of ProtectionStatusDetails_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForProtectionStatusDetails_STATUS(subject ProtectionStatusDetails_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual ProtectionStatusDetails_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of ProtectionStatusDetails_STATUS instances for property testing - lazily instantiated by -// ProtectionStatusDetails_STATUSGenerator() -var protectionStatusDetails_STATUSGenerator gopter.Gen - -// ProtectionStatusDetails_STATUSGenerator returns a generator of ProtectionStatusDetails_STATUS instances for property testing. -// We first initialize protectionStatusDetails_STATUSGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func ProtectionStatusDetails_STATUSGenerator() gopter.Gen { - if protectionStatusDetails_STATUSGenerator != nil { - return protectionStatusDetails_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForProtectionStatusDetails_STATUS(generators) - protectionStatusDetails_STATUSGenerator = gen.Struct(reflect.TypeOf(ProtectionStatusDetails_STATUS{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForProtectionStatusDetails_STATUS(generators) - AddRelatedPropertyGeneratorsForProtectionStatusDetails_STATUS(generators) - protectionStatusDetails_STATUSGenerator = gen.Struct(reflect.TypeOf(ProtectionStatusDetails_STATUS{}), generators) - - return protectionStatusDetails_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForProtectionStatusDetails_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForProtectionStatusDetails_STATUS(gens map[string]gopter.Gen) { - gens["Status"] = gen.PtrOf(gen.OneConstOf( - ProtectionStatusDetails_Status_STATUS_ConfiguringProtection, - ProtectionStatusDetails_Status_STATUS_ConfiguringProtectionFailed, - ProtectionStatusDetails_Status_STATUS_ProtectionConfigured, - ProtectionStatusDetails_Status_STATUS_ProtectionStopped, - ProtectionStatusDetails_Status_STATUS_SoftDeleted, - ProtectionStatusDetails_Status_STATUS_SoftDeleting)) -} - -// AddRelatedPropertyGeneratorsForProtectionStatusDetails_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForProtectionStatusDetails_STATUS(gens map[string]gopter.Gen) { - gens["ErrorDetails"] = gen.PtrOf(UserFacingError_STATUSGenerator()) -} - -func Test_UserFacingError_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from UserFacingError_STATUS to UserFacingError_STATUS via AssignProperties_To_UserFacingError_STATUS & AssignProperties_From_UserFacingError_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForUserFacingError_STATUS, UserFacingError_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForUserFacingError_STATUS tests if a specific instance of UserFacingError_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForUserFacingError_STATUS(subject UserFacingError_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.UserFacingError_STATUS - err := copied.AssignProperties_To_UserFacingError_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual UserFacingError_STATUS - err = actual.AssignProperties_From_UserFacingError_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_UserFacingError_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of UserFacingError_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForUserFacingError_STATUS, UserFacingError_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForUserFacingError_STATUS runs a test to see if a specific instance of UserFacingError_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForUserFacingError_STATUS(subject UserFacingError_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual UserFacingError_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of UserFacingError_STATUS instances for property testing - lazily instantiated by -// UserFacingError_STATUSGenerator() -var userFacingError_STATUSGenerator gopter.Gen - -// UserFacingError_STATUSGenerator returns a generator of UserFacingError_STATUS instances for property testing. -// We first initialize userFacingError_STATUSGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func UserFacingError_STATUSGenerator() gopter.Gen { - if userFacingError_STATUSGenerator != nil { - return userFacingError_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForUserFacingError_STATUS(generators) - userFacingError_STATUSGenerator = gen.Struct(reflect.TypeOf(UserFacingError_STATUS{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForUserFacingError_STATUS(generators) - AddRelatedPropertyGeneratorsForUserFacingError_STATUS(generators) - userFacingError_STATUSGenerator = gen.Struct(reflect.TypeOf(UserFacingError_STATUS{}), generators) - - return userFacingError_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForUserFacingError_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForUserFacingError_STATUS(gens map[string]gopter.Gen) { - gens["Code"] = gen.PtrOf(gen.AlphaString()) - 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["RecommendedAction"] = gen.SliceOf(gen.AlphaString()) - gens["Target"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForUserFacingError_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForUserFacingError_STATUS(gens map[string]gopter.Gen) { - gens["Details"] = gen.SliceOf(UserFacingError_STATUS_UnrolledGenerator()) - gens["InnerError"] = gen.PtrOf(InnerError_STATUSGenerator()) -} - -func Test_InnerError_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from InnerError_STATUS to InnerError_STATUS via AssignProperties_To_InnerError_STATUS & AssignProperties_From_InnerError_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForInnerError_STATUS, InnerError_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForInnerError_STATUS tests if a specific instance of InnerError_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForInnerError_STATUS(subject InnerError_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.InnerError_STATUS - err := copied.AssignProperties_To_InnerError_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual InnerError_STATUS - err = actual.AssignProperties_From_InnerError_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_InnerError_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of InnerError_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForInnerError_STATUS, InnerError_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForInnerError_STATUS runs a test to see if a specific instance of InnerError_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForInnerError_STATUS(subject InnerError_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual InnerError_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of InnerError_STATUS instances for property testing - lazily instantiated by InnerError_STATUSGenerator() -var innerError_STATUSGenerator gopter.Gen - -// InnerError_STATUSGenerator returns a generator of InnerError_STATUS instances for property testing. -// We first initialize innerError_STATUSGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func InnerError_STATUSGenerator() gopter.Gen { - if innerError_STATUSGenerator != nil { - return innerError_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForInnerError_STATUS(generators) - innerError_STATUSGenerator = gen.Struct(reflect.TypeOf(InnerError_STATUS{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForInnerError_STATUS(generators) - AddRelatedPropertyGeneratorsForInnerError_STATUS(generators) - innerError_STATUSGenerator = gen.Struct(reflect.TypeOf(InnerError_STATUS{}), generators) - - return innerError_STATUSGenerator -} - -// 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["Code"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForInnerError_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForInnerError_STATUS(gens map[string]gopter.Gen) { - gens["EmbeddedInnerError"] = gen.PtrOf(InnerError_STATUS_UnrolledGenerator()) -} - -func Test_PolicyParameters_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from PolicyParameters to PolicyParameters via AssignProperties_To_PolicyParameters & AssignProperties_From_PolicyParameters returns original", - prop.ForAll(RunPropertyAssignmentTestForPolicyParameters, PolicyParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForPolicyParameters tests if a specific instance of PolicyParameters can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForPolicyParameters(subject PolicyParameters) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.PolicyParameters - err := copied.AssignProperties_To_PolicyParameters(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual PolicyParameters - err = actual.AssignProperties_From_PolicyParameters(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_PolicyParameters_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of PolicyParameters via JSON returns original", - prop.ForAll(RunJSONSerializationTestForPolicyParameters, PolicyParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForPolicyParameters runs a test to see if a specific instance of PolicyParameters round trips to JSON and back losslessly -func RunJSONSerializationTestForPolicyParameters(subject PolicyParameters) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual PolicyParameters - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of PolicyParameters instances for property testing - lazily instantiated by PolicyParametersGenerator() -var policyParametersGenerator gopter.Gen - -// PolicyParametersGenerator returns a generator of PolicyParameters instances for property testing. -func PolicyParametersGenerator() gopter.Gen { - if policyParametersGenerator != nil { - return policyParametersGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForPolicyParameters(generators) - policyParametersGenerator = gen.Struct(reflect.TypeOf(PolicyParameters{}), generators) - - return policyParametersGenerator -} - -// AddRelatedPropertyGeneratorsForPolicyParameters is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForPolicyParameters(gens map[string]gopter.Gen) { - gens["BackupDatasourceParametersList"] = gen.SliceOf(BackupDatasourceParametersGenerator()) - gens["DataStoreParametersList"] = gen.SliceOf(DataStoreParametersGenerator()) -} - -func Test_PolicyParameters_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from PolicyParameters_STATUS to PolicyParameters_STATUS via AssignProperties_To_PolicyParameters_STATUS & AssignProperties_From_PolicyParameters_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForPolicyParameters_STATUS, PolicyParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForPolicyParameters_STATUS tests if a specific instance of PolicyParameters_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForPolicyParameters_STATUS(subject PolicyParameters_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.PolicyParameters_STATUS - err := copied.AssignProperties_To_PolicyParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual PolicyParameters_STATUS - err = actual.AssignProperties_From_PolicyParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_PolicyParameters_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of PolicyParameters_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForPolicyParameters_STATUS, PolicyParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForPolicyParameters_STATUS runs a test to see if a specific instance of PolicyParameters_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForPolicyParameters_STATUS(subject PolicyParameters_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual PolicyParameters_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of PolicyParameters_STATUS instances for property testing - lazily instantiated by -// PolicyParameters_STATUSGenerator() -var policyParameters_STATUSGenerator gopter.Gen - -// PolicyParameters_STATUSGenerator returns a generator of PolicyParameters_STATUS instances for property testing. -func PolicyParameters_STATUSGenerator() gopter.Gen { - if policyParameters_STATUSGenerator != nil { - return policyParameters_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForPolicyParameters_STATUS(generators) - policyParameters_STATUSGenerator = gen.Struct(reflect.TypeOf(PolicyParameters_STATUS{}), generators) - - return policyParameters_STATUSGenerator -} - -// AddRelatedPropertyGeneratorsForPolicyParameters_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForPolicyParameters_STATUS(gens map[string]gopter.Gen) { - gens["BackupDatasourceParametersList"] = gen.SliceOf(BackupDatasourceParameters_STATUSGenerator()) - gens["DataStoreParametersList"] = gen.SliceOf(DataStoreParameters_STATUSGenerator()) -} - -func Test_SecretStoreBasedAuthCredentials_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from SecretStoreBasedAuthCredentials to SecretStoreBasedAuthCredentials via AssignProperties_To_SecretStoreBasedAuthCredentials & AssignProperties_From_SecretStoreBasedAuthCredentials returns original", - prop.ForAll(RunPropertyAssignmentTestForSecretStoreBasedAuthCredentials, SecretStoreBasedAuthCredentialsGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForSecretStoreBasedAuthCredentials tests if a specific instance of SecretStoreBasedAuthCredentials can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForSecretStoreBasedAuthCredentials(subject SecretStoreBasedAuthCredentials) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.SecretStoreBasedAuthCredentials - err := copied.AssignProperties_To_SecretStoreBasedAuthCredentials(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual SecretStoreBasedAuthCredentials - err = actual.AssignProperties_From_SecretStoreBasedAuthCredentials(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_SecretStoreBasedAuthCredentials_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of SecretStoreBasedAuthCredentials via JSON returns original", - prop.ForAll(RunJSONSerializationTestForSecretStoreBasedAuthCredentials, SecretStoreBasedAuthCredentialsGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForSecretStoreBasedAuthCredentials runs a test to see if a specific instance of SecretStoreBasedAuthCredentials round trips to JSON and back losslessly -func RunJSONSerializationTestForSecretStoreBasedAuthCredentials(subject SecretStoreBasedAuthCredentials) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual SecretStoreBasedAuthCredentials - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of SecretStoreBasedAuthCredentials instances for property testing - lazily instantiated by -// SecretStoreBasedAuthCredentialsGenerator() -var secretStoreBasedAuthCredentialsGenerator gopter.Gen - -// SecretStoreBasedAuthCredentialsGenerator returns a generator of SecretStoreBasedAuthCredentials instances for property testing. -// We first initialize secretStoreBasedAuthCredentialsGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func SecretStoreBasedAuthCredentialsGenerator() gopter.Gen { - if secretStoreBasedAuthCredentialsGenerator != nil { - return secretStoreBasedAuthCredentialsGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials(generators) - secretStoreBasedAuthCredentialsGenerator = gen.Struct(reflect.TypeOf(SecretStoreBasedAuthCredentials{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials(generators) - AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials(generators) - secretStoreBasedAuthCredentialsGenerator = gen.Struct(reflect.TypeOf(SecretStoreBasedAuthCredentials{}), generators) - - return secretStoreBasedAuthCredentialsGenerator -} - -// AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials(gens map[string]gopter.Gen) { - gens["ObjectType"] = gen.PtrOf(gen.OneConstOf(SecretStoreBasedAuthCredentials_ObjectType_SecretStoreBasedAuthCredentials)) -} - -// AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials(gens map[string]gopter.Gen) { - gens["SecretStoreResource"] = gen.PtrOf(SecretStoreResourceGenerator()) -} - -func Test_SecretStoreBasedAuthCredentials_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from SecretStoreBasedAuthCredentials_STATUS to SecretStoreBasedAuthCredentials_STATUS via AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS & AssignProperties_From_SecretStoreBasedAuthCredentials_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForSecretStoreBasedAuthCredentials_STATUS, SecretStoreBasedAuthCredentials_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForSecretStoreBasedAuthCredentials_STATUS tests if a specific instance of SecretStoreBasedAuthCredentials_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForSecretStoreBasedAuthCredentials_STATUS(subject SecretStoreBasedAuthCredentials_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.SecretStoreBasedAuthCredentials_STATUS - err := copied.AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual SecretStoreBasedAuthCredentials_STATUS - err = actual.AssignProperties_From_SecretStoreBasedAuthCredentials_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_SecretStoreBasedAuthCredentials_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of SecretStoreBasedAuthCredentials_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForSecretStoreBasedAuthCredentials_STATUS, SecretStoreBasedAuthCredentials_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForSecretStoreBasedAuthCredentials_STATUS runs a test to see if a specific instance of SecretStoreBasedAuthCredentials_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForSecretStoreBasedAuthCredentials_STATUS(subject SecretStoreBasedAuthCredentials_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual SecretStoreBasedAuthCredentials_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of SecretStoreBasedAuthCredentials_STATUS instances for property testing - lazily instantiated by -// SecretStoreBasedAuthCredentials_STATUSGenerator() -var secretStoreBasedAuthCredentials_STATUSGenerator gopter.Gen - -// SecretStoreBasedAuthCredentials_STATUSGenerator returns a generator of SecretStoreBasedAuthCredentials_STATUS instances for property testing. -// We first initialize secretStoreBasedAuthCredentials_STATUSGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func SecretStoreBasedAuthCredentials_STATUSGenerator() gopter.Gen { - if secretStoreBasedAuthCredentials_STATUSGenerator != nil { - return secretStoreBasedAuthCredentials_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS(generators) - secretStoreBasedAuthCredentials_STATUSGenerator = gen.Struct(reflect.TypeOf(SecretStoreBasedAuthCredentials_STATUS{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS(generators) - AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS(generators) - secretStoreBasedAuthCredentials_STATUSGenerator = gen.Struct(reflect.TypeOf(SecretStoreBasedAuthCredentials_STATUS{}), generators) - - return secretStoreBasedAuthCredentials_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS(gens map[string]gopter.Gen) { - gens["ObjectType"] = gen.PtrOf(gen.OneConstOf(SecretStoreBasedAuthCredentials_ObjectType_STATUS_SecretStoreBasedAuthCredentials)) -} - -// AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS(gens map[string]gopter.Gen) { - gens["SecretStoreResource"] = gen.PtrOf(SecretStoreResource_STATUSGenerator()) -} - -func Test_UserFacingError_STATUS_Unrolled_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from UserFacingError_STATUS_Unrolled to UserFacingError_STATUS_Unrolled via AssignProperties_To_UserFacingError_STATUS_Unrolled & AssignProperties_From_UserFacingError_STATUS_Unrolled returns original", - prop.ForAll(RunPropertyAssignmentTestForUserFacingError_STATUS_Unrolled, UserFacingError_STATUS_UnrolledGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForUserFacingError_STATUS_Unrolled tests if a specific instance of UserFacingError_STATUS_Unrolled can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForUserFacingError_STATUS_Unrolled(subject UserFacingError_STATUS_Unrolled) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.UserFacingError_STATUS_Unrolled - err := copied.AssignProperties_To_UserFacingError_STATUS_Unrolled(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual UserFacingError_STATUS_Unrolled - err = actual.AssignProperties_From_UserFacingError_STATUS_Unrolled(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_UserFacingError_STATUS_Unrolled_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of UserFacingError_STATUS_Unrolled via JSON returns original", - prop.ForAll(RunJSONSerializationTestForUserFacingError_STATUS_Unrolled, UserFacingError_STATUS_UnrolledGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForUserFacingError_STATUS_Unrolled runs a test to see if a specific instance of UserFacingError_STATUS_Unrolled round trips to JSON and back losslessly -func RunJSONSerializationTestForUserFacingError_STATUS_Unrolled(subject UserFacingError_STATUS_Unrolled) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual UserFacingError_STATUS_Unrolled - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of UserFacingError_STATUS_Unrolled instances for property testing - lazily instantiated by -// UserFacingError_STATUS_UnrolledGenerator() -var userFacingError_STATUS_UnrolledGenerator gopter.Gen - -// UserFacingError_STATUS_UnrolledGenerator returns a generator of UserFacingError_STATUS_Unrolled instances for property testing. -// We first initialize userFacingError_STATUS_UnrolledGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func UserFacingError_STATUS_UnrolledGenerator() gopter.Gen { - if userFacingError_STATUS_UnrolledGenerator != nil { - return userFacingError_STATUS_UnrolledGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForUserFacingError_STATUS_Unrolled(generators) - userFacingError_STATUS_UnrolledGenerator = gen.Struct(reflect.TypeOf(UserFacingError_STATUS_Unrolled{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForUserFacingError_STATUS_Unrolled(generators) - AddRelatedPropertyGeneratorsForUserFacingError_STATUS_Unrolled(generators) - userFacingError_STATUS_UnrolledGenerator = gen.Struct(reflect.TypeOf(UserFacingError_STATUS_Unrolled{}), generators) - - return userFacingError_STATUS_UnrolledGenerator -} - -// AddIndependentPropertyGeneratorsForUserFacingError_STATUS_Unrolled is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForUserFacingError_STATUS_Unrolled(gens map[string]gopter.Gen) { - gens["Code"] = gen.PtrOf(gen.AlphaString()) - 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["RecommendedAction"] = gen.SliceOf(gen.AlphaString()) - gens["Target"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForUserFacingError_STATUS_Unrolled is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForUserFacingError_STATUS_Unrolled(gens map[string]gopter.Gen) { - gens["InnerError"] = gen.PtrOf(InnerError_STATUSGenerator()) -} - -func Test_BackupDatasourceParameters_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BackupDatasourceParameters to BackupDatasourceParameters via AssignProperties_To_BackupDatasourceParameters & AssignProperties_From_BackupDatasourceParameters returns original", - prop.ForAll(RunPropertyAssignmentTestForBackupDatasourceParameters, BackupDatasourceParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBackupDatasourceParameters tests if a specific instance of BackupDatasourceParameters can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBackupDatasourceParameters(subject BackupDatasourceParameters) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.BackupDatasourceParameters - err := copied.AssignProperties_To_BackupDatasourceParameters(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BackupDatasourceParameters - err = actual.AssignProperties_From_BackupDatasourceParameters(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BackupDatasourceParameters_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupDatasourceParameters via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupDatasourceParameters, BackupDatasourceParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupDatasourceParameters runs a test to see if a specific instance of BackupDatasourceParameters round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupDatasourceParameters(subject BackupDatasourceParameters) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupDatasourceParameters - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupDatasourceParameters instances for property testing - lazily instantiated by -// BackupDatasourceParametersGenerator() -var backupDatasourceParametersGenerator gopter.Gen - -// BackupDatasourceParametersGenerator returns a generator of BackupDatasourceParameters instances for property testing. -func BackupDatasourceParametersGenerator() gopter.Gen { - if backupDatasourceParametersGenerator != nil { - return backupDatasourceParametersGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForBackupDatasourceParameters(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(BackupDatasourceParameters{}), map[string]gopter.Gen{propName: propGen})) - } - backupDatasourceParametersGenerator = gen.OneGenOf(gens...) - - return backupDatasourceParametersGenerator -} - -// AddRelatedPropertyGeneratorsForBackupDatasourceParameters is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupDatasourceParameters(gens map[string]gopter.Gen) { - gens["Blob"] = BlobBackupDatasourceParametersGenerator().Map(func(it BlobBackupDatasourceParameters) *BlobBackupDatasourceParameters { - return &it - }) // generate one case for OneOf type - gens["KubernetesCluster"] = KubernetesClusterBackupDatasourceParametersGenerator().Map(func(it KubernetesClusterBackupDatasourceParameters) *KubernetesClusterBackupDatasourceParameters { - return &it - }) // generate one case for OneOf type -} - -func Test_BackupDatasourceParameters_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BackupDatasourceParameters_STATUS to BackupDatasourceParameters_STATUS via AssignProperties_To_BackupDatasourceParameters_STATUS & AssignProperties_From_BackupDatasourceParameters_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForBackupDatasourceParameters_STATUS, BackupDatasourceParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBackupDatasourceParameters_STATUS tests if a specific instance of BackupDatasourceParameters_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBackupDatasourceParameters_STATUS(subject BackupDatasourceParameters_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.BackupDatasourceParameters_STATUS - err := copied.AssignProperties_To_BackupDatasourceParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BackupDatasourceParameters_STATUS - err = actual.AssignProperties_From_BackupDatasourceParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BackupDatasourceParameters_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupDatasourceParameters_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupDatasourceParameters_STATUS, BackupDatasourceParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupDatasourceParameters_STATUS runs a test to see if a specific instance of BackupDatasourceParameters_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupDatasourceParameters_STATUS(subject BackupDatasourceParameters_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupDatasourceParameters_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupDatasourceParameters_STATUS instances for property testing - lazily instantiated by -// BackupDatasourceParameters_STATUSGenerator() -var backupDatasourceParameters_STATUSGenerator gopter.Gen - -// BackupDatasourceParameters_STATUSGenerator returns a generator of BackupDatasourceParameters_STATUS instances for property testing. -func BackupDatasourceParameters_STATUSGenerator() gopter.Gen { - if backupDatasourceParameters_STATUSGenerator != nil { - return backupDatasourceParameters_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForBackupDatasourceParameters_STATUS(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(BackupDatasourceParameters_STATUS{}), map[string]gopter.Gen{propName: propGen})) - } - backupDatasourceParameters_STATUSGenerator = gen.OneGenOf(gens...) - - return backupDatasourceParameters_STATUSGenerator -} - -// AddRelatedPropertyGeneratorsForBackupDatasourceParameters_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupDatasourceParameters_STATUS(gens map[string]gopter.Gen) { - gens["Blob"] = BlobBackupDatasourceParameters_STATUSGenerator().Map(func(it BlobBackupDatasourceParameters_STATUS) *BlobBackupDatasourceParameters_STATUS { - return &it - }) // generate one case for OneOf type - gens["KubernetesCluster"] = KubernetesClusterBackupDatasourceParameters_STATUSGenerator().Map(func(it KubernetesClusterBackupDatasourceParameters_STATUS) *KubernetesClusterBackupDatasourceParameters_STATUS { - return &it - }) // generate one case for OneOf type -} - -func Test_DataStoreParameters_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from DataStoreParameters to DataStoreParameters via AssignProperties_To_DataStoreParameters & AssignProperties_From_DataStoreParameters returns original", - prop.ForAll(RunPropertyAssignmentTestForDataStoreParameters, DataStoreParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForDataStoreParameters tests if a specific instance of DataStoreParameters can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForDataStoreParameters(subject DataStoreParameters) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.DataStoreParameters - err := copied.AssignProperties_To_DataStoreParameters(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual DataStoreParameters - err = actual.AssignProperties_From_DataStoreParameters(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_DataStoreParameters_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of DataStoreParameters via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDataStoreParameters, DataStoreParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDataStoreParameters runs a test to see if a specific instance of DataStoreParameters round trips to JSON and back losslessly -func RunJSONSerializationTestForDataStoreParameters(subject DataStoreParameters) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual DataStoreParameters - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of DataStoreParameters instances for property testing - lazily instantiated by -// DataStoreParametersGenerator() -var dataStoreParametersGenerator gopter.Gen - -// DataStoreParametersGenerator returns a generator of DataStoreParameters instances for property testing. -func DataStoreParametersGenerator() gopter.Gen { - if dataStoreParametersGenerator != nil { - return dataStoreParametersGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForDataStoreParameters(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(DataStoreParameters{}), map[string]gopter.Gen{propName: propGen})) - } - dataStoreParametersGenerator = gen.OneGenOf(gens...) - - return dataStoreParametersGenerator -} - -// AddRelatedPropertyGeneratorsForDataStoreParameters is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForDataStoreParameters(gens map[string]gopter.Gen) { - gens["AzureOperationalStoreParameters"] = AzureOperationalStoreParametersGenerator().Map(func(it AzureOperationalStoreParameters) *AzureOperationalStoreParameters { - return &it - }) // generate one case for OneOf type -} - -func Test_DataStoreParameters_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from DataStoreParameters_STATUS to DataStoreParameters_STATUS via AssignProperties_To_DataStoreParameters_STATUS & AssignProperties_From_DataStoreParameters_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForDataStoreParameters_STATUS, DataStoreParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForDataStoreParameters_STATUS tests if a specific instance of DataStoreParameters_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForDataStoreParameters_STATUS(subject DataStoreParameters_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.DataStoreParameters_STATUS - err := copied.AssignProperties_To_DataStoreParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual DataStoreParameters_STATUS - err = actual.AssignProperties_From_DataStoreParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_DataStoreParameters_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of DataStoreParameters_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDataStoreParameters_STATUS, DataStoreParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDataStoreParameters_STATUS runs a test to see if a specific instance of DataStoreParameters_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForDataStoreParameters_STATUS(subject DataStoreParameters_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual DataStoreParameters_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of DataStoreParameters_STATUS instances for property testing - lazily instantiated by -// DataStoreParameters_STATUSGenerator() -var dataStoreParameters_STATUSGenerator gopter.Gen - -// DataStoreParameters_STATUSGenerator returns a generator of DataStoreParameters_STATUS instances for property testing. -func DataStoreParameters_STATUSGenerator() gopter.Gen { - if dataStoreParameters_STATUSGenerator != nil { - return dataStoreParameters_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForDataStoreParameters_STATUS(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(DataStoreParameters_STATUS{}), map[string]gopter.Gen{propName: propGen})) - } - dataStoreParameters_STATUSGenerator = gen.OneGenOf(gens...) - - return dataStoreParameters_STATUSGenerator -} - -// AddRelatedPropertyGeneratorsForDataStoreParameters_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForDataStoreParameters_STATUS(gens map[string]gopter.Gen) { - gens["AzureOperationalStoreParameters"] = AzureOperationalStoreParameters_STATUSGenerator().Map(func(it AzureOperationalStoreParameters_STATUS) *AzureOperationalStoreParameters_STATUS { - return &it - }) // generate one case for OneOf type -} - -func Test_InnerError_STATUS_Unrolled_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from InnerError_STATUS_Unrolled to InnerError_STATUS_Unrolled via AssignProperties_To_InnerError_STATUS_Unrolled & AssignProperties_From_InnerError_STATUS_Unrolled returns original", - prop.ForAll(RunPropertyAssignmentTestForInnerError_STATUS_Unrolled, InnerError_STATUS_UnrolledGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForInnerError_STATUS_Unrolled tests if a specific instance of InnerError_STATUS_Unrolled can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForInnerError_STATUS_Unrolled(subject InnerError_STATUS_Unrolled) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.InnerError_STATUS_Unrolled - err := copied.AssignProperties_To_InnerError_STATUS_Unrolled(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual InnerError_STATUS_Unrolled - err = actual.AssignProperties_From_InnerError_STATUS_Unrolled(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_InnerError_STATUS_Unrolled_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of InnerError_STATUS_Unrolled via JSON returns original", - prop.ForAll(RunJSONSerializationTestForInnerError_STATUS_Unrolled, InnerError_STATUS_UnrolledGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForInnerError_STATUS_Unrolled runs a test to see if a specific instance of InnerError_STATUS_Unrolled round trips to JSON and back losslessly -func RunJSONSerializationTestForInnerError_STATUS_Unrolled(subject InnerError_STATUS_Unrolled) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual InnerError_STATUS_Unrolled - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of InnerError_STATUS_Unrolled instances for property testing - lazily instantiated by -// InnerError_STATUS_UnrolledGenerator() -var innerError_STATUS_UnrolledGenerator gopter.Gen - -// InnerError_STATUS_UnrolledGenerator returns a generator of InnerError_STATUS_Unrolled instances for property testing. -func InnerError_STATUS_UnrolledGenerator() gopter.Gen { - if innerError_STATUS_UnrolledGenerator != nil { - return innerError_STATUS_UnrolledGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForInnerError_STATUS_Unrolled(generators) - innerError_STATUS_UnrolledGenerator = gen.Struct(reflect.TypeOf(InnerError_STATUS_Unrolled{}), generators) - - return innerError_STATUS_UnrolledGenerator -} - -// 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["Code"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_SecretStoreResource_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from SecretStoreResource to SecretStoreResource via AssignProperties_To_SecretStoreResource & AssignProperties_From_SecretStoreResource returns original", - prop.ForAll(RunPropertyAssignmentTestForSecretStoreResource, SecretStoreResourceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForSecretStoreResource tests if a specific instance of SecretStoreResource can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForSecretStoreResource(subject SecretStoreResource) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.SecretStoreResource - err := copied.AssignProperties_To_SecretStoreResource(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual SecretStoreResource - err = actual.AssignProperties_From_SecretStoreResource(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_SecretStoreResource_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of SecretStoreResource via JSON returns original", - prop.ForAll(RunJSONSerializationTestForSecretStoreResource, SecretStoreResourceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForSecretStoreResource runs a test to see if a specific instance of SecretStoreResource round trips to JSON and back losslessly -func RunJSONSerializationTestForSecretStoreResource(subject SecretStoreResource) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual SecretStoreResource - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of SecretStoreResource instances for property testing - lazily instantiated by -// SecretStoreResourceGenerator() -var secretStoreResourceGenerator gopter.Gen - -// SecretStoreResourceGenerator returns a generator of SecretStoreResource instances for property testing. -func SecretStoreResourceGenerator() gopter.Gen { - if secretStoreResourceGenerator != nil { - return secretStoreResourceGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreResource(generators) - secretStoreResourceGenerator = gen.Struct(reflect.TypeOf(SecretStoreResource{}), generators) - - return secretStoreResourceGenerator -} - -// AddIndependentPropertyGeneratorsForSecretStoreResource is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForSecretStoreResource(gens map[string]gopter.Gen) { - gens["SecretStoreType"] = gen.PtrOf(gen.OneConstOf(SecretStoreResource_SecretStoreType_AzureKeyVault, SecretStoreResource_SecretStoreType_Invalid)) - gens["Uri"] = gen.PtrOf(gen.AlphaString()) - gens["Value"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_SecretStoreResource_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from SecretStoreResource_STATUS to SecretStoreResource_STATUS via AssignProperties_To_SecretStoreResource_STATUS & AssignProperties_From_SecretStoreResource_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForSecretStoreResource_STATUS, SecretStoreResource_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForSecretStoreResource_STATUS tests if a specific instance of SecretStoreResource_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForSecretStoreResource_STATUS(subject SecretStoreResource_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.SecretStoreResource_STATUS - err := copied.AssignProperties_To_SecretStoreResource_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual SecretStoreResource_STATUS - err = actual.AssignProperties_From_SecretStoreResource_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_SecretStoreResource_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of SecretStoreResource_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForSecretStoreResource_STATUS, SecretStoreResource_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForSecretStoreResource_STATUS runs a test to see if a specific instance of SecretStoreResource_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForSecretStoreResource_STATUS(subject SecretStoreResource_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual SecretStoreResource_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of SecretStoreResource_STATUS instances for property testing - lazily instantiated by -// SecretStoreResource_STATUSGenerator() -var secretStoreResource_STATUSGenerator gopter.Gen - -// SecretStoreResource_STATUSGenerator returns a generator of SecretStoreResource_STATUS instances for property testing. -func SecretStoreResource_STATUSGenerator() gopter.Gen { - if secretStoreResource_STATUSGenerator != nil { - return secretStoreResource_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreResource_STATUS(generators) - secretStoreResource_STATUSGenerator = gen.Struct(reflect.TypeOf(SecretStoreResource_STATUS{}), generators) - - return secretStoreResource_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForSecretStoreResource_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForSecretStoreResource_STATUS(gens map[string]gopter.Gen) { - gens["SecretStoreType"] = gen.PtrOf(gen.OneConstOf(SecretStoreResource_SecretStoreType_STATUS_AzureKeyVault, SecretStoreResource_SecretStoreType_STATUS_Invalid)) - gens["Uri"] = gen.PtrOf(gen.AlphaString()) - gens["Value"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_AzureOperationalStoreParameters_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from AzureOperationalStoreParameters to AzureOperationalStoreParameters via AssignProperties_To_AzureOperationalStoreParameters & AssignProperties_From_AzureOperationalStoreParameters returns original", - prop.ForAll(RunPropertyAssignmentTestForAzureOperationalStoreParameters, AzureOperationalStoreParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForAzureOperationalStoreParameters tests if a specific instance of AzureOperationalStoreParameters can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForAzureOperationalStoreParameters(subject AzureOperationalStoreParameters) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.AzureOperationalStoreParameters - err := copied.AssignProperties_To_AzureOperationalStoreParameters(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual AzureOperationalStoreParameters - err = actual.AssignProperties_From_AzureOperationalStoreParameters(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_AzureOperationalStoreParameters_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of AzureOperationalStoreParameters via JSON returns original", - prop.ForAll(RunJSONSerializationTestForAzureOperationalStoreParameters, AzureOperationalStoreParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForAzureOperationalStoreParameters runs a test to see if a specific instance of AzureOperationalStoreParameters round trips to JSON and back losslessly -func RunJSONSerializationTestForAzureOperationalStoreParameters(subject AzureOperationalStoreParameters) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual AzureOperationalStoreParameters - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of AzureOperationalStoreParameters instances for property testing - lazily instantiated by -// AzureOperationalStoreParametersGenerator() -var azureOperationalStoreParametersGenerator gopter.Gen - -// AzureOperationalStoreParametersGenerator returns a generator of AzureOperationalStoreParameters instances for property testing. -func AzureOperationalStoreParametersGenerator() gopter.Gen { - if azureOperationalStoreParametersGenerator != nil { - return azureOperationalStoreParametersGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters(generators) - azureOperationalStoreParametersGenerator = gen.Struct(reflect.TypeOf(AzureOperationalStoreParameters{}), generators) - - return azureOperationalStoreParametersGenerator -} - -// AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters(gens map[string]gopter.Gen) { - gens["DataStoreType"] = gen.PtrOf(gen.OneConstOf(AzureOperationalStoreParameters_DataStoreType_ArchiveStore, AzureOperationalStoreParameters_DataStoreType_OperationalStore, AzureOperationalStoreParameters_DataStoreType_VaultStore)) - gens["ObjectType"] = gen.PtrOf(gen.OneConstOf(AzureOperationalStoreParameters_ObjectType_AzureOperationalStoreParameters)) - gens["ResourceGroupId"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_AzureOperationalStoreParameters_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from AzureOperationalStoreParameters_STATUS to AzureOperationalStoreParameters_STATUS via AssignProperties_To_AzureOperationalStoreParameters_STATUS & AssignProperties_From_AzureOperationalStoreParameters_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForAzureOperationalStoreParameters_STATUS, AzureOperationalStoreParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForAzureOperationalStoreParameters_STATUS tests if a specific instance of AzureOperationalStoreParameters_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForAzureOperationalStoreParameters_STATUS(subject AzureOperationalStoreParameters_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.AzureOperationalStoreParameters_STATUS - err := copied.AssignProperties_To_AzureOperationalStoreParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual AzureOperationalStoreParameters_STATUS - err = actual.AssignProperties_From_AzureOperationalStoreParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_AzureOperationalStoreParameters_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of AzureOperationalStoreParameters_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForAzureOperationalStoreParameters_STATUS, AzureOperationalStoreParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForAzureOperationalStoreParameters_STATUS runs a test to see if a specific instance of AzureOperationalStoreParameters_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForAzureOperationalStoreParameters_STATUS(subject AzureOperationalStoreParameters_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual AzureOperationalStoreParameters_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of AzureOperationalStoreParameters_STATUS instances for property testing - lazily instantiated by -// AzureOperationalStoreParameters_STATUSGenerator() -var azureOperationalStoreParameters_STATUSGenerator gopter.Gen - -// AzureOperationalStoreParameters_STATUSGenerator returns a generator of AzureOperationalStoreParameters_STATUS instances for property testing. -func AzureOperationalStoreParameters_STATUSGenerator() gopter.Gen { - if azureOperationalStoreParameters_STATUSGenerator != nil { - return azureOperationalStoreParameters_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters_STATUS(generators) - azureOperationalStoreParameters_STATUSGenerator = gen.Struct(reflect.TypeOf(AzureOperationalStoreParameters_STATUS{}), generators) - - return azureOperationalStoreParameters_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters_STATUS(gens map[string]gopter.Gen) { - gens["DataStoreType"] = gen.PtrOf(gen.OneConstOf(AzureOperationalStoreParameters_DataStoreType_STATUS_ArchiveStore, AzureOperationalStoreParameters_DataStoreType_STATUS_OperationalStore, AzureOperationalStoreParameters_DataStoreType_STATUS_VaultStore)) - gens["ObjectType"] = gen.PtrOf(gen.OneConstOf(AzureOperationalStoreParameters_ObjectType_STATUS_AzureOperationalStoreParameters)) - gens["ResourceGroupId"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_BlobBackupDatasourceParameters_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BlobBackupDatasourceParameters to BlobBackupDatasourceParameters via AssignProperties_To_BlobBackupDatasourceParameters & AssignProperties_From_BlobBackupDatasourceParameters returns original", - prop.ForAll(RunPropertyAssignmentTestForBlobBackupDatasourceParameters, BlobBackupDatasourceParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBlobBackupDatasourceParameters tests if a specific instance of BlobBackupDatasourceParameters can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBlobBackupDatasourceParameters(subject BlobBackupDatasourceParameters) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.BlobBackupDatasourceParameters - err := copied.AssignProperties_To_BlobBackupDatasourceParameters(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BlobBackupDatasourceParameters - err = actual.AssignProperties_From_BlobBackupDatasourceParameters(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BlobBackupDatasourceParameters_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BlobBackupDatasourceParameters via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBlobBackupDatasourceParameters, BlobBackupDatasourceParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBlobBackupDatasourceParameters runs a test to see if a specific instance of BlobBackupDatasourceParameters round trips to JSON and back losslessly -func RunJSONSerializationTestForBlobBackupDatasourceParameters(subject BlobBackupDatasourceParameters) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BlobBackupDatasourceParameters - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BlobBackupDatasourceParameters instances for property testing - lazily instantiated by -// BlobBackupDatasourceParametersGenerator() -var blobBackupDatasourceParametersGenerator gopter.Gen - -// BlobBackupDatasourceParametersGenerator returns a generator of BlobBackupDatasourceParameters instances for property testing. -func BlobBackupDatasourceParametersGenerator() gopter.Gen { - if blobBackupDatasourceParametersGenerator != nil { - return blobBackupDatasourceParametersGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters(generators) - blobBackupDatasourceParametersGenerator = gen.Struct(reflect.TypeOf(BlobBackupDatasourceParameters{}), generators) - - return blobBackupDatasourceParametersGenerator -} - -// AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters(gens map[string]gopter.Gen) { - gens["ContainersList"] = gen.SliceOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.OneConstOf(BlobBackupDatasourceParameters_ObjectType_BlobBackupDatasourceParameters)) -} - -func Test_BlobBackupDatasourceParameters_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BlobBackupDatasourceParameters_STATUS to BlobBackupDatasourceParameters_STATUS via AssignProperties_To_BlobBackupDatasourceParameters_STATUS & AssignProperties_From_BlobBackupDatasourceParameters_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForBlobBackupDatasourceParameters_STATUS, BlobBackupDatasourceParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBlobBackupDatasourceParameters_STATUS tests if a specific instance of BlobBackupDatasourceParameters_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBlobBackupDatasourceParameters_STATUS(subject BlobBackupDatasourceParameters_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.BlobBackupDatasourceParameters_STATUS - err := copied.AssignProperties_To_BlobBackupDatasourceParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BlobBackupDatasourceParameters_STATUS - err = actual.AssignProperties_From_BlobBackupDatasourceParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BlobBackupDatasourceParameters_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BlobBackupDatasourceParameters_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBlobBackupDatasourceParameters_STATUS, BlobBackupDatasourceParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBlobBackupDatasourceParameters_STATUS runs a test to see if a specific instance of BlobBackupDatasourceParameters_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForBlobBackupDatasourceParameters_STATUS(subject BlobBackupDatasourceParameters_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BlobBackupDatasourceParameters_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BlobBackupDatasourceParameters_STATUS instances for property testing - lazily instantiated by -// BlobBackupDatasourceParameters_STATUSGenerator() -var blobBackupDatasourceParameters_STATUSGenerator gopter.Gen - -// BlobBackupDatasourceParameters_STATUSGenerator returns a generator of BlobBackupDatasourceParameters_STATUS instances for property testing. -func BlobBackupDatasourceParameters_STATUSGenerator() gopter.Gen { - if blobBackupDatasourceParameters_STATUSGenerator != nil { - return blobBackupDatasourceParameters_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters_STATUS(generators) - blobBackupDatasourceParameters_STATUSGenerator = gen.Struct(reflect.TypeOf(BlobBackupDatasourceParameters_STATUS{}), generators) - - return blobBackupDatasourceParameters_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters_STATUS(gens map[string]gopter.Gen) { - gens["ContainersList"] = gen.SliceOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.OneConstOf(BlobBackupDatasourceParameters_ObjectType_STATUS_BlobBackupDatasourceParameters)) -} - -func Test_KubernetesClusterBackupDatasourceParameters_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from KubernetesClusterBackupDatasourceParameters to KubernetesClusterBackupDatasourceParameters via AssignProperties_To_KubernetesClusterBackupDatasourceParameters & AssignProperties_From_KubernetesClusterBackupDatasourceParameters returns original", - prop.ForAll(RunPropertyAssignmentTestForKubernetesClusterBackupDatasourceParameters, KubernetesClusterBackupDatasourceParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForKubernetesClusterBackupDatasourceParameters tests if a specific instance of KubernetesClusterBackupDatasourceParameters can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForKubernetesClusterBackupDatasourceParameters(subject KubernetesClusterBackupDatasourceParameters) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.KubernetesClusterBackupDatasourceParameters - err := copied.AssignProperties_To_KubernetesClusterBackupDatasourceParameters(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual KubernetesClusterBackupDatasourceParameters - err = actual.AssignProperties_From_KubernetesClusterBackupDatasourceParameters(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_KubernetesClusterBackupDatasourceParameters_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of KubernetesClusterBackupDatasourceParameters via JSON returns original", - prop.ForAll(RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters, KubernetesClusterBackupDatasourceParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters runs a test to see if a specific instance of KubernetesClusterBackupDatasourceParameters round trips to JSON and back losslessly -func RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters(subject KubernetesClusterBackupDatasourceParameters) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual KubernetesClusterBackupDatasourceParameters - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of KubernetesClusterBackupDatasourceParameters instances for property testing - lazily instantiated by -// KubernetesClusterBackupDatasourceParametersGenerator() -var kubernetesClusterBackupDatasourceParametersGenerator gopter.Gen - -// KubernetesClusterBackupDatasourceParametersGenerator returns a generator of KubernetesClusterBackupDatasourceParameters instances for property testing. -func KubernetesClusterBackupDatasourceParametersGenerator() gopter.Gen { - if kubernetesClusterBackupDatasourceParametersGenerator != nil { - return kubernetesClusterBackupDatasourceParametersGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters(generators) - kubernetesClusterBackupDatasourceParametersGenerator = gen.Struct(reflect.TypeOf(KubernetesClusterBackupDatasourceParameters{}), generators) - - return kubernetesClusterBackupDatasourceParametersGenerator -} - -// AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters(gens map[string]gopter.Gen) { - gens["ExcludedNamespaces"] = gen.SliceOf(gen.AlphaString()) - gens["ExcludedResourceTypes"] = gen.SliceOf(gen.AlphaString()) - gens["IncludeClusterScopeResources"] = gen.PtrOf(gen.Bool()) - gens["IncludedNamespaces"] = gen.SliceOf(gen.AlphaString()) - gens["IncludedResourceTypes"] = gen.SliceOf(gen.AlphaString()) - gens["LabelSelectors"] = gen.SliceOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.OneConstOf(KubernetesClusterBackupDatasourceParameters_ObjectType_KubernetesClusterBackupDatasourceParameters)) - gens["SnapshotVolumes"] = gen.PtrOf(gen.Bool()) -} - -func Test_KubernetesClusterBackupDatasourceParameters_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from KubernetesClusterBackupDatasourceParameters_STATUS to KubernetesClusterBackupDatasourceParameters_STATUS via AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS & AssignProperties_From_KubernetesClusterBackupDatasourceParameters_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForKubernetesClusterBackupDatasourceParameters_STATUS, KubernetesClusterBackupDatasourceParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForKubernetesClusterBackupDatasourceParameters_STATUS tests if a specific instance of KubernetesClusterBackupDatasourceParameters_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForKubernetesClusterBackupDatasourceParameters_STATUS(subject KubernetesClusterBackupDatasourceParameters_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20230101s.KubernetesClusterBackupDatasourceParameters_STATUS - err := copied.AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual KubernetesClusterBackupDatasourceParameters_STATUS - err = actual.AssignProperties_From_KubernetesClusterBackupDatasourceParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_KubernetesClusterBackupDatasourceParameters_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of KubernetesClusterBackupDatasourceParameters_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters_STATUS, KubernetesClusterBackupDatasourceParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters_STATUS runs a test to see if a specific instance of KubernetesClusterBackupDatasourceParameters_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters_STATUS(subject KubernetesClusterBackupDatasourceParameters_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual KubernetesClusterBackupDatasourceParameters_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of KubernetesClusterBackupDatasourceParameters_STATUS instances for property testing - lazily instantiated -// by KubernetesClusterBackupDatasourceParameters_STATUSGenerator() -var kubernetesClusterBackupDatasourceParameters_STATUSGenerator gopter.Gen - -// KubernetesClusterBackupDatasourceParameters_STATUSGenerator returns a generator of KubernetesClusterBackupDatasourceParameters_STATUS instances for property testing. -func KubernetesClusterBackupDatasourceParameters_STATUSGenerator() gopter.Gen { - if kubernetesClusterBackupDatasourceParameters_STATUSGenerator != nil { - return kubernetesClusterBackupDatasourceParameters_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters_STATUS(generators) - kubernetesClusterBackupDatasourceParameters_STATUSGenerator = gen.Struct(reflect.TypeOf(KubernetesClusterBackupDatasourceParameters_STATUS{}), generators) - - return kubernetesClusterBackupDatasourceParameters_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters_STATUS(gens map[string]gopter.Gen) { - gens["ExcludedNamespaces"] = gen.SliceOf(gen.AlphaString()) - gens["ExcludedResourceTypes"] = gen.SliceOf(gen.AlphaString()) - gens["IncludeClusterScopeResources"] = gen.PtrOf(gen.Bool()) - gens["IncludedNamespaces"] = gen.SliceOf(gen.AlphaString()) - gens["IncludedResourceTypes"] = gen.SliceOf(gen.AlphaString()) - gens["LabelSelectors"] = gen.SliceOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.OneConstOf(KubernetesClusterBackupDatasourceParameters_ObjectType_STATUS_KubernetesClusterBackupDatasourceParameters)) - gens["SnapshotVolumes"] = gen.PtrOf(gen.Bool()) -} diff --git a/v2/api/dataprotection/v1api20230101/backup_vaults_backup_policy_types_gen_test.go b/v2/api/dataprotection/v1api20230101/backup_vaults_backup_policy_types_gen_test.go index e2fc75799e0..20ad4690ec4 100644 --- a/v2/api/dataprotection/v1api20230101/backup_vaults_backup_policy_types_gen_test.go +++ b/v2/api/dataprotection/v1api20230101/backup_vaults_backup_policy_types_gen_test.go @@ -6,7 +6,7 @@ package v1api20230101 import ( "encoding/json" v20230101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101/storage" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" + v20231101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/kr/pretty" @@ -37,7 +37,7 @@ func RunResourceConversionTestForBackupVaultsBackupPolicy(subject BackupVaultsBa copied := subject.DeepCopy() // Convert to our hub version - var hub v20231201s.BackupVaultsBackupPolicy + var hub v20231101s.BackupVaultsBackupPolicy err := copied.ConvertTo(&hub) if err != nil { return err.Error() diff --git a/v2/api/dataprotection/v1api20230101/storage/backup_vault_types_gen.go b/v2/api/dataprotection/v1api20230101/storage/backup_vault_types_gen.go index 687c295d5c9..c5de819a0f6 100644 --- a/v2/api/dataprotection/v1api20230101/storage/backup_vault_types_gen.go +++ b/v2/api/dataprotection/v1api20230101/storage/backup_vault_types_gen.go @@ -6,7 +6,7 @@ package storage import ( "context" "fmt" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" + v20231101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage" "github.com/Azure/azure-service-operator/v2/internal/genericarmclient" "github.com/Azure/azure-service-operator/v2/pkg/genruntime" "github.com/Azure/azure-service-operator/v2/pkg/genruntime/conditions" @@ -52,9 +52,9 @@ var _ conversion.Convertible = &BackupVault{} // ConvertFrom populates our BackupVault from the provided hub BackupVault func (vault *BackupVault) ConvertFrom(hub conversion.Hub) error { - source, ok := hub.(*v20231201s.BackupVault) + source, ok := hub.(*v20231101s.BackupVault) if !ok { - return fmt.Errorf("expected dataprotection/v1api20231201/storage/BackupVault but received %T instead", hub) + return fmt.Errorf("expected dataprotection/v1api20231101/storage/BackupVault but received %T instead", hub) } return vault.AssignProperties_From_BackupVault(source) @@ -62,9 +62,9 @@ func (vault *BackupVault) ConvertFrom(hub conversion.Hub) error { // ConvertTo populates the provided hub BackupVault from our BackupVault func (vault *BackupVault) ConvertTo(hub conversion.Hub) error { - destination, ok := hub.(*v20231201s.BackupVault) + destination, ok := hub.(*v20231101s.BackupVault) if !ok { - return fmt.Errorf("expected dataprotection/v1api20231201/storage/BackupVault but received %T instead", hub) + return fmt.Errorf("expected dataprotection/v1api20231101/storage/BackupVault but received %T instead", hub) } return vault.AssignProperties_To_BackupVault(destination) @@ -161,7 +161,7 @@ func (vault *BackupVault) SetStatus(status genruntime.ConvertibleStatus) error { } // AssignProperties_From_BackupVault populates our BackupVault from the provided source BackupVault -func (vault *BackupVault) AssignProperties_From_BackupVault(source *v20231201s.BackupVault) error { +func (vault *BackupVault) AssignProperties_From_BackupVault(source *v20231101s.BackupVault) error { // ObjectMeta vault.ObjectMeta = *source.ObjectMeta.DeepCopy() @@ -196,13 +196,13 @@ func (vault *BackupVault) AssignProperties_From_BackupVault(source *v20231201s.B } // AssignProperties_To_BackupVault populates the provided destination BackupVault from our BackupVault -func (vault *BackupVault) AssignProperties_To_BackupVault(destination *v20231201s.BackupVault) error { +func (vault *BackupVault) AssignProperties_To_BackupVault(destination *v20231101s.BackupVault) error { // ObjectMeta destination.ObjectMeta = *vault.ObjectMeta.DeepCopy() // Spec - var spec v20231201s.BackupVault_Spec + var spec v20231101s.BackupVault_Spec err := vault.Spec.AssignProperties_To_BackupVault_Spec(&spec) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVault_Spec() to populate field Spec") @@ -210,7 +210,7 @@ func (vault *BackupVault) AssignProperties_To_BackupVault(destination *v20231201 destination.Spec = spec // Status - var status v20231201s.BackupVaultResource_STATUS + var status v20231101s.BackupVaultResource_STATUS err = vault.Status.AssignProperties_To_BackupVaultResource_STATUS(&status) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVaultResource_STATUS() to populate field Status") @@ -257,8 +257,8 @@ type APIVersion string const APIVersion_Value = APIVersion("2023-01-01") type augmentConversionForBackupVault interface { - AssignPropertiesFrom(src *v20231201s.BackupVault) error - AssignPropertiesTo(dst *v20231201s.BackupVault) error + AssignPropertiesFrom(src *v20231101s.BackupVault) error + AssignPropertiesTo(dst *v20231101s.BackupVault) error } // Storage version of v1api20230101.BackupVault_Spec @@ -285,14 +285,14 @@ var _ genruntime.ConvertibleSpec = &BackupVault_Spec{} // ConvertSpecFrom populates our BackupVault_Spec from the provided source func (vault *BackupVault_Spec) ConvertSpecFrom(source genruntime.ConvertibleSpec) error { - src, ok := source.(*v20231201s.BackupVault_Spec) + src, ok := source.(*v20231101s.BackupVault_Spec) if ok { // Populate our instance from source return vault.AssignProperties_From_BackupVault_Spec(src) } // Convert to an intermediate form - src = &v20231201s.BackupVault_Spec{} + src = &v20231101s.BackupVault_Spec{} err := src.ConvertSpecFrom(source) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertSpecFrom()") @@ -309,14 +309,14 @@ func (vault *BackupVault_Spec) ConvertSpecFrom(source genruntime.ConvertibleSpec // ConvertSpecTo populates the provided destination from our BackupVault_Spec func (vault *BackupVault_Spec) ConvertSpecTo(destination genruntime.ConvertibleSpec) error { - dst, ok := destination.(*v20231201s.BackupVault_Spec) + dst, ok := destination.(*v20231101s.BackupVault_Spec) if ok { // Populate destination from our instance return vault.AssignProperties_To_BackupVault_Spec(dst) } // Convert to an intermediate form - dst = &v20231201s.BackupVault_Spec{} + dst = &v20231101s.BackupVault_Spec{} err := vault.AssignProperties_To_BackupVault_Spec(dst) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertSpecTo()") @@ -332,7 +332,7 @@ func (vault *BackupVault_Spec) ConvertSpecTo(destination genruntime.ConvertibleS } // AssignProperties_From_BackupVault_Spec populates our BackupVault_Spec from the provided source BackupVault_Spec -func (vault *BackupVault_Spec) AssignProperties_From_BackupVault_Spec(source *v20231201s.BackupVault_Spec) error { +func (vault *BackupVault_Spec) AssignProperties_From_BackupVault_Spec(source *v20231101s.BackupVault_Spec) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -413,7 +413,7 @@ func (vault *BackupVault_Spec) AssignProperties_From_BackupVault_Spec(source *v2 } // AssignProperties_To_BackupVault_Spec populates the provided destination BackupVault_Spec from our BackupVault_Spec -func (vault *BackupVault_Spec) AssignProperties_To_BackupVault_Spec(destination *v20231201s.BackupVault_Spec) error { +func (vault *BackupVault_Spec) AssignProperties_To_BackupVault_Spec(destination *v20231101s.BackupVault_Spec) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(vault.PropertyBag) @@ -422,7 +422,7 @@ func (vault *BackupVault_Spec) AssignProperties_To_BackupVault_Spec(destination // Identity if vault.Identity != nil { - var identity v20231201s.DppIdentityDetails + var identity v20231101s.DppIdentityDetails err := vault.Identity.AssignProperties_To_DppIdentityDetails(&identity) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DppIdentityDetails() to populate field Identity") @@ -437,7 +437,7 @@ func (vault *BackupVault_Spec) AssignProperties_To_BackupVault_Spec(destination // OperatorSpec if vault.OperatorSpec != nil { - var operatorSpec v20231201s.BackupVaultOperatorSpec + var operatorSpec v20231101s.BackupVaultOperatorSpec err := vault.OperatorSpec.AssignProperties_To_BackupVaultOperatorSpec(&operatorSpec) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVaultOperatorSpec() to populate field OperatorSpec") @@ -460,7 +460,7 @@ func (vault *BackupVault_Spec) AssignProperties_To_BackupVault_Spec(destination // Properties if vault.Properties != nil { - var property v20231201s.BackupVaultSpec + var property v20231101s.BackupVaultSpec err := vault.Properties.AssignProperties_To_BackupVaultSpec(&property) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVaultSpec() to populate field Properties") @@ -513,14 +513,14 @@ var _ genruntime.ConvertibleStatus = &BackupVaultResource_STATUS{} // ConvertStatusFrom populates our BackupVaultResource_STATUS from the provided source func (resource *BackupVaultResource_STATUS) ConvertStatusFrom(source genruntime.ConvertibleStatus) error { - src, ok := source.(*v20231201s.BackupVaultResource_STATUS) + src, ok := source.(*v20231101s.BackupVaultResource_STATUS) if ok { // Populate our instance from source return resource.AssignProperties_From_BackupVaultResource_STATUS(src) } // Convert to an intermediate form - src = &v20231201s.BackupVaultResource_STATUS{} + src = &v20231101s.BackupVaultResource_STATUS{} err := src.ConvertStatusFrom(source) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertStatusFrom()") @@ -537,14 +537,14 @@ func (resource *BackupVaultResource_STATUS) ConvertStatusFrom(source genruntime. // ConvertStatusTo populates the provided destination from our BackupVaultResource_STATUS func (resource *BackupVaultResource_STATUS) ConvertStatusTo(destination genruntime.ConvertibleStatus) error { - dst, ok := destination.(*v20231201s.BackupVaultResource_STATUS) + dst, ok := destination.(*v20231101s.BackupVaultResource_STATUS) if ok { // Populate destination from our instance return resource.AssignProperties_To_BackupVaultResource_STATUS(dst) } // Convert to an intermediate form - dst = &v20231201s.BackupVaultResource_STATUS{} + dst = &v20231101s.BackupVaultResource_STATUS{} err := resource.AssignProperties_To_BackupVaultResource_STATUS(dst) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertStatusTo()") @@ -560,7 +560,7 @@ func (resource *BackupVaultResource_STATUS) ConvertStatusTo(destination genrunti } // AssignProperties_From_BackupVaultResource_STATUS populates our BackupVaultResource_STATUS from the provided source BackupVaultResource_STATUS -func (resource *BackupVaultResource_STATUS) AssignProperties_From_BackupVaultResource_STATUS(source *v20231201s.BackupVaultResource_STATUS) error { +func (resource *BackupVaultResource_STATUS) AssignProperties_From_BackupVaultResource_STATUS(source *v20231101s.BackupVaultResource_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -642,7 +642,7 @@ func (resource *BackupVaultResource_STATUS) AssignProperties_From_BackupVaultRes } // AssignProperties_To_BackupVaultResource_STATUS populates the provided destination BackupVaultResource_STATUS from our BackupVaultResource_STATUS -func (resource *BackupVaultResource_STATUS) AssignProperties_To_BackupVaultResource_STATUS(destination *v20231201s.BackupVaultResource_STATUS) error { +func (resource *BackupVaultResource_STATUS) AssignProperties_To_BackupVaultResource_STATUS(destination *v20231101s.BackupVaultResource_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(resource.PropertyBag) @@ -657,7 +657,7 @@ func (resource *BackupVaultResource_STATUS) AssignProperties_To_BackupVaultResou // Identity if resource.Identity != nil { - var identity v20231201s.DppIdentityDetails_STATUS + var identity v20231101s.DppIdentityDetails_STATUS err := resource.Identity.AssignProperties_To_DppIdentityDetails_STATUS(&identity) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DppIdentityDetails_STATUS() to populate field Identity") @@ -675,7 +675,7 @@ func (resource *BackupVaultResource_STATUS) AssignProperties_To_BackupVaultResou // Properties if resource.Properties != nil { - var property v20231201s.BackupVault_STATUS + var property v20231101s.BackupVault_STATUS err := resource.Properties.AssignProperties_To_BackupVault_STATUS(&property) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVault_STATUS() to populate field Properties") @@ -687,7 +687,7 @@ func (resource *BackupVaultResource_STATUS) AssignProperties_To_BackupVaultResou // SystemData if resource.SystemData != nil { - var systemDatum v20231201s.SystemData_STATUS + var systemDatum v20231101s.SystemData_STATUS err := resource.SystemData.AssignProperties_To_SystemData_STATUS(&systemDatum) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SystemData_STATUS() to populate field SystemData") @@ -724,13 +724,13 @@ func (resource *BackupVaultResource_STATUS) AssignProperties_To_BackupVaultResou } type augmentConversionForBackupVault_Spec interface { - AssignPropertiesFrom(src *v20231201s.BackupVault_Spec) error - AssignPropertiesTo(dst *v20231201s.BackupVault_Spec) error + AssignPropertiesFrom(src *v20231101s.BackupVault_Spec) error + AssignPropertiesTo(dst *v20231101s.BackupVault_Spec) error } type augmentConversionForBackupVaultResource_STATUS interface { - AssignPropertiesFrom(src *v20231201s.BackupVaultResource_STATUS) error - AssignPropertiesTo(dst *v20231201s.BackupVaultResource_STATUS) error + AssignPropertiesFrom(src *v20231101s.BackupVaultResource_STATUS) error + AssignPropertiesTo(dst *v20231101s.BackupVaultResource_STATUS) error } // Storage version of v1api20230101.BackupVault_STATUS @@ -748,7 +748,7 @@ type BackupVault_STATUS struct { } // AssignProperties_From_BackupVault_STATUS populates our BackupVault_STATUS from the provided source BackupVault_STATUS -func (vault *BackupVault_STATUS) AssignProperties_From_BackupVault_STATUS(source *v20231201s.BackupVault_STATUS) error { +func (vault *BackupVault_STATUS) AssignProperties_From_BackupVault_STATUS(source *v20231101s.BackupVault_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -867,13 +867,13 @@ func (vault *BackupVault_STATUS) AssignProperties_From_BackupVault_STATUS(source } // AssignProperties_To_BackupVault_STATUS populates the provided destination BackupVault_STATUS from our BackupVault_STATUS -func (vault *BackupVault_STATUS) AssignProperties_To_BackupVault_STATUS(destination *v20231201s.BackupVault_STATUS) error { +func (vault *BackupVault_STATUS) AssignProperties_To_BackupVault_STATUS(destination *v20231101s.BackupVault_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(vault.PropertyBag) // FeatureSettings if vault.FeatureSettings != nil { - var featureSetting v20231201s.FeatureSettings_STATUS + var featureSetting v20231101s.FeatureSettings_STATUS err := vault.FeatureSettings.AssignProperties_To_FeatureSettings_STATUS(&featureSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_FeatureSettings_STATUS() to populate field FeatureSettings") @@ -893,7 +893,7 @@ func (vault *BackupVault_STATUS) AssignProperties_To_BackupVault_STATUS(destinat // MonitoringSettings if vault.MonitoringSettings != nil { - var monitoringSetting v20231201s.MonitoringSettings_STATUS + var monitoringSetting v20231101s.MonitoringSettings_STATUS err := vault.MonitoringSettings.AssignProperties_To_MonitoringSettings_STATUS(&monitoringSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_MonitoringSettings_STATUS() to populate field MonitoringSettings") @@ -921,7 +921,7 @@ func (vault *BackupVault_STATUS) AssignProperties_To_BackupVault_STATUS(destinat // ResourceMoveDetails if vault.ResourceMoveDetails != nil { - var resourceMoveDetail v20231201s.ResourceMoveDetails_STATUS + var resourceMoveDetail v20231101s.ResourceMoveDetails_STATUS err := vault.ResourceMoveDetails.AssignProperties_To_ResourceMoveDetails_STATUS(&resourceMoveDetail) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ResourceMoveDetails_STATUS() to populate field ResourceMoveDetails") @@ -949,7 +949,7 @@ func (vault *BackupVault_STATUS) AssignProperties_To_BackupVault_STATUS(destinat // SecuritySettings if vault.SecuritySettings != nil { - var securitySetting v20231201s.SecuritySettings_STATUS + var securitySetting v20231101s.SecuritySettings_STATUS err := vault.SecuritySettings.AssignProperties_To_SecuritySettings_STATUS(&securitySetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SecuritySettings_STATUS() to populate field SecuritySettings") @@ -961,11 +961,11 @@ func (vault *BackupVault_STATUS) AssignProperties_To_BackupVault_STATUS(destinat // StorageSettings if vault.StorageSettings != nil { - storageSettingList := make([]v20231201s.StorageSetting_STATUS, len(vault.StorageSettings)) + storageSettingList := make([]v20231101s.StorageSetting_STATUS, len(vault.StorageSettings)) for storageSettingIndex, storageSettingItem := range vault.StorageSettings { // Shadow the loop variable to avoid aliasing storageSettingItem := storageSettingItem - var storageSetting v20231201s.StorageSetting_STATUS + var storageSetting v20231101s.StorageSetting_STATUS err := storageSettingItem.AssignProperties_To_StorageSetting_STATUS(&storageSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_StorageSetting_STATUS() to populate field StorageSettings") @@ -1005,7 +1005,7 @@ type BackupVaultOperatorSpec struct { } // AssignProperties_From_BackupVaultOperatorSpec populates our BackupVaultOperatorSpec from the provided source BackupVaultOperatorSpec -func (operator *BackupVaultOperatorSpec) AssignProperties_From_BackupVaultOperatorSpec(source *v20231201s.BackupVaultOperatorSpec) error { +func (operator *BackupVaultOperatorSpec) AssignProperties_From_BackupVaultOperatorSpec(source *v20231101s.BackupVaultOperatorSpec) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1042,13 +1042,13 @@ func (operator *BackupVaultOperatorSpec) AssignProperties_From_BackupVaultOperat } // AssignProperties_To_BackupVaultOperatorSpec populates the provided destination BackupVaultOperatorSpec from our BackupVaultOperatorSpec -func (operator *BackupVaultOperatorSpec) AssignProperties_To_BackupVaultOperatorSpec(destination *v20231201s.BackupVaultOperatorSpec) error { +func (operator *BackupVaultOperatorSpec) AssignProperties_To_BackupVaultOperatorSpec(destination *v20231101s.BackupVaultOperatorSpec) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(operator.PropertyBag) // ConfigMaps if operator.ConfigMaps != nil { - var configMap v20231201s.BackupVaultOperatorConfigMaps + var configMap v20231101s.BackupVaultOperatorConfigMaps err := operator.ConfigMaps.AssignProperties_To_BackupVaultOperatorConfigMaps(&configMap) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVaultOperatorConfigMaps() to populate field ConfigMaps") @@ -1089,7 +1089,7 @@ type BackupVaultSpec struct { } // AssignProperties_From_BackupVaultSpec populates our BackupVaultSpec from the provided source BackupVaultSpec -func (vault *BackupVaultSpec) AssignProperties_From_BackupVaultSpec(source *v20231201s.BackupVaultSpec) error { +func (vault *BackupVaultSpec) AssignProperties_From_BackupVaultSpec(source *v20231101s.BackupVaultSpec) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1175,13 +1175,13 @@ func (vault *BackupVaultSpec) AssignProperties_From_BackupVaultSpec(source *v202 } // AssignProperties_To_BackupVaultSpec populates the provided destination BackupVaultSpec from our BackupVaultSpec -func (vault *BackupVaultSpec) AssignProperties_To_BackupVaultSpec(destination *v20231201s.BackupVaultSpec) error { +func (vault *BackupVaultSpec) AssignProperties_To_BackupVaultSpec(destination *v20231101s.BackupVaultSpec) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(vault.PropertyBag) // FeatureSettings if vault.FeatureSettings != nil { - var featureSetting v20231201s.FeatureSettings + var featureSetting v20231101s.FeatureSettings err := vault.FeatureSettings.AssignProperties_To_FeatureSettings(&featureSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_FeatureSettings() to populate field FeatureSettings") @@ -1193,7 +1193,7 @@ func (vault *BackupVaultSpec) AssignProperties_To_BackupVaultSpec(destination *v // MonitoringSettings if vault.MonitoringSettings != nil { - var monitoringSetting v20231201s.MonitoringSettings + var monitoringSetting v20231101s.MonitoringSettings err := vault.MonitoringSettings.AssignProperties_To_MonitoringSettings(&monitoringSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_MonitoringSettings() to populate field MonitoringSettings") @@ -1218,7 +1218,7 @@ func (vault *BackupVaultSpec) AssignProperties_To_BackupVaultSpec(destination *v // SecuritySettings if vault.SecuritySettings != nil { - var securitySetting v20231201s.SecuritySettings + var securitySetting v20231101s.SecuritySettings err := vault.SecuritySettings.AssignProperties_To_SecuritySettings(&securitySetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SecuritySettings() to populate field SecuritySettings") @@ -1230,11 +1230,11 @@ func (vault *BackupVaultSpec) AssignProperties_To_BackupVaultSpec(destination *v // StorageSettings if vault.StorageSettings != nil { - storageSettingList := make([]v20231201s.StorageSetting, len(vault.StorageSettings)) + storageSettingList := make([]v20231101s.StorageSetting, len(vault.StorageSettings)) for storageSettingIndex, storageSettingItem := range vault.StorageSettings { // Shadow the loop variable to avoid aliasing storageSettingItem := storageSettingItem - var storageSetting v20231201s.StorageSetting + var storageSetting v20231101s.StorageSetting err := storageSettingItem.AssignProperties_To_StorageSetting(&storageSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_StorageSetting() to populate field StorageSettings") @@ -1274,7 +1274,7 @@ type DppIdentityDetails struct { } // AssignProperties_From_DppIdentityDetails populates our DppIdentityDetails from the provided source DppIdentityDetails -func (details *DppIdentityDetails) AssignProperties_From_DppIdentityDetails(source *v20231201s.DppIdentityDetails) error { +func (details *DppIdentityDetails) AssignProperties_From_DppIdentityDetails(source *v20231101s.DppIdentityDetails) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1309,7 +1309,7 @@ func (details *DppIdentityDetails) AssignProperties_From_DppIdentityDetails(sour } // AssignProperties_To_DppIdentityDetails populates the provided destination DppIdentityDetails from our DppIdentityDetails -func (details *DppIdentityDetails) AssignProperties_To_DppIdentityDetails(destination *v20231201s.DppIdentityDetails) error { +func (details *DppIdentityDetails) AssignProperties_To_DppIdentityDetails(destination *v20231101s.DppIdentityDetails) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(details.PropertyBag) @@ -1318,7 +1318,7 @@ func (details *DppIdentityDetails) AssignProperties_To_DppIdentityDetails(destin // UserAssignedIdentities if propertyBag.Contains("UserAssignedIdentities") { - var userAssignedIdentity []v20231201s.UserAssignedIdentityDetails + var userAssignedIdentity []v20231101s.UserAssignedIdentityDetails err := propertyBag.Pull("UserAssignedIdentities", &userAssignedIdentity) if err != nil { return errors.Wrap(err, "pulling 'UserAssignedIdentities' from propertyBag") @@ -1359,7 +1359,7 @@ type DppIdentityDetails_STATUS struct { } // AssignProperties_From_DppIdentityDetails_STATUS populates our DppIdentityDetails_STATUS from the provided source DppIdentityDetails_STATUS -func (details *DppIdentityDetails_STATUS) AssignProperties_From_DppIdentityDetails_STATUS(source *v20231201s.DppIdentityDetails_STATUS) error { +func (details *DppIdentityDetails_STATUS) AssignProperties_From_DppIdentityDetails_STATUS(source *v20231101s.DppIdentityDetails_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1400,7 +1400,7 @@ func (details *DppIdentityDetails_STATUS) AssignProperties_From_DppIdentityDetai } // AssignProperties_To_DppIdentityDetails_STATUS populates the provided destination DppIdentityDetails_STATUS from our DppIdentityDetails_STATUS -func (details *DppIdentityDetails_STATUS) AssignProperties_To_DppIdentityDetails_STATUS(destination *v20231201s.DppIdentityDetails_STATUS) error { +func (details *DppIdentityDetails_STATUS) AssignProperties_To_DppIdentityDetails_STATUS(destination *v20231101s.DppIdentityDetails_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(details.PropertyBag) @@ -1415,7 +1415,7 @@ func (details *DppIdentityDetails_STATUS) AssignProperties_To_DppIdentityDetails // UserAssignedIdentities if propertyBag.Contains("UserAssignedIdentities") { - var userAssignedIdentity map[string]v20231201s.UserAssignedIdentity_STATUS + var userAssignedIdentity map[string]v20231101s.UserAssignedIdentity_STATUS err := propertyBag.Pull("UserAssignedIdentities", &userAssignedIdentity) if err != nil { return errors.Wrap(err, "pulling 'UserAssignedIdentities' from propertyBag") @@ -1459,7 +1459,7 @@ type SystemData_STATUS struct { } // AssignProperties_From_SystemData_STATUS populates our SystemData_STATUS from the provided source SystemData_STATUS -func (data *SystemData_STATUS) AssignProperties_From_SystemData_STATUS(source *v20231201s.SystemData_STATUS) error { +func (data *SystemData_STATUS) AssignProperties_From_SystemData_STATUS(source *v20231101s.SystemData_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1502,7 +1502,7 @@ func (data *SystemData_STATUS) AssignProperties_From_SystemData_STATUS(source *v } // AssignProperties_To_SystemData_STATUS populates the provided destination SystemData_STATUS from our SystemData_STATUS -func (data *SystemData_STATUS) AssignProperties_To_SystemData_STATUS(destination *v20231201s.SystemData_STATUS) error { +func (data *SystemData_STATUS) AssignProperties_To_SystemData_STATUS(destination *v20231101s.SystemData_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(data.PropertyBag) @@ -1545,33 +1545,33 @@ func (data *SystemData_STATUS) AssignProperties_To_SystemData_STATUS(destination } type augmentConversionForBackupVault_STATUS interface { - AssignPropertiesFrom(src *v20231201s.BackupVault_STATUS) error - AssignPropertiesTo(dst *v20231201s.BackupVault_STATUS) error + AssignPropertiesFrom(src *v20231101s.BackupVault_STATUS) error + AssignPropertiesTo(dst *v20231101s.BackupVault_STATUS) error } type augmentConversionForBackupVaultOperatorSpec interface { - AssignPropertiesFrom(src *v20231201s.BackupVaultOperatorSpec) error - AssignPropertiesTo(dst *v20231201s.BackupVaultOperatorSpec) error + AssignPropertiesFrom(src *v20231101s.BackupVaultOperatorSpec) error + AssignPropertiesTo(dst *v20231101s.BackupVaultOperatorSpec) error } type augmentConversionForBackupVaultSpec interface { - AssignPropertiesFrom(src *v20231201s.BackupVaultSpec) error - AssignPropertiesTo(dst *v20231201s.BackupVaultSpec) error + AssignPropertiesFrom(src *v20231101s.BackupVaultSpec) error + AssignPropertiesTo(dst *v20231101s.BackupVaultSpec) error } type augmentConversionForDppIdentityDetails interface { - AssignPropertiesFrom(src *v20231201s.DppIdentityDetails) error - AssignPropertiesTo(dst *v20231201s.DppIdentityDetails) error + AssignPropertiesFrom(src *v20231101s.DppIdentityDetails) error + AssignPropertiesTo(dst *v20231101s.DppIdentityDetails) error } type augmentConversionForDppIdentityDetails_STATUS interface { - AssignPropertiesFrom(src *v20231201s.DppIdentityDetails_STATUS) error - AssignPropertiesTo(dst *v20231201s.DppIdentityDetails_STATUS) error + AssignPropertiesFrom(src *v20231101s.DppIdentityDetails_STATUS) error + AssignPropertiesTo(dst *v20231101s.DppIdentityDetails_STATUS) error } type augmentConversionForSystemData_STATUS interface { - AssignPropertiesFrom(src *v20231201s.SystemData_STATUS) error - AssignPropertiesTo(dst *v20231201s.SystemData_STATUS) error + AssignPropertiesFrom(src *v20231101s.SystemData_STATUS) error + AssignPropertiesTo(dst *v20231101s.SystemData_STATUS) error } // Storage version of v1api20230101.BackupVaultOperatorConfigMaps @@ -1581,7 +1581,7 @@ type BackupVaultOperatorConfigMaps struct { } // AssignProperties_From_BackupVaultOperatorConfigMaps populates our BackupVaultOperatorConfigMaps from the provided source BackupVaultOperatorConfigMaps -func (maps *BackupVaultOperatorConfigMaps) AssignProperties_From_BackupVaultOperatorConfigMaps(source *v20231201s.BackupVaultOperatorConfigMaps) error { +func (maps *BackupVaultOperatorConfigMaps) AssignProperties_From_BackupVaultOperatorConfigMaps(source *v20231101s.BackupVaultOperatorConfigMaps) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1614,7 +1614,7 @@ func (maps *BackupVaultOperatorConfigMaps) AssignProperties_From_BackupVaultOper } // AssignProperties_To_BackupVaultOperatorConfigMaps populates the provided destination BackupVaultOperatorConfigMaps from our BackupVaultOperatorConfigMaps -func (maps *BackupVaultOperatorConfigMaps) AssignProperties_To_BackupVaultOperatorConfigMaps(destination *v20231201s.BackupVaultOperatorConfigMaps) error { +func (maps *BackupVaultOperatorConfigMaps) AssignProperties_To_BackupVaultOperatorConfigMaps(destination *v20231101s.BackupVaultOperatorConfigMaps) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(maps.PropertyBag) @@ -1654,7 +1654,7 @@ type FeatureSettings struct { } // AssignProperties_From_FeatureSettings populates our FeatureSettings from the provided source FeatureSettings -func (settings *FeatureSettings) AssignProperties_From_FeatureSettings(source *v20231201s.FeatureSettings) error { +func (settings *FeatureSettings) AssignProperties_From_FeatureSettings(source *v20231101s.FeatureSettings) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1698,13 +1698,13 @@ func (settings *FeatureSettings) AssignProperties_From_FeatureSettings(source *v } // AssignProperties_To_FeatureSettings populates the provided destination FeatureSettings from our FeatureSettings -func (settings *FeatureSettings) AssignProperties_To_FeatureSettings(destination *v20231201s.FeatureSettings) error { +func (settings *FeatureSettings) AssignProperties_To_FeatureSettings(destination *v20231101s.FeatureSettings) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(settings.PropertyBag) // CrossRegionRestoreSettings if propertyBag.Contains("CrossRegionRestoreSettings") { - var crossRegionRestoreSetting v20231201s.CrossRegionRestoreSettings + var crossRegionRestoreSetting v20231101s.CrossRegionRestoreSettings err := propertyBag.Pull("CrossRegionRestoreSettings", &crossRegionRestoreSetting) if err != nil { return errors.Wrap(err, "pulling 'CrossRegionRestoreSettings' from propertyBag") @@ -1717,7 +1717,7 @@ func (settings *FeatureSettings) AssignProperties_To_FeatureSettings(destination // CrossSubscriptionRestoreSettings if settings.CrossSubscriptionRestoreSettings != nil { - var crossSubscriptionRestoreSetting v20231201s.CrossSubscriptionRestoreSettings + var crossSubscriptionRestoreSetting v20231101s.CrossSubscriptionRestoreSettings err := settings.CrossSubscriptionRestoreSettings.AssignProperties_To_CrossSubscriptionRestoreSettings(&crossSubscriptionRestoreSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CrossSubscriptionRestoreSettings() to populate field CrossSubscriptionRestoreSettings") @@ -1755,7 +1755,7 @@ type FeatureSettings_STATUS struct { } // AssignProperties_From_FeatureSettings_STATUS populates our FeatureSettings_STATUS from the provided source FeatureSettings_STATUS -func (settings *FeatureSettings_STATUS) AssignProperties_From_FeatureSettings_STATUS(source *v20231201s.FeatureSettings_STATUS) error { +func (settings *FeatureSettings_STATUS) AssignProperties_From_FeatureSettings_STATUS(source *v20231101s.FeatureSettings_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1799,13 +1799,13 @@ func (settings *FeatureSettings_STATUS) AssignProperties_From_FeatureSettings_ST } // AssignProperties_To_FeatureSettings_STATUS populates the provided destination FeatureSettings_STATUS from our FeatureSettings_STATUS -func (settings *FeatureSettings_STATUS) AssignProperties_To_FeatureSettings_STATUS(destination *v20231201s.FeatureSettings_STATUS) error { +func (settings *FeatureSettings_STATUS) AssignProperties_To_FeatureSettings_STATUS(destination *v20231101s.FeatureSettings_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(settings.PropertyBag) // CrossRegionRestoreSettings if propertyBag.Contains("CrossRegionRestoreSettings") { - var crossRegionRestoreSetting v20231201s.CrossRegionRestoreSettings_STATUS + var crossRegionRestoreSetting v20231101s.CrossRegionRestoreSettings_STATUS err := propertyBag.Pull("CrossRegionRestoreSettings", &crossRegionRestoreSetting) if err != nil { return errors.Wrap(err, "pulling 'CrossRegionRestoreSettings' from propertyBag") @@ -1818,7 +1818,7 @@ func (settings *FeatureSettings_STATUS) AssignProperties_To_FeatureSettings_STAT // CrossSubscriptionRestoreSettings if settings.CrossSubscriptionRestoreSettings != nil { - var crossSubscriptionRestoreSetting v20231201s.CrossSubscriptionRestoreSettings_STATUS + var crossSubscriptionRestoreSetting v20231101s.CrossSubscriptionRestoreSettings_STATUS err := settings.CrossSubscriptionRestoreSettings.AssignProperties_To_CrossSubscriptionRestoreSettings_STATUS(&crossSubscriptionRestoreSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CrossSubscriptionRestoreSettings_STATUS() to populate field CrossSubscriptionRestoreSettings") @@ -1856,7 +1856,7 @@ type MonitoringSettings struct { } // AssignProperties_From_MonitoringSettings populates our MonitoringSettings from the provided source MonitoringSettings -func (settings *MonitoringSettings) AssignProperties_From_MonitoringSettings(source *v20231201s.MonitoringSettings) error { +func (settings *MonitoringSettings) AssignProperties_From_MonitoringSettings(source *v20231101s.MonitoringSettings) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1893,13 +1893,13 @@ func (settings *MonitoringSettings) AssignProperties_From_MonitoringSettings(sou } // AssignProperties_To_MonitoringSettings populates the provided destination MonitoringSettings from our MonitoringSettings -func (settings *MonitoringSettings) AssignProperties_To_MonitoringSettings(destination *v20231201s.MonitoringSettings) error { +func (settings *MonitoringSettings) AssignProperties_To_MonitoringSettings(destination *v20231101s.MonitoringSettings) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(settings.PropertyBag) // AzureMonitorAlertSettings if settings.AzureMonitorAlertSettings != nil { - var azureMonitorAlertSetting v20231201s.AzureMonitorAlertSettings + var azureMonitorAlertSetting v20231101s.AzureMonitorAlertSettings err := settings.AzureMonitorAlertSettings.AssignProperties_To_AzureMonitorAlertSettings(&azureMonitorAlertSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureMonitorAlertSettings() to populate field AzureMonitorAlertSettings") @@ -1937,7 +1937,7 @@ type MonitoringSettings_STATUS struct { } // AssignProperties_From_MonitoringSettings_STATUS populates our MonitoringSettings_STATUS from the provided source MonitoringSettings_STATUS -func (settings *MonitoringSettings_STATUS) AssignProperties_From_MonitoringSettings_STATUS(source *v20231201s.MonitoringSettings_STATUS) error { +func (settings *MonitoringSettings_STATUS) AssignProperties_From_MonitoringSettings_STATUS(source *v20231101s.MonitoringSettings_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1974,13 +1974,13 @@ func (settings *MonitoringSettings_STATUS) AssignProperties_From_MonitoringSetti } // AssignProperties_To_MonitoringSettings_STATUS populates the provided destination MonitoringSettings_STATUS from our MonitoringSettings_STATUS -func (settings *MonitoringSettings_STATUS) AssignProperties_To_MonitoringSettings_STATUS(destination *v20231201s.MonitoringSettings_STATUS) error { +func (settings *MonitoringSettings_STATUS) AssignProperties_To_MonitoringSettings_STATUS(destination *v20231101s.MonitoringSettings_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(settings.PropertyBag) // AzureMonitorAlertSettings if settings.AzureMonitorAlertSettings != nil { - var azureMonitorAlertSetting v20231201s.AzureMonitorAlertSettings_STATUS + var azureMonitorAlertSetting v20231101s.AzureMonitorAlertSettings_STATUS err := settings.AzureMonitorAlertSettings.AssignProperties_To_AzureMonitorAlertSettings_STATUS(&azureMonitorAlertSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureMonitorAlertSettings_STATUS() to populate field AzureMonitorAlertSettings") @@ -2022,7 +2022,7 @@ type ResourceMoveDetails_STATUS struct { } // AssignProperties_From_ResourceMoveDetails_STATUS populates our ResourceMoveDetails_STATUS from the provided source ResourceMoveDetails_STATUS -func (details *ResourceMoveDetails_STATUS) AssignProperties_From_ResourceMoveDetails_STATUS(source *v20231201s.ResourceMoveDetails_STATUS) error { +func (details *ResourceMoveDetails_STATUS) AssignProperties_From_ResourceMoveDetails_STATUS(source *v20231101s.ResourceMoveDetails_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2062,7 +2062,7 @@ func (details *ResourceMoveDetails_STATUS) AssignProperties_From_ResourceMoveDet } // AssignProperties_To_ResourceMoveDetails_STATUS populates the provided destination ResourceMoveDetails_STATUS from our ResourceMoveDetails_STATUS -func (details *ResourceMoveDetails_STATUS) AssignProperties_To_ResourceMoveDetails_STATUS(destination *v20231201s.ResourceMoveDetails_STATUS) error { +func (details *ResourceMoveDetails_STATUS) AssignProperties_To_ResourceMoveDetails_STATUS(destination *v20231101s.ResourceMoveDetails_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(details.PropertyBag) @@ -2110,7 +2110,7 @@ type SecuritySettings struct { } // AssignProperties_From_SecuritySettings populates our SecuritySettings from the provided source SecuritySettings -func (settings *SecuritySettings) AssignProperties_From_SecuritySettings(source *v20231201s.SecuritySettings) error { +func (settings *SecuritySettings) AssignProperties_From_SecuritySettings(source *v20231101s.SecuritySettings) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2159,13 +2159,13 @@ func (settings *SecuritySettings) AssignProperties_From_SecuritySettings(source } // AssignProperties_To_SecuritySettings populates the provided destination SecuritySettings from our SecuritySettings -func (settings *SecuritySettings) AssignProperties_To_SecuritySettings(destination *v20231201s.SecuritySettings) error { +func (settings *SecuritySettings) AssignProperties_To_SecuritySettings(destination *v20231101s.SecuritySettings) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(settings.PropertyBag) // ImmutabilitySettings if settings.ImmutabilitySettings != nil { - var immutabilitySetting v20231201s.ImmutabilitySettings + var immutabilitySetting v20231101s.ImmutabilitySettings err := settings.ImmutabilitySettings.AssignProperties_To_ImmutabilitySettings(&immutabilitySetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ImmutabilitySettings() to populate field ImmutabilitySettings") @@ -2177,7 +2177,7 @@ func (settings *SecuritySettings) AssignProperties_To_SecuritySettings(destinati // SoftDeleteSettings if settings.SoftDeleteSettings != nil { - var softDeleteSetting v20231201s.SoftDeleteSettings + var softDeleteSetting v20231101s.SoftDeleteSettings err := settings.SoftDeleteSettings.AssignProperties_To_SoftDeleteSettings(&softDeleteSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SoftDeleteSettings() to populate field SoftDeleteSettings") @@ -2216,7 +2216,7 @@ type SecuritySettings_STATUS struct { } // AssignProperties_From_SecuritySettings_STATUS populates our SecuritySettings_STATUS from the provided source SecuritySettings_STATUS -func (settings *SecuritySettings_STATUS) AssignProperties_From_SecuritySettings_STATUS(source *v20231201s.SecuritySettings_STATUS) error { +func (settings *SecuritySettings_STATUS) AssignProperties_From_SecuritySettings_STATUS(source *v20231101s.SecuritySettings_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2265,13 +2265,13 @@ func (settings *SecuritySettings_STATUS) AssignProperties_From_SecuritySettings_ } // AssignProperties_To_SecuritySettings_STATUS populates the provided destination SecuritySettings_STATUS from our SecuritySettings_STATUS -func (settings *SecuritySettings_STATUS) AssignProperties_To_SecuritySettings_STATUS(destination *v20231201s.SecuritySettings_STATUS) error { +func (settings *SecuritySettings_STATUS) AssignProperties_To_SecuritySettings_STATUS(destination *v20231101s.SecuritySettings_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(settings.PropertyBag) // ImmutabilitySettings if settings.ImmutabilitySettings != nil { - var immutabilitySetting v20231201s.ImmutabilitySettings_STATUS + var immutabilitySetting v20231101s.ImmutabilitySettings_STATUS err := settings.ImmutabilitySettings.AssignProperties_To_ImmutabilitySettings_STATUS(&immutabilitySetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ImmutabilitySettings_STATUS() to populate field ImmutabilitySettings") @@ -2283,7 +2283,7 @@ func (settings *SecuritySettings_STATUS) AssignProperties_To_SecuritySettings_ST // SoftDeleteSettings if settings.SoftDeleteSettings != nil { - var softDeleteSetting v20231201s.SoftDeleteSettings_STATUS + var softDeleteSetting v20231101s.SoftDeleteSettings_STATUS err := settings.SoftDeleteSettings.AssignProperties_To_SoftDeleteSettings_STATUS(&softDeleteSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SoftDeleteSettings_STATUS() to populate field SoftDeleteSettings") @@ -2322,7 +2322,7 @@ type StorageSetting struct { } // AssignProperties_From_StorageSetting populates our StorageSetting from the provided source StorageSetting -func (setting *StorageSetting) AssignProperties_From_StorageSetting(source *v20231201s.StorageSetting) error { +func (setting *StorageSetting) AssignProperties_From_StorageSetting(source *v20231101s.StorageSetting) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2353,7 +2353,7 @@ func (setting *StorageSetting) AssignProperties_From_StorageSetting(source *v202 } // AssignProperties_To_StorageSetting populates the provided destination StorageSetting from our StorageSetting -func (setting *StorageSetting) AssignProperties_To_StorageSetting(destination *v20231201s.StorageSetting) error { +func (setting *StorageSetting) AssignProperties_To_StorageSetting(destination *v20231101s.StorageSetting) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(setting.PropertyBag) @@ -2392,7 +2392,7 @@ type StorageSetting_STATUS struct { } // AssignProperties_From_StorageSetting_STATUS populates our StorageSetting_STATUS from the provided source StorageSetting_STATUS -func (setting *StorageSetting_STATUS) AssignProperties_From_StorageSetting_STATUS(source *v20231201s.StorageSetting_STATUS) error { +func (setting *StorageSetting_STATUS) AssignProperties_From_StorageSetting_STATUS(source *v20231101s.StorageSetting_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2423,7 +2423,7 @@ func (setting *StorageSetting_STATUS) AssignProperties_From_StorageSetting_STATU } // AssignProperties_To_StorageSetting_STATUS populates the provided destination StorageSetting_STATUS from our StorageSetting_STATUS -func (setting *StorageSetting_STATUS) AssignProperties_To_StorageSetting_STATUS(destination *v20231201s.StorageSetting_STATUS) error { +func (setting *StorageSetting_STATUS) AssignProperties_To_StorageSetting_STATUS(destination *v20231101s.StorageSetting_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(setting.PropertyBag) @@ -2454,53 +2454,53 @@ func (setting *StorageSetting_STATUS) AssignProperties_To_StorageSetting_STATUS( } type augmentConversionForBackupVaultOperatorConfigMaps interface { - AssignPropertiesFrom(src *v20231201s.BackupVaultOperatorConfigMaps) error - AssignPropertiesTo(dst *v20231201s.BackupVaultOperatorConfigMaps) error + AssignPropertiesFrom(src *v20231101s.BackupVaultOperatorConfigMaps) error + AssignPropertiesTo(dst *v20231101s.BackupVaultOperatorConfigMaps) error } type augmentConversionForFeatureSettings interface { - AssignPropertiesFrom(src *v20231201s.FeatureSettings) error - AssignPropertiesTo(dst *v20231201s.FeatureSettings) error + AssignPropertiesFrom(src *v20231101s.FeatureSettings) error + AssignPropertiesTo(dst *v20231101s.FeatureSettings) error } type augmentConversionForFeatureSettings_STATUS interface { - AssignPropertiesFrom(src *v20231201s.FeatureSettings_STATUS) error - AssignPropertiesTo(dst *v20231201s.FeatureSettings_STATUS) error + AssignPropertiesFrom(src *v20231101s.FeatureSettings_STATUS) error + AssignPropertiesTo(dst *v20231101s.FeatureSettings_STATUS) error } type augmentConversionForMonitoringSettings interface { - AssignPropertiesFrom(src *v20231201s.MonitoringSettings) error - AssignPropertiesTo(dst *v20231201s.MonitoringSettings) error + AssignPropertiesFrom(src *v20231101s.MonitoringSettings) error + AssignPropertiesTo(dst *v20231101s.MonitoringSettings) error } type augmentConversionForMonitoringSettings_STATUS interface { - AssignPropertiesFrom(src *v20231201s.MonitoringSettings_STATUS) error - AssignPropertiesTo(dst *v20231201s.MonitoringSettings_STATUS) error + AssignPropertiesFrom(src *v20231101s.MonitoringSettings_STATUS) error + AssignPropertiesTo(dst *v20231101s.MonitoringSettings_STATUS) error } type augmentConversionForResourceMoveDetails_STATUS interface { - AssignPropertiesFrom(src *v20231201s.ResourceMoveDetails_STATUS) error - AssignPropertiesTo(dst *v20231201s.ResourceMoveDetails_STATUS) error + AssignPropertiesFrom(src *v20231101s.ResourceMoveDetails_STATUS) error + AssignPropertiesTo(dst *v20231101s.ResourceMoveDetails_STATUS) error } type augmentConversionForSecuritySettings interface { - AssignPropertiesFrom(src *v20231201s.SecuritySettings) error - AssignPropertiesTo(dst *v20231201s.SecuritySettings) error + AssignPropertiesFrom(src *v20231101s.SecuritySettings) error + AssignPropertiesTo(dst *v20231101s.SecuritySettings) error } type augmentConversionForSecuritySettings_STATUS interface { - AssignPropertiesFrom(src *v20231201s.SecuritySettings_STATUS) error - AssignPropertiesTo(dst *v20231201s.SecuritySettings_STATUS) error + AssignPropertiesFrom(src *v20231101s.SecuritySettings_STATUS) error + AssignPropertiesTo(dst *v20231101s.SecuritySettings_STATUS) error } type augmentConversionForStorageSetting interface { - AssignPropertiesFrom(src *v20231201s.StorageSetting) error - AssignPropertiesTo(dst *v20231201s.StorageSetting) error + AssignPropertiesFrom(src *v20231101s.StorageSetting) error + AssignPropertiesTo(dst *v20231101s.StorageSetting) error } type augmentConversionForStorageSetting_STATUS interface { - AssignPropertiesFrom(src *v20231201s.StorageSetting_STATUS) error - AssignPropertiesTo(dst *v20231201s.StorageSetting_STATUS) error + AssignPropertiesFrom(src *v20231101s.StorageSetting_STATUS) error + AssignPropertiesTo(dst *v20231101s.StorageSetting_STATUS) error } // Storage version of v1api20230101.AzureMonitorAlertSettings @@ -2511,7 +2511,7 @@ type AzureMonitorAlertSettings struct { } // AssignProperties_From_AzureMonitorAlertSettings populates our AzureMonitorAlertSettings from the provided source AzureMonitorAlertSettings -func (settings *AzureMonitorAlertSettings) AssignProperties_From_AzureMonitorAlertSettings(source *v20231201s.AzureMonitorAlertSettings) error { +func (settings *AzureMonitorAlertSettings) AssignProperties_From_AzureMonitorAlertSettings(source *v20231101s.AzureMonitorAlertSettings) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2539,7 +2539,7 @@ func (settings *AzureMonitorAlertSettings) AssignProperties_From_AzureMonitorAle } // AssignProperties_To_AzureMonitorAlertSettings populates the provided destination AzureMonitorAlertSettings from our AzureMonitorAlertSettings -func (settings *AzureMonitorAlertSettings) AssignProperties_To_AzureMonitorAlertSettings(destination *v20231201s.AzureMonitorAlertSettings) error { +func (settings *AzureMonitorAlertSettings) AssignProperties_To_AzureMonitorAlertSettings(destination *v20231101s.AzureMonitorAlertSettings) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(settings.PropertyBag) @@ -2574,7 +2574,7 @@ type AzureMonitorAlertSettings_STATUS struct { } // AssignProperties_From_AzureMonitorAlertSettings_STATUS populates our AzureMonitorAlertSettings_STATUS from the provided source AzureMonitorAlertSettings_STATUS -func (settings *AzureMonitorAlertSettings_STATUS) AssignProperties_From_AzureMonitorAlertSettings_STATUS(source *v20231201s.AzureMonitorAlertSettings_STATUS) error { +func (settings *AzureMonitorAlertSettings_STATUS) AssignProperties_From_AzureMonitorAlertSettings_STATUS(source *v20231101s.AzureMonitorAlertSettings_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2602,7 +2602,7 @@ func (settings *AzureMonitorAlertSettings_STATUS) AssignProperties_From_AzureMon } // AssignProperties_To_AzureMonitorAlertSettings_STATUS populates the provided destination AzureMonitorAlertSettings_STATUS from our AzureMonitorAlertSettings_STATUS -func (settings *AzureMonitorAlertSettings_STATUS) AssignProperties_To_AzureMonitorAlertSettings_STATUS(destination *v20231201s.AzureMonitorAlertSettings_STATUS) error { +func (settings *AzureMonitorAlertSettings_STATUS) AssignProperties_To_AzureMonitorAlertSettings_STATUS(destination *v20231101s.AzureMonitorAlertSettings_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(settings.PropertyBag) @@ -2637,7 +2637,7 @@ type CrossSubscriptionRestoreSettings struct { } // AssignProperties_From_CrossSubscriptionRestoreSettings populates our CrossSubscriptionRestoreSettings from the provided source CrossSubscriptionRestoreSettings -func (settings *CrossSubscriptionRestoreSettings) AssignProperties_From_CrossSubscriptionRestoreSettings(source *v20231201s.CrossSubscriptionRestoreSettings) error { +func (settings *CrossSubscriptionRestoreSettings) AssignProperties_From_CrossSubscriptionRestoreSettings(source *v20231101s.CrossSubscriptionRestoreSettings) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2665,7 +2665,7 @@ func (settings *CrossSubscriptionRestoreSettings) AssignProperties_From_CrossSub } // AssignProperties_To_CrossSubscriptionRestoreSettings populates the provided destination CrossSubscriptionRestoreSettings from our CrossSubscriptionRestoreSettings -func (settings *CrossSubscriptionRestoreSettings) AssignProperties_To_CrossSubscriptionRestoreSettings(destination *v20231201s.CrossSubscriptionRestoreSettings) error { +func (settings *CrossSubscriptionRestoreSettings) AssignProperties_To_CrossSubscriptionRestoreSettings(destination *v20231101s.CrossSubscriptionRestoreSettings) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(settings.PropertyBag) @@ -2700,7 +2700,7 @@ type CrossSubscriptionRestoreSettings_STATUS struct { } // AssignProperties_From_CrossSubscriptionRestoreSettings_STATUS populates our CrossSubscriptionRestoreSettings_STATUS from the provided source CrossSubscriptionRestoreSettings_STATUS -func (settings *CrossSubscriptionRestoreSettings_STATUS) AssignProperties_From_CrossSubscriptionRestoreSettings_STATUS(source *v20231201s.CrossSubscriptionRestoreSettings_STATUS) error { +func (settings *CrossSubscriptionRestoreSettings_STATUS) AssignProperties_From_CrossSubscriptionRestoreSettings_STATUS(source *v20231101s.CrossSubscriptionRestoreSettings_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2728,7 +2728,7 @@ func (settings *CrossSubscriptionRestoreSettings_STATUS) AssignProperties_From_C } // AssignProperties_To_CrossSubscriptionRestoreSettings_STATUS populates the provided destination CrossSubscriptionRestoreSettings_STATUS from our CrossSubscriptionRestoreSettings_STATUS -func (settings *CrossSubscriptionRestoreSettings_STATUS) AssignProperties_To_CrossSubscriptionRestoreSettings_STATUS(destination *v20231201s.CrossSubscriptionRestoreSettings_STATUS) error { +func (settings *CrossSubscriptionRestoreSettings_STATUS) AssignProperties_To_CrossSubscriptionRestoreSettings_STATUS(destination *v20231101s.CrossSubscriptionRestoreSettings_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(settings.PropertyBag) @@ -2763,7 +2763,7 @@ type ImmutabilitySettings struct { } // AssignProperties_From_ImmutabilitySettings populates our ImmutabilitySettings from the provided source ImmutabilitySettings -func (settings *ImmutabilitySettings) AssignProperties_From_ImmutabilitySettings(source *v20231201s.ImmutabilitySettings) error { +func (settings *ImmutabilitySettings) AssignProperties_From_ImmutabilitySettings(source *v20231101s.ImmutabilitySettings) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2791,7 +2791,7 @@ func (settings *ImmutabilitySettings) AssignProperties_From_ImmutabilitySettings } // AssignProperties_To_ImmutabilitySettings populates the provided destination ImmutabilitySettings from our ImmutabilitySettings -func (settings *ImmutabilitySettings) AssignProperties_To_ImmutabilitySettings(destination *v20231201s.ImmutabilitySettings) error { +func (settings *ImmutabilitySettings) AssignProperties_To_ImmutabilitySettings(destination *v20231101s.ImmutabilitySettings) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(settings.PropertyBag) @@ -2826,7 +2826,7 @@ type ImmutabilitySettings_STATUS struct { } // AssignProperties_From_ImmutabilitySettings_STATUS populates our ImmutabilitySettings_STATUS from the provided source ImmutabilitySettings_STATUS -func (settings *ImmutabilitySettings_STATUS) AssignProperties_From_ImmutabilitySettings_STATUS(source *v20231201s.ImmutabilitySettings_STATUS) error { +func (settings *ImmutabilitySettings_STATUS) AssignProperties_From_ImmutabilitySettings_STATUS(source *v20231101s.ImmutabilitySettings_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2854,7 +2854,7 @@ func (settings *ImmutabilitySettings_STATUS) AssignProperties_From_ImmutabilityS } // AssignProperties_To_ImmutabilitySettings_STATUS populates the provided destination ImmutabilitySettings_STATUS from our ImmutabilitySettings_STATUS -func (settings *ImmutabilitySettings_STATUS) AssignProperties_To_ImmutabilitySettings_STATUS(destination *v20231201s.ImmutabilitySettings_STATUS) error { +func (settings *ImmutabilitySettings_STATUS) AssignProperties_To_ImmutabilitySettings_STATUS(destination *v20231101s.ImmutabilitySettings_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(settings.PropertyBag) @@ -2890,7 +2890,7 @@ type SoftDeleteSettings struct { } // AssignProperties_From_SoftDeleteSettings populates our SoftDeleteSettings from the provided source SoftDeleteSettings -func (settings *SoftDeleteSettings) AssignProperties_From_SoftDeleteSettings(source *v20231201s.SoftDeleteSettings) error { +func (settings *SoftDeleteSettings) AssignProperties_From_SoftDeleteSettings(source *v20231101s.SoftDeleteSettings) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2926,7 +2926,7 @@ func (settings *SoftDeleteSettings) AssignProperties_From_SoftDeleteSettings(sou } // AssignProperties_To_SoftDeleteSettings populates the provided destination SoftDeleteSettings from our SoftDeleteSettings -func (settings *SoftDeleteSettings) AssignProperties_To_SoftDeleteSettings(destination *v20231201s.SoftDeleteSettings) error { +func (settings *SoftDeleteSettings) AssignProperties_To_SoftDeleteSettings(destination *v20231101s.SoftDeleteSettings) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(settings.PropertyBag) @@ -2970,7 +2970,7 @@ type SoftDeleteSettings_STATUS struct { } // AssignProperties_From_SoftDeleteSettings_STATUS populates our SoftDeleteSettings_STATUS from the provided source SoftDeleteSettings_STATUS -func (settings *SoftDeleteSettings_STATUS) AssignProperties_From_SoftDeleteSettings_STATUS(source *v20231201s.SoftDeleteSettings_STATUS) error { +func (settings *SoftDeleteSettings_STATUS) AssignProperties_From_SoftDeleteSettings_STATUS(source *v20231101s.SoftDeleteSettings_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -3006,7 +3006,7 @@ func (settings *SoftDeleteSettings_STATUS) AssignProperties_From_SoftDeleteSetti } // AssignProperties_To_SoftDeleteSettings_STATUS populates the provided destination SoftDeleteSettings_STATUS from our SoftDeleteSettings_STATUS -func (settings *SoftDeleteSettings_STATUS) AssignProperties_To_SoftDeleteSettings_STATUS(destination *v20231201s.SoftDeleteSettings_STATUS) error { +func (settings *SoftDeleteSettings_STATUS) AssignProperties_To_SoftDeleteSettings_STATUS(destination *v20231101s.SoftDeleteSettings_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(settings.PropertyBag) @@ -3042,43 +3042,43 @@ func (settings *SoftDeleteSettings_STATUS) AssignProperties_To_SoftDeleteSetting } type augmentConversionForAzureMonitorAlertSettings interface { - AssignPropertiesFrom(src *v20231201s.AzureMonitorAlertSettings) error - AssignPropertiesTo(dst *v20231201s.AzureMonitorAlertSettings) error + AssignPropertiesFrom(src *v20231101s.AzureMonitorAlertSettings) error + AssignPropertiesTo(dst *v20231101s.AzureMonitorAlertSettings) error } type augmentConversionForAzureMonitorAlertSettings_STATUS interface { - AssignPropertiesFrom(src *v20231201s.AzureMonitorAlertSettings_STATUS) error - AssignPropertiesTo(dst *v20231201s.AzureMonitorAlertSettings_STATUS) error + AssignPropertiesFrom(src *v20231101s.AzureMonitorAlertSettings_STATUS) error + AssignPropertiesTo(dst *v20231101s.AzureMonitorAlertSettings_STATUS) error } type augmentConversionForCrossSubscriptionRestoreSettings interface { - AssignPropertiesFrom(src *v20231201s.CrossSubscriptionRestoreSettings) error - AssignPropertiesTo(dst *v20231201s.CrossSubscriptionRestoreSettings) error + AssignPropertiesFrom(src *v20231101s.CrossSubscriptionRestoreSettings) error + AssignPropertiesTo(dst *v20231101s.CrossSubscriptionRestoreSettings) error } type augmentConversionForCrossSubscriptionRestoreSettings_STATUS interface { - AssignPropertiesFrom(src *v20231201s.CrossSubscriptionRestoreSettings_STATUS) error - AssignPropertiesTo(dst *v20231201s.CrossSubscriptionRestoreSettings_STATUS) error + AssignPropertiesFrom(src *v20231101s.CrossSubscriptionRestoreSettings_STATUS) error + AssignPropertiesTo(dst *v20231101s.CrossSubscriptionRestoreSettings_STATUS) error } type augmentConversionForImmutabilitySettings interface { - AssignPropertiesFrom(src *v20231201s.ImmutabilitySettings) error - AssignPropertiesTo(dst *v20231201s.ImmutabilitySettings) error + AssignPropertiesFrom(src *v20231101s.ImmutabilitySettings) error + AssignPropertiesTo(dst *v20231101s.ImmutabilitySettings) error } type augmentConversionForImmutabilitySettings_STATUS interface { - AssignPropertiesFrom(src *v20231201s.ImmutabilitySettings_STATUS) error - AssignPropertiesTo(dst *v20231201s.ImmutabilitySettings_STATUS) error + AssignPropertiesFrom(src *v20231101s.ImmutabilitySettings_STATUS) error + AssignPropertiesTo(dst *v20231101s.ImmutabilitySettings_STATUS) error } type augmentConversionForSoftDeleteSettings interface { - AssignPropertiesFrom(src *v20231201s.SoftDeleteSettings) error - AssignPropertiesTo(dst *v20231201s.SoftDeleteSettings) error + AssignPropertiesFrom(src *v20231101s.SoftDeleteSettings) error + AssignPropertiesTo(dst *v20231101s.SoftDeleteSettings) error } type augmentConversionForSoftDeleteSettings_STATUS interface { - AssignPropertiesFrom(src *v20231201s.SoftDeleteSettings_STATUS) error - AssignPropertiesTo(dst *v20231201s.SoftDeleteSettings_STATUS) error + AssignPropertiesFrom(src *v20231101s.SoftDeleteSettings_STATUS) error + AssignPropertiesTo(dst *v20231101s.SoftDeleteSettings_STATUS) error } func init() { diff --git a/v2/api/dataprotection/v1api20230101/storage/backup_vault_types_gen_test.go b/v2/api/dataprotection/v1api20230101/storage/backup_vault_types_gen_test.go index 457542fc73b..23655bf4dd0 100644 --- a/v2/api/dataprotection/v1api20230101/storage/backup_vault_types_gen_test.go +++ b/v2/api/dataprotection/v1api20230101/storage/backup_vault_types_gen_test.go @@ -5,7 +5,7 @@ package storage import ( "encoding/json" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" + v20231101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/kr/pretty" @@ -36,7 +36,7 @@ func RunResourceConversionTestForBackupVault(subject BackupVault) string { copied := subject.DeepCopy() // Convert to our hub version - var hub v20231201s.BackupVault + var hub v20231101s.BackupVault err := copied.ConvertTo(&hub) if err != nil { return err.Error() @@ -78,7 +78,7 @@ func RunPropertyAssignmentTestForBackupVault(subject BackupVault) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVault + var other v20231101s.BackupVault err := copied.AssignProperties_To_BackupVault(&other) if err != nil { return err.Error() @@ -181,7 +181,7 @@ func RunPropertyAssignmentTestForBackupVault_Spec(subject BackupVault_Spec) stri copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVault_Spec + var other v20231101s.BackupVault_Spec err := copied.AssignProperties_To_BackupVault_Spec(&other) if err != nil { return err.Error() @@ -302,7 +302,7 @@ func RunPropertyAssignmentTestForBackupVaultResource_STATUS(subject BackupVaultR copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaultResource_STATUS + var other v20231101s.BackupVaultResource_STATUS err := copied.AssignProperties_To_BackupVaultResource_STATUS(&other) if err != nil { return err.Error() @@ -426,7 +426,7 @@ func RunPropertyAssignmentTestForBackupVault_STATUS(subject BackupVault_STATUS) copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVault_STATUS + var other v20231101s.BackupVault_STATUS err := copied.AssignProperties_To_BackupVault_STATUS(&other) if err != nil { return err.Error() @@ -548,7 +548,7 @@ func RunPropertyAssignmentTestForBackupVaultOperatorSpec(subject BackupVaultOper copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaultOperatorSpec + var other v20231101s.BackupVaultOperatorSpec err := copied.AssignProperties_To_BackupVaultOperatorSpec(&other) if err != nil { return err.Error() @@ -651,7 +651,7 @@ func RunPropertyAssignmentTestForBackupVaultSpec(subject BackupVaultSpec) string copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaultSpec + var other v20231101s.BackupVaultSpec err := copied.AssignProperties_To_BackupVaultSpec(&other) if err != nil { return err.Error() @@ -756,7 +756,7 @@ func RunPropertyAssignmentTestForDppIdentityDetails(subject DppIdentityDetails) copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DppIdentityDetails + var other v20231101s.DppIdentityDetails err := copied.AssignProperties_To_DppIdentityDetails(&other) if err != nil { return err.Error() @@ -858,7 +858,7 @@ func RunPropertyAssignmentTestForDppIdentityDetails_STATUS(subject DppIdentityDe copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DppIdentityDetails_STATUS + var other v20231101s.DppIdentityDetails_STATUS err := copied.AssignProperties_To_DppIdentityDetails_STATUS(&other) if err != nil { return err.Error() @@ -963,7 +963,7 @@ func RunPropertyAssignmentTestForSystemData_STATUS(subject SystemData_STATUS) st copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SystemData_STATUS + var other v20231101s.SystemData_STATUS err := copied.AssignProperties_To_SystemData_STATUS(&other) if err != nil { return err.Error() @@ -1070,7 +1070,7 @@ func RunPropertyAssignmentTestForBackupVaultOperatorConfigMaps(subject BackupVau copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaultOperatorConfigMaps + var other v20231101s.BackupVaultOperatorConfigMaps err := copied.AssignProperties_To_BackupVaultOperatorConfigMaps(&other) if err != nil { return err.Error() @@ -1167,7 +1167,7 @@ func RunPropertyAssignmentTestForFeatureSettings(subject FeatureSettings) string copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.FeatureSettings + var other v20231101s.FeatureSettings err := copied.AssignProperties_To_FeatureSettings(&other) if err != nil { return err.Error() @@ -1269,7 +1269,7 @@ func RunPropertyAssignmentTestForFeatureSettings_STATUS(subject FeatureSettings_ copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.FeatureSettings_STATUS + var other v20231101s.FeatureSettings_STATUS err := copied.AssignProperties_To_FeatureSettings_STATUS(&other) if err != nil { return err.Error() @@ -1372,7 +1372,7 @@ func RunPropertyAssignmentTestForMonitoringSettings(subject MonitoringSettings) copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.MonitoringSettings + var other v20231101s.MonitoringSettings err := copied.AssignProperties_To_MonitoringSettings(&other) if err != nil { return err.Error() @@ -1474,7 +1474,7 @@ func RunPropertyAssignmentTestForMonitoringSettings_STATUS(subject MonitoringSet copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.MonitoringSettings_STATUS + var other v20231101s.MonitoringSettings_STATUS err := copied.AssignProperties_To_MonitoringSettings_STATUS(&other) if err != nil { return err.Error() @@ -1577,7 +1577,7 @@ func RunPropertyAssignmentTestForResourceMoveDetails_STATUS(subject ResourceMove copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ResourceMoveDetails_STATUS + var other v20231101s.ResourceMoveDetails_STATUS err := copied.AssignProperties_To_ResourceMoveDetails_STATUS(&other) if err != nil { return err.Error() @@ -1684,7 +1684,7 @@ func RunPropertyAssignmentTestForSecuritySettings(subject SecuritySettings) stri copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SecuritySettings + var other v20231101s.SecuritySettings err := copied.AssignProperties_To_SecuritySettings(&other) if err != nil { return err.Error() @@ -1787,7 +1787,7 @@ func RunPropertyAssignmentTestForSecuritySettings_STATUS(subject SecuritySetting copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SecuritySettings_STATUS + var other v20231101s.SecuritySettings_STATUS err := copied.AssignProperties_To_SecuritySettings_STATUS(&other) if err != nil { return err.Error() @@ -1891,7 +1891,7 @@ func RunPropertyAssignmentTestForStorageSetting(subject StorageSetting) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.StorageSetting + var other v20231101s.StorageSetting err := copied.AssignProperties_To_StorageSetting(&other) if err != nil { return err.Error() @@ -1994,7 +1994,7 @@ func RunPropertyAssignmentTestForStorageSetting_STATUS(subject StorageSetting_ST copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.StorageSetting_STATUS + var other v20231101s.StorageSetting_STATUS err := copied.AssignProperties_To_StorageSetting_STATUS(&other) if err != nil { return err.Error() @@ -2098,7 +2098,7 @@ func RunPropertyAssignmentTestForAzureMonitorAlertSettings(subject AzureMonitorA copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureMonitorAlertSettings + var other v20231101s.AzureMonitorAlertSettings err := copied.AssignProperties_To_AzureMonitorAlertSettings(&other) if err != nil { return err.Error() @@ -2201,7 +2201,7 @@ func RunPropertyAssignmentTestForAzureMonitorAlertSettings_STATUS(subject AzureM copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureMonitorAlertSettings_STATUS + var other v20231101s.AzureMonitorAlertSettings_STATUS err := copied.AssignProperties_To_AzureMonitorAlertSettings_STATUS(&other) if err != nil { return err.Error() @@ -2304,7 +2304,7 @@ func RunPropertyAssignmentTestForCrossSubscriptionRestoreSettings(subject CrossS copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CrossSubscriptionRestoreSettings + var other v20231101s.CrossSubscriptionRestoreSettings err := copied.AssignProperties_To_CrossSubscriptionRestoreSettings(&other) if err != nil { return err.Error() @@ -2407,7 +2407,7 @@ func RunPropertyAssignmentTestForCrossSubscriptionRestoreSettings_STATUS(subject copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CrossSubscriptionRestoreSettings_STATUS + var other v20231101s.CrossSubscriptionRestoreSettings_STATUS err := copied.AssignProperties_To_CrossSubscriptionRestoreSettings_STATUS(&other) if err != nil { return err.Error() @@ -2510,7 +2510,7 @@ func RunPropertyAssignmentTestForImmutabilitySettings(subject ImmutabilitySettin copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ImmutabilitySettings + var other v20231101s.ImmutabilitySettings err := copied.AssignProperties_To_ImmutabilitySettings(&other) if err != nil { return err.Error() @@ -2613,7 +2613,7 @@ func RunPropertyAssignmentTestForImmutabilitySettings_STATUS(subject Immutabilit copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ImmutabilitySettings_STATUS + var other v20231101s.ImmutabilitySettings_STATUS err := copied.AssignProperties_To_ImmutabilitySettings_STATUS(&other) if err != nil { return err.Error() @@ -2716,7 +2716,7 @@ func RunPropertyAssignmentTestForSoftDeleteSettings(subject SoftDeleteSettings) copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SoftDeleteSettings + var other v20231101s.SoftDeleteSettings err := copied.AssignProperties_To_SoftDeleteSettings(&other) if err != nil { return err.Error() @@ -2819,7 +2819,7 @@ func RunPropertyAssignmentTestForSoftDeleteSettings_STATUS(subject SoftDeleteSet copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SoftDeleteSettings_STATUS + var other v20231101s.SoftDeleteSettings_STATUS err := copied.AssignProperties_To_SoftDeleteSettings_STATUS(&other) if err != nil { return err.Error() diff --git a/v2/api/dataprotection/v1api20230101/storage/backup_vaults_backup_instance_types_gen.go b/v2/api/dataprotection/v1api20230101/storage/backup_vaults_backup_instance_types_gen.go deleted file mode 100644 index f4d8e3a38a7..00000000000 --- a/v2/api/dataprotection/v1api20230101/storage/backup_vaults_backup_instance_types_gen.go +++ /dev/null @@ -1,4245 +0,0 @@ -// Code generated by azure-service-operator-codegen. DO NOT EDIT. -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -package storage - -import ( - "fmt" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" - "github.com/Azure/azure-service-operator/v2/pkg/genruntime" - "github.com/Azure/azure-service-operator/v2/pkg/genruntime/conditions" - "github.com/pkg/errors" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime/schema" - "sigs.k8s.io/controller-runtime/pkg/conversion" -) - -// +kubebuilder:object:root=true -// +kubebuilder:subresource:status -// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" -// +kubebuilder:printcolumn:name="Severity",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].severity" -// +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason" -// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message" -// Storage version of v1api20230101.BackupVaultsBackupInstance -// Generator information: -// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/dataprotection.json -// - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName} -type BackupVaultsBackupInstance struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec BackupVaults_BackupInstance_Spec `json:"spec,omitempty"` - Status BackupVaults_BackupInstance_STATUS `json:"status,omitempty"` -} - -var _ conditions.Conditioner = &BackupVaultsBackupInstance{} - -// GetConditions returns the conditions of the resource -func (instance *BackupVaultsBackupInstance) GetConditions() conditions.Conditions { - return instance.Status.Conditions -} - -// SetConditions sets the conditions on the resource status -func (instance *BackupVaultsBackupInstance) SetConditions(conditions conditions.Conditions) { - instance.Status.Conditions = conditions -} - -var _ conversion.Convertible = &BackupVaultsBackupInstance{} - -// ConvertFrom populates our BackupVaultsBackupInstance from the provided hub BackupVaultsBackupInstance -func (instance *BackupVaultsBackupInstance) ConvertFrom(hub conversion.Hub) error { - source, ok := hub.(*v20231201s.BackupVaultsBackupInstance) - if !ok { - return fmt.Errorf("expected dataprotection/v1api20231201/storage/BackupVaultsBackupInstance but received %T instead", hub) - } - - return instance.AssignProperties_From_BackupVaultsBackupInstance(source) -} - -// ConvertTo populates the provided hub BackupVaultsBackupInstance from our BackupVaultsBackupInstance -func (instance *BackupVaultsBackupInstance) ConvertTo(hub conversion.Hub) error { - destination, ok := hub.(*v20231201s.BackupVaultsBackupInstance) - if !ok { - return fmt.Errorf("expected dataprotection/v1api20231201/storage/BackupVaultsBackupInstance but received %T instead", hub) - } - - return instance.AssignProperties_To_BackupVaultsBackupInstance(destination) -} - -var _ genruntime.KubernetesResource = &BackupVaultsBackupInstance{} - -// AzureName returns the Azure name of the resource -func (instance *BackupVaultsBackupInstance) AzureName() string { - return instance.Spec.AzureName -} - -// GetAPIVersion returns the ARM API version of the resource. This is always "2023-01-01" -func (instance BackupVaultsBackupInstance) GetAPIVersion() string { - return string(APIVersion_Value) -} - -// GetResourceScope returns the scope of the resource -func (instance *BackupVaultsBackupInstance) GetResourceScope() genruntime.ResourceScope { - return genruntime.ResourceScopeResourceGroup -} - -// GetSpec returns the specification of this resource -func (instance *BackupVaultsBackupInstance) GetSpec() genruntime.ConvertibleSpec { - return &instance.Spec -} - -// GetStatus returns the status of this resource -func (instance *BackupVaultsBackupInstance) GetStatus() genruntime.ConvertibleStatus { - return &instance.Status -} - -// GetSupportedOperations returns the operations supported by the resource -func (instance *BackupVaultsBackupInstance) GetSupportedOperations() []genruntime.ResourceOperation { - return []genruntime.ResourceOperation{ - genruntime.ResourceOperationDelete, - genruntime.ResourceOperationGet, - genruntime.ResourceOperationPut, - } -} - -// GetType returns the ARM Type of the resource. This is always "Microsoft.DataProtection/backupVaults/backupInstances" -func (instance *BackupVaultsBackupInstance) GetType() string { - return "Microsoft.DataProtection/backupVaults/backupInstances" -} - -// NewEmptyStatus returns a new empty (blank) status -func (instance *BackupVaultsBackupInstance) NewEmptyStatus() genruntime.ConvertibleStatus { - return &BackupVaults_BackupInstance_STATUS{} -} - -// Owner returns the ResourceReference of the owner -func (instance *BackupVaultsBackupInstance) Owner() *genruntime.ResourceReference { - group, kind := genruntime.LookupOwnerGroupKind(instance.Spec) - return instance.Spec.Owner.AsResourceReference(group, kind) -} - -// SetStatus sets the status of this resource -func (instance *BackupVaultsBackupInstance) SetStatus(status genruntime.ConvertibleStatus) error { - // If we have exactly the right type of status, assign it - if st, ok := status.(*BackupVaults_BackupInstance_STATUS); ok { - instance.Status = *st - return nil - } - - // Convert status to required version - var st BackupVaults_BackupInstance_STATUS - err := status.ConvertStatusTo(&st) - if err != nil { - return errors.Wrap(err, "failed to convert status") - } - - instance.Status = st - return nil -} - -// AssignProperties_From_BackupVaultsBackupInstance populates our BackupVaultsBackupInstance from the provided source BackupVaultsBackupInstance -func (instance *BackupVaultsBackupInstance) AssignProperties_From_BackupVaultsBackupInstance(source *v20231201s.BackupVaultsBackupInstance) error { - - // ObjectMeta - instance.ObjectMeta = *source.ObjectMeta.DeepCopy() - - // Spec - var spec BackupVaults_BackupInstance_Spec - err := spec.AssignProperties_From_BackupVaults_BackupInstance_Spec(&source.Spec) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_BackupVaults_BackupInstance_Spec() to populate field Spec") - } - instance.Spec = spec - - // Status - var status BackupVaults_BackupInstance_STATUS - err = status.AssignProperties_From_BackupVaults_BackupInstance_STATUS(&source.Status) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_BackupVaults_BackupInstance_STATUS() to populate field Status") - } - instance.Status = status - - // Invoke the augmentConversionForBackupVaultsBackupInstance interface (if implemented) to customize the conversion - var instanceAsAny any = instance - if augmentedInstance, ok := instanceAsAny.(augmentConversionForBackupVaultsBackupInstance); ok { - err := augmentedInstance.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_BackupVaultsBackupInstance populates the provided destination BackupVaultsBackupInstance from our BackupVaultsBackupInstance -func (instance *BackupVaultsBackupInstance) AssignProperties_To_BackupVaultsBackupInstance(destination *v20231201s.BackupVaultsBackupInstance) error { - - // ObjectMeta - destination.ObjectMeta = *instance.ObjectMeta.DeepCopy() - - // Spec - var spec v20231201s.BackupVaults_BackupInstance_Spec - err := instance.Spec.AssignProperties_To_BackupVaults_BackupInstance_Spec(&spec) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_BackupVaults_BackupInstance_Spec() to populate field Spec") - } - destination.Spec = spec - - // Status - var status v20231201s.BackupVaults_BackupInstance_STATUS - err = instance.Status.AssignProperties_To_BackupVaults_BackupInstance_STATUS(&status) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_BackupVaults_BackupInstance_STATUS() to populate field Status") - } - destination.Status = status - - // Invoke the augmentConversionForBackupVaultsBackupInstance interface (if implemented) to customize the conversion - var instanceAsAny any = instance - if augmentedInstance, ok := instanceAsAny.(augmentConversionForBackupVaultsBackupInstance); ok { - err := augmentedInstance.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// OriginalGVK returns a GroupValueKind for the original API version used to create the resource -func (instance *BackupVaultsBackupInstance) OriginalGVK() *schema.GroupVersionKind { - return &schema.GroupVersionKind{ - Group: GroupVersion.Group, - Version: instance.Spec.OriginalVersion, - Kind: "BackupVaultsBackupInstance", - } -} - -// +kubebuilder:object:root=true -// Storage version of v1api20230101.BackupVaultsBackupInstance -// Generator information: -// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/dataprotection.json -// - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName} -type BackupVaultsBackupInstanceList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []BackupVaultsBackupInstance `json:"items"` -} - -type augmentConversionForBackupVaultsBackupInstance interface { - AssignPropertiesFrom(src *v20231201s.BackupVaultsBackupInstance) error - AssignPropertiesTo(dst *v20231201s.BackupVaultsBackupInstance) error -} - -// Storage version of v1api20230101.BackupVaults_BackupInstance_Spec -type BackupVaults_BackupInstance_Spec struct { - // AzureName: The name of the resource in Azure. This is often the same as the name of the resource in Kubernetes but it - // doesn't have to be. - AzureName string `json:"azureName,omitempty"` - OriginalVersion string `json:"originalVersion,omitempty"` - - // +kubebuilder:validation:Required - // Owner: The owner of the resource. The owner controls where the resource goes when it is deployed. The owner also - // controls the resources lifecycle. When the owner is deleted the resource will also be deleted. Owner is expected to be a - // reference to a dataprotection.azure.com/BackupVault resource - Owner *genruntime.KnownResourceReference `group:"dataprotection.azure.com" json:"owner,omitempty" kind:"BackupVault"` - Properties *BackupInstance `json:"properties,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - Tags map[string]string `json:"tags,omitempty"` -} - -var _ genruntime.ConvertibleSpec = &BackupVaults_BackupInstance_Spec{} - -// ConvertSpecFrom populates our BackupVaults_BackupInstance_Spec from the provided source -func (instance *BackupVaults_BackupInstance_Spec) ConvertSpecFrom(source genruntime.ConvertibleSpec) error { - src, ok := source.(*v20231201s.BackupVaults_BackupInstance_Spec) - if ok { - // Populate our instance from source - return instance.AssignProperties_From_BackupVaults_BackupInstance_Spec(src) - } - - // Convert to an intermediate form - src = &v20231201s.BackupVaults_BackupInstance_Spec{} - err := src.ConvertSpecFrom(source) - if err != nil { - return errors.Wrap(err, "initial step of conversion in ConvertSpecFrom()") - } - - // Update our instance from src - err = instance.AssignProperties_From_BackupVaults_BackupInstance_Spec(src) - if err != nil { - return errors.Wrap(err, "final step of conversion in ConvertSpecFrom()") - } - - return nil -} - -// ConvertSpecTo populates the provided destination from our BackupVaults_BackupInstance_Spec -func (instance *BackupVaults_BackupInstance_Spec) ConvertSpecTo(destination genruntime.ConvertibleSpec) error { - dst, ok := destination.(*v20231201s.BackupVaults_BackupInstance_Spec) - if ok { - // Populate destination from our instance - return instance.AssignProperties_To_BackupVaults_BackupInstance_Spec(dst) - } - - // Convert to an intermediate form - dst = &v20231201s.BackupVaults_BackupInstance_Spec{} - err := instance.AssignProperties_To_BackupVaults_BackupInstance_Spec(dst) - if err != nil { - return errors.Wrap(err, "initial step of conversion in ConvertSpecTo()") - } - - // Update dst from our instance - err = dst.ConvertSpecTo(destination) - if err != nil { - return errors.Wrap(err, "final step of conversion in ConvertSpecTo()") - } - - return nil -} - -// AssignProperties_From_BackupVaults_BackupInstance_Spec populates our BackupVaults_BackupInstance_Spec from the provided source BackupVaults_BackupInstance_Spec -func (instance *BackupVaults_BackupInstance_Spec) AssignProperties_From_BackupVaults_BackupInstance_Spec(source *v20231201s.BackupVaults_BackupInstance_Spec) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // AzureName - instance.AzureName = source.AzureName - - // OriginalVersion - instance.OriginalVersion = source.OriginalVersion - - // Owner - if source.Owner != nil { - owner := source.Owner.Copy() - instance.Owner = &owner - } else { - instance.Owner = nil - } - - // Properties - if source.Properties != nil { - var property BackupInstance - err := property.AssignProperties_From_BackupInstance(source.Properties) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_BackupInstance() to populate field Properties") - } - instance.Properties = &property - } else { - instance.Properties = nil - } - - // Tags - instance.Tags = genruntime.CloneMapOfStringToString(source.Tags) - - // Update the property bag - if len(propertyBag) > 0 { - instance.PropertyBag = propertyBag - } else { - instance.PropertyBag = nil - } - - // Invoke the augmentConversionForBackupVaults_BackupInstance_Spec interface (if implemented) to customize the conversion - var instanceAsAny any = instance - if augmentedInstance, ok := instanceAsAny.(augmentConversionForBackupVaults_BackupInstance_Spec); ok { - err := augmentedInstance.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_BackupVaults_BackupInstance_Spec populates the provided destination BackupVaults_BackupInstance_Spec from our BackupVaults_BackupInstance_Spec -func (instance *BackupVaults_BackupInstance_Spec) AssignProperties_To_BackupVaults_BackupInstance_Spec(destination *v20231201s.BackupVaults_BackupInstance_Spec) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(instance.PropertyBag) - - // AzureName - destination.AzureName = instance.AzureName - - // OriginalVersion - destination.OriginalVersion = instance.OriginalVersion - - // Owner - if instance.Owner != nil { - owner := instance.Owner.Copy() - destination.Owner = &owner - } else { - destination.Owner = nil - } - - // Properties - if instance.Properties != nil { - var property v20231201s.BackupInstance - err := instance.Properties.AssignProperties_To_BackupInstance(&property) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_BackupInstance() to populate field Properties") - } - destination.Properties = &property - } else { - destination.Properties = nil - } - - // Tags - destination.Tags = genruntime.CloneMapOfStringToString(instance.Tags) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForBackupVaults_BackupInstance_Spec interface (if implemented) to customize the conversion - var instanceAsAny any = instance - if augmentedInstance, ok := instanceAsAny.(augmentConversionForBackupVaults_BackupInstance_Spec); ok { - err := augmentedInstance.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.BackupVaults_BackupInstance_STATUS -type BackupVaults_BackupInstance_STATUS struct { - Conditions []conditions.Condition `json:"conditions,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - Properties *BackupInstance_STATUS `json:"properties,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - SystemData *SystemData_STATUS `json:"systemData,omitempty"` - Tags map[string]string `json:"tags,omitempty"` - Type *string `json:"type,omitempty"` -} - -var _ genruntime.ConvertibleStatus = &BackupVaults_BackupInstance_STATUS{} - -// ConvertStatusFrom populates our BackupVaults_BackupInstance_STATUS from the provided source -func (instance *BackupVaults_BackupInstance_STATUS) ConvertStatusFrom(source genruntime.ConvertibleStatus) error { - src, ok := source.(*v20231201s.BackupVaults_BackupInstance_STATUS) - if ok { - // Populate our instance from source - return instance.AssignProperties_From_BackupVaults_BackupInstance_STATUS(src) - } - - // Convert to an intermediate form - src = &v20231201s.BackupVaults_BackupInstance_STATUS{} - err := src.ConvertStatusFrom(source) - if err != nil { - return errors.Wrap(err, "initial step of conversion in ConvertStatusFrom()") - } - - // Update our instance from src - err = instance.AssignProperties_From_BackupVaults_BackupInstance_STATUS(src) - if err != nil { - return errors.Wrap(err, "final step of conversion in ConvertStatusFrom()") - } - - return nil -} - -// ConvertStatusTo populates the provided destination from our BackupVaults_BackupInstance_STATUS -func (instance *BackupVaults_BackupInstance_STATUS) ConvertStatusTo(destination genruntime.ConvertibleStatus) error { - dst, ok := destination.(*v20231201s.BackupVaults_BackupInstance_STATUS) - if ok { - // Populate destination from our instance - return instance.AssignProperties_To_BackupVaults_BackupInstance_STATUS(dst) - } - - // Convert to an intermediate form - dst = &v20231201s.BackupVaults_BackupInstance_STATUS{} - err := instance.AssignProperties_To_BackupVaults_BackupInstance_STATUS(dst) - if err != nil { - return errors.Wrap(err, "initial step of conversion in ConvertStatusTo()") - } - - // Update dst from our instance - err = dst.ConvertStatusTo(destination) - if err != nil { - return errors.Wrap(err, "final step of conversion in ConvertStatusTo()") - } - - return nil -} - -// AssignProperties_From_BackupVaults_BackupInstance_STATUS populates our BackupVaults_BackupInstance_STATUS from the provided source BackupVaults_BackupInstance_STATUS -func (instance *BackupVaults_BackupInstance_STATUS) AssignProperties_From_BackupVaults_BackupInstance_STATUS(source *v20231201s.BackupVaults_BackupInstance_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // Conditions - instance.Conditions = genruntime.CloneSliceOfCondition(source.Conditions) - - // Id - instance.Id = genruntime.ClonePointerToString(source.Id) - - // Name - instance.Name = genruntime.ClonePointerToString(source.Name) - - // Properties - if source.Properties != nil { - var property BackupInstance_STATUS - err := property.AssignProperties_From_BackupInstance_STATUS(source.Properties) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_BackupInstance_STATUS() to populate field Properties") - } - instance.Properties = &property - } else { - instance.Properties = nil - } - - // SystemData - if source.SystemData != nil { - var systemDatum SystemData_STATUS - err := systemDatum.AssignProperties_From_SystemData_STATUS(source.SystemData) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_SystemData_STATUS() to populate field SystemData") - } - instance.SystemData = &systemDatum - } else { - instance.SystemData = nil - } - - // Tags - instance.Tags = genruntime.CloneMapOfStringToString(source.Tags) - - // Type - instance.Type = genruntime.ClonePointerToString(source.Type) - - // Update the property bag - if len(propertyBag) > 0 { - instance.PropertyBag = propertyBag - } else { - instance.PropertyBag = nil - } - - // Invoke the augmentConversionForBackupVaults_BackupInstance_STATUS interface (if implemented) to customize the conversion - var instanceAsAny any = instance - if augmentedInstance, ok := instanceAsAny.(augmentConversionForBackupVaults_BackupInstance_STATUS); ok { - err := augmentedInstance.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_BackupVaults_BackupInstance_STATUS populates the provided destination BackupVaults_BackupInstance_STATUS from our BackupVaults_BackupInstance_STATUS -func (instance *BackupVaults_BackupInstance_STATUS) AssignProperties_To_BackupVaults_BackupInstance_STATUS(destination *v20231201s.BackupVaults_BackupInstance_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(instance.PropertyBag) - - // Conditions - destination.Conditions = genruntime.CloneSliceOfCondition(instance.Conditions) - - // Id - destination.Id = genruntime.ClonePointerToString(instance.Id) - - // Name - destination.Name = genruntime.ClonePointerToString(instance.Name) - - // Properties - if instance.Properties != nil { - var property v20231201s.BackupInstance_STATUS - err := instance.Properties.AssignProperties_To_BackupInstance_STATUS(&property) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_BackupInstance_STATUS() to populate field Properties") - } - destination.Properties = &property - } else { - destination.Properties = nil - } - - // SystemData - if instance.SystemData != nil { - var systemDatum v20231201s.SystemData_STATUS - err := instance.SystemData.AssignProperties_To_SystemData_STATUS(&systemDatum) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_SystemData_STATUS() to populate field SystemData") - } - destination.SystemData = &systemDatum - } else { - destination.SystemData = nil - } - - // Tags - destination.Tags = genruntime.CloneMapOfStringToString(instance.Tags) - - // Type - destination.Type = genruntime.ClonePointerToString(instance.Type) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForBackupVaults_BackupInstance_STATUS interface (if implemented) to customize the conversion - var instanceAsAny any = instance - if augmentedInstance, ok := instanceAsAny.(augmentConversionForBackupVaults_BackupInstance_STATUS); ok { - err := augmentedInstance.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -type augmentConversionForBackupVaults_BackupInstance_Spec interface { - AssignPropertiesFrom(src *v20231201s.BackupVaults_BackupInstance_Spec) error - AssignPropertiesTo(dst *v20231201s.BackupVaults_BackupInstance_Spec) error -} - -type augmentConversionForBackupVaults_BackupInstance_STATUS interface { - AssignPropertiesFrom(src *v20231201s.BackupVaults_BackupInstance_STATUS) error - AssignPropertiesTo(dst *v20231201s.BackupVaults_BackupInstance_STATUS) error -} - -// Storage version of v1api20230101.BackupInstance -// Backup Instance -type BackupInstance struct { - DataSourceInfo *Datasource `json:"dataSourceInfo,omitempty"` - DataSourceSetInfo *DatasourceSet `json:"dataSourceSetInfo,omitempty"` - DatasourceAuthCredentials *AuthCredentials `json:"datasourceAuthCredentials,omitempty"` - FriendlyName *string `json:"friendlyName,omitempty"` - ObjectType *string `json:"objectType,omitempty"` - PolicyInfo *PolicyInfo `json:"policyInfo,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - ValidationType *string `json:"validationType,omitempty"` -} - -// AssignProperties_From_BackupInstance populates our BackupInstance from the provided source BackupInstance -func (instance *BackupInstance) AssignProperties_From_BackupInstance(source *v20231201s.BackupInstance) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // DataSourceInfo - if source.DataSourceInfo != nil { - var dataSourceInfo Datasource - err := dataSourceInfo.AssignProperties_From_Datasource(source.DataSourceInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_Datasource() to populate field DataSourceInfo") - } - instance.DataSourceInfo = &dataSourceInfo - } else { - instance.DataSourceInfo = nil - } - - // DataSourceSetInfo - if source.DataSourceSetInfo != nil { - var dataSourceSetInfo DatasourceSet - err := dataSourceSetInfo.AssignProperties_From_DatasourceSet(source.DataSourceSetInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_DatasourceSet() to populate field DataSourceSetInfo") - } - instance.DataSourceSetInfo = &dataSourceSetInfo - } else { - instance.DataSourceSetInfo = nil - } - - // DatasourceAuthCredentials - if source.DatasourceAuthCredentials != nil { - var datasourceAuthCredential AuthCredentials - err := datasourceAuthCredential.AssignProperties_From_AuthCredentials(source.DatasourceAuthCredentials) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_AuthCredentials() to populate field DatasourceAuthCredentials") - } - instance.DatasourceAuthCredentials = &datasourceAuthCredential - } else { - instance.DatasourceAuthCredentials = nil - } - - // FriendlyName - instance.FriendlyName = genruntime.ClonePointerToString(source.FriendlyName) - - // IdentityDetails - if source.IdentityDetails != nil { - propertyBag.Add("IdentityDetails", *source.IdentityDetails) - } else { - propertyBag.Remove("IdentityDetails") - } - - // ObjectType - instance.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // PolicyInfo - if source.PolicyInfo != nil { - var policyInfo PolicyInfo - err := policyInfo.AssignProperties_From_PolicyInfo(source.PolicyInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_PolicyInfo() to populate field PolicyInfo") - } - instance.PolicyInfo = &policyInfo - } else { - instance.PolicyInfo = nil - } - - // ValidationType - instance.ValidationType = genruntime.ClonePointerToString(source.ValidationType) - - // Update the property bag - if len(propertyBag) > 0 { - instance.PropertyBag = propertyBag - } else { - instance.PropertyBag = nil - } - - // Invoke the augmentConversionForBackupInstance interface (if implemented) to customize the conversion - var instanceAsAny any = instance - if augmentedInstance, ok := instanceAsAny.(augmentConversionForBackupInstance); ok { - err := augmentedInstance.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_BackupInstance populates the provided destination BackupInstance from our BackupInstance -func (instance *BackupInstance) AssignProperties_To_BackupInstance(destination *v20231201s.BackupInstance) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(instance.PropertyBag) - - // DataSourceInfo - if instance.DataSourceInfo != nil { - var dataSourceInfo v20231201s.Datasource - err := instance.DataSourceInfo.AssignProperties_To_Datasource(&dataSourceInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_Datasource() to populate field DataSourceInfo") - } - destination.DataSourceInfo = &dataSourceInfo - } else { - destination.DataSourceInfo = nil - } - - // DataSourceSetInfo - if instance.DataSourceSetInfo != nil { - var dataSourceSetInfo v20231201s.DatasourceSet - err := instance.DataSourceSetInfo.AssignProperties_To_DatasourceSet(&dataSourceSetInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_DatasourceSet() to populate field DataSourceSetInfo") - } - destination.DataSourceSetInfo = &dataSourceSetInfo - } else { - destination.DataSourceSetInfo = nil - } - - // DatasourceAuthCredentials - if instance.DatasourceAuthCredentials != nil { - var datasourceAuthCredential v20231201s.AuthCredentials - err := instance.DatasourceAuthCredentials.AssignProperties_To_AuthCredentials(&datasourceAuthCredential) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_AuthCredentials() to populate field DatasourceAuthCredentials") - } - destination.DatasourceAuthCredentials = &datasourceAuthCredential - } else { - destination.DatasourceAuthCredentials = nil - } - - // FriendlyName - destination.FriendlyName = genruntime.ClonePointerToString(instance.FriendlyName) - - // IdentityDetails - if propertyBag.Contains("IdentityDetails") { - var identityDetail v20231201s.IdentityDetails - err := propertyBag.Pull("IdentityDetails", &identityDetail) - if err != nil { - return errors.Wrap(err, "pulling 'IdentityDetails' from propertyBag") - } - - destination.IdentityDetails = &identityDetail - } else { - destination.IdentityDetails = nil - } - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(instance.ObjectType) - - // PolicyInfo - if instance.PolicyInfo != nil { - var policyInfo v20231201s.PolicyInfo - err := instance.PolicyInfo.AssignProperties_To_PolicyInfo(&policyInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_PolicyInfo() to populate field PolicyInfo") - } - destination.PolicyInfo = &policyInfo - } else { - destination.PolicyInfo = nil - } - - // ValidationType - destination.ValidationType = genruntime.ClonePointerToString(instance.ValidationType) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForBackupInstance interface (if implemented) to customize the conversion - var instanceAsAny any = instance - if augmentedInstance, ok := instanceAsAny.(augmentConversionForBackupInstance); ok { - err := augmentedInstance.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.BackupInstance_STATUS -// Backup Instance -type BackupInstance_STATUS struct { - CurrentProtectionState *string `json:"currentProtectionState,omitempty"` - DataSourceInfo *Datasource_STATUS `json:"dataSourceInfo,omitempty"` - DataSourceSetInfo *DatasourceSet_STATUS `json:"dataSourceSetInfo,omitempty"` - DatasourceAuthCredentials *AuthCredentials_STATUS `json:"datasourceAuthCredentials,omitempty"` - FriendlyName *string `json:"friendlyName,omitempty"` - ObjectType *string `json:"objectType,omitempty"` - PolicyInfo *PolicyInfo_STATUS `json:"policyInfo,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - ProtectionErrorDetails *UserFacingError_STATUS `json:"protectionErrorDetails,omitempty"` - ProtectionStatus *ProtectionStatusDetails_STATUS `json:"protectionStatus,omitempty"` - ProvisioningState *string `json:"provisioningState,omitempty"` - ValidationType *string `json:"validationType,omitempty"` -} - -// AssignProperties_From_BackupInstance_STATUS populates our BackupInstance_STATUS from the provided source BackupInstance_STATUS -func (instance *BackupInstance_STATUS) AssignProperties_From_BackupInstance_STATUS(source *v20231201s.BackupInstance_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // CurrentProtectionState - instance.CurrentProtectionState = genruntime.ClonePointerToString(source.CurrentProtectionState) - - // DataSourceInfo - if source.DataSourceInfo != nil { - var dataSourceInfo Datasource_STATUS - err := dataSourceInfo.AssignProperties_From_Datasource_STATUS(source.DataSourceInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_Datasource_STATUS() to populate field DataSourceInfo") - } - instance.DataSourceInfo = &dataSourceInfo - } else { - instance.DataSourceInfo = nil - } - - // DataSourceSetInfo - if source.DataSourceSetInfo != nil { - var dataSourceSetInfo DatasourceSet_STATUS - err := dataSourceSetInfo.AssignProperties_From_DatasourceSet_STATUS(source.DataSourceSetInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_DatasourceSet_STATUS() to populate field DataSourceSetInfo") - } - instance.DataSourceSetInfo = &dataSourceSetInfo - } else { - instance.DataSourceSetInfo = nil - } - - // DatasourceAuthCredentials - if source.DatasourceAuthCredentials != nil { - var datasourceAuthCredential AuthCredentials_STATUS - err := datasourceAuthCredential.AssignProperties_From_AuthCredentials_STATUS(source.DatasourceAuthCredentials) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_AuthCredentials_STATUS() to populate field DatasourceAuthCredentials") - } - instance.DatasourceAuthCredentials = &datasourceAuthCredential - } else { - instance.DatasourceAuthCredentials = nil - } - - // FriendlyName - instance.FriendlyName = genruntime.ClonePointerToString(source.FriendlyName) - - // IdentityDetails - if source.IdentityDetails != nil { - propertyBag.Add("IdentityDetails", *source.IdentityDetails) - } else { - propertyBag.Remove("IdentityDetails") - } - - // ObjectType - instance.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // PolicyInfo - if source.PolicyInfo != nil { - var policyInfo PolicyInfo_STATUS - err := policyInfo.AssignProperties_From_PolicyInfo_STATUS(source.PolicyInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_PolicyInfo_STATUS() to populate field PolicyInfo") - } - instance.PolicyInfo = &policyInfo - } else { - instance.PolicyInfo = nil - } - - // ProtectionErrorDetails - if source.ProtectionErrorDetails != nil { - var protectionErrorDetail UserFacingError_STATUS - err := protectionErrorDetail.AssignProperties_From_UserFacingError_STATUS(source.ProtectionErrorDetails) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_UserFacingError_STATUS() to populate field ProtectionErrorDetails") - } - instance.ProtectionErrorDetails = &protectionErrorDetail - } else { - instance.ProtectionErrorDetails = nil - } - - // ProtectionStatus - if source.ProtectionStatus != nil { - var protectionStatus ProtectionStatusDetails_STATUS - err := protectionStatus.AssignProperties_From_ProtectionStatusDetails_STATUS(source.ProtectionStatus) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_ProtectionStatusDetails_STATUS() to populate field ProtectionStatus") - } - instance.ProtectionStatus = &protectionStatus - } else { - instance.ProtectionStatus = nil - } - - // ProvisioningState - instance.ProvisioningState = genruntime.ClonePointerToString(source.ProvisioningState) - - // ValidationType - instance.ValidationType = genruntime.ClonePointerToString(source.ValidationType) - - // Update the property bag - if len(propertyBag) > 0 { - instance.PropertyBag = propertyBag - } else { - instance.PropertyBag = nil - } - - // Invoke the augmentConversionForBackupInstance_STATUS interface (if implemented) to customize the conversion - var instanceAsAny any = instance - if augmentedInstance, ok := instanceAsAny.(augmentConversionForBackupInstance_STATUS); ok { - err := augmentedInstance.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_BackupInstance_STATUS populates the provided destination BackupInstance_STATUS from our BackupInstance_STATUS -func (instance *BackupInstance_STATUS) AssignProperties_To_BackupInstance_STATUS(destination *v20231201s.BackupInstance_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(instance.PropertyBag) - - // CurrentProtectionState - destination.CurrentProtectionState = genruntime.ClonePointerToString(instance.CurrentProtectionState) - - // DataSourceInfo - if instance.DataSourceInfo != nil { - var dataSourceInfo v20231201s.Datasource_STATUS - err := instance.DataSourceInfo.AssignProperties_To_Datasource_STATUS(&dataSourceInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_Datasource_STATUS() to populate field DataSourceInfo") - } - destination.DataSourceInfo = &dataSourceInfo - } else { - destination.DataSourceInfo = nil - } - - // DataSourceSetInfo - if instance.DataSourceSetInfo != nil { - var dataSourceSetInfo v20231201s.DatasourceSet_STATUS - err := instance.DataSourceSetInfo.AssignProperties_To_DatasourceSet_STATUS(&dataSourceSetInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_DatasourceSet_STATUS() to populate field DataSourceSetInfo") - } - destination.DataSourceSetInfo = &dataSourceSetInfo - } else { - destination.DataSourceSetInfo = nil - } - - // DatasourceAuthCredentials - if instance.DatasourceAuthCredentials != nil { - var datasourceAuthCredential v20231201s.AuthCredentials_STATUS - err := instance.DatasourceAuthCredentials.AssignProperties_To_AuthCredentials_STATUS(&datasourceAuthCredential) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_AuthCredentials_STATUS() to populate field DatasourceAuthCredentials") - } - destination.DatasourceAuthCredentials = &datasourceAuthCredential - } else { - destination.DatasourceAuthCredentials = nil - } - - // FriendlyName - destination.FriendlyName = genruntime.ClonePointerToString(instance.FriendlyName) - - // IdentityDetails - if propertyBag.Contains("IdentityDetails") { - var identityDetail v20231201s.IdentityDetails_STATUS - err := propertyBag.Pull("IdentityDetails", &identityDetail) - if err != nil { - return errors.Wrap(err, "pulling 'IdentityDetails' from propertyBag") - } - - destination.IdentityDetails = &identityDetail - } else { - destination.IdentityDetails = nil - } - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(instance.ObjectType) - - // PolicyInfo - if instance.PolicyInfo != nil { - var policyInfo v20231201s.PolicyInfo_STATUS - err := instance.PolicyInfo.AssignProperties_To_PolicyInfo_STATUS(&policyInfo) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_PolicyInfo_STATUS() to populate field PolicyInfo") - } - destination.PolicyInfo = &policyInfo - } else { - destination.PolicyInfo = nil - } - - // ProtectionErrorDetails - if instance.ProtectionErrorDetails != nil { - var protectionErrorDetail v20231201s.UserFacingError_STATUS - err := instance.ProtectionErrorDetails.AssignProperties_To_UserFacingError_STATUS(&protectionErrorDetail) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_UserFacingError_STATUS() to populate field ProtectionErrorDetails") - } - destination.ProtectionErrorDetails = &protectionErrorDetail - } else { - destination.ProtectionErrorDetails = nil - } - - // ProtectionStatus - if instance.ProtectionStatus != nil { - var protectionStatus v20231201s.ProtectionStatusDetails_STATUS - err := instance.ProtectionStatus.AssignProperties_To_ProtectionStatusDetails_STATUS(&protectionStatus) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_ProtectionStatusDetails_STATUS() to populate field ProtectionStatus") - } - destination.ProtectionStatus = &protectionStatus - } else { - destination.ProtectionStatus = nil - } - - // ProvisioningState - destination.ProvisioningState = genruntime.ClonePointerToString(instance.ProvisioningState) - - // ValidationType - destination.ValidationType = genruntime.ClonePointerToString(instance.ValidationType) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForBackupInstance_STATUS interface (if implemented) to customize the conversion - var instanceAsAny any = instance - if augmentedInstance, ok := instanceAsAny.(augmentConversionForBackupInstance_STATUS); ok { - err := augmentedInstance.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -type augmentConversionForBackupInstance interface { - AssignPropertiesFrom(src *v20231201s.BackupInstance) error - AssignPropertiesTo(dst *v20231201s.BackupInstance) error -} - -type augmentConversionForBackupInstance_STATUS interface { - AssignPropertiesFrom(src *v20231201s.BackupInstance_STATUS) error - AssignPropertiesTo(dst *v20231201s.BackupInstance_STATUS) error -} - -// Storage version of v1api20230101.AuthCredentials -type AuthCredentials struct { - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - SecretStoreBasedAuthCredentials *SecretStoreBasedAuthCredentials `json:"secretStoreBasedAuthCredentials,omitempty"` -} - -// AssignProperties_From_AuthCredentials populates our AuthCredentials from the provided source AuthCredentials -func (credentials *AuthCredentials) AssignProperties_From_AuthCredentials(source *v20231201s.AuthCredentials) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // SecretStoreBasedAuthCredentials - if source.SecretStoreBasedAuthCredentials != nil { - var secretStoreBasedAuthCredential SecretStoreBasedAuthCredentials - err := secretStoreBasedAuthCredential.AssignProperties_From_SecretStoreBasedAuthCredentials(source.SecretStoreBasedAuthCredentials) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_SecretStoreBasedAuthCredentials() to populate field SecretStoreBasedAuthCredentials") - } - credentials.SecretStoreBasedAuthCredentials = &secretStoreBasedAuthCredential - } else { - credentials.SecretStoreBasedAuthCredentials = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - credentials.PropertyBag = propertyBag - } else { - credentials.PropertyBag = nil - } - - // Invoke the augmentConversionForAuthCredentials interface (if implemented) to customize the conversion - var credentialsAsAny any = credentials - if augmentedCredentials, ok := credentialsAsAny.(augmentConversionForAuthCredentials); ok { - err := augmentedCredentials.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_AuthCredentials populates the provided destination AuthCredentials from our AuthCredentials -func (credentials *AuthCredentials) AssignProperties_To_AuthCredentials(destination *v20231201s.AuthCredentials) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(credentials.PropertyBag) - - // SecretStoreBasedAuthCredentials - if credentials.SecretStoreBasedAuthCredentials != nil { - var secretStoreBasedAuthCredential v20231201s.SecretStoreBasedAuthCredentials - err := credentials.SecretStoreBasedAuthCredentials.AssignProperties_To_SecretStoreBasedAuthCredentials(&secretStoreBasedAuthCredential) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_SecretStoreBasedAuthCredentials() to populate field SecretStoreBasedAuthCredentials") - } - destination.SecretStoreBasedAuthCredentials = &secretStoreBasedAuthCredential - } else { - destination.SecretStoreBasedAuthCredentials = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForAuthCredentials interface (if implemented) to customize the conversion - var credentialsAsAny any = credentials - if augmentedCredentials, ok := credentialsAsAny.(augmentConversionForAuthCredentials); ok { - err := augmentedCredentials.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.AuthCredentials_STATUS -type AuthCredentials_STATUS struct { - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - SecretStoreBasedAuthCredentials *SecretStoreBasedAuthCredentials_STATUS `json:"secretStoreBasedAuthCredentials,omitempty"` -} - -// AssignProperties_From_AuthCredentials_STATUS populates our AuthCredentials_STATUS from the provided source AuthCredentials_STATUS -func (credentials *AuthCredentials_STATUS) AssignProperties_From_AuthCredentials_STATUS(source *v20231201s.AuthCredentials_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // SecretStoreBasedAuthCredentials - if source.SecretStoreBasedAuthCredentials != nil { - var secretStoreBasedAuthCredential SecretStoreBasedAuthCredentials_STATUS - err := secretStoreBasedAuthCredential.AssignProperties_From_SecretStoreBasedAuthCredentials_STATUS(source.SecretStoreBasedAuthCredentials) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_SecretStoreBasedAuthCredentials_STATUS() to populate field SecretStoreBasedAuthCredentials") - } - credentials.SecretStoreBasedAuthCredentials = &secretStoreBasedAuthCredential - } else { - credentials.SecretStoreBasedAuthCredentials = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - credentials.PropertyBag = propertyBag - } else { - credentials.PropertyBag = nil - } - - // Invoke the augmentConversionForAuthCredentials_STATUS interface (if implemented) to customize the conversion - var credentialsAsAny any = credentials - if augmentedCredentials, ok := credentialsAsAny.(augmentConversionForAuthCredentials_STATUS); ok { - err := augmentedCredentials.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_AuthCredentials_STATUS populates the provided destination AuthCredentials_STATUS from our AuthCredentials_STATUS -func (credentials *AuthCredentials_STATUS) AssignProperties_To_AuthCredentials_STATUS(destination *v20231201s.AuthCredentials_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(credentials.PropertyBag) - - // SecretStoreBasedAuthCredentials - if credentials.SecretStoreBasedAuthCredentials != nil { - var secretStoreBasedAuthCredential v20231201s.SecretStoreBasedAuthCredentials_STATUS - err := credentials.SecretStoreBasedAuthCredentials.AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS(&secretStoreBasedAuthCredential) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS() to populate field SecretStoreBasedAuthCredentials") - } - destination.SecretStoreBasedAuthCredentials = &secretStoreBasedAuthCredential - } else { - destination.SecretStoreBasedAuthCredentials = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForAuthCredentials_STATUS interface (if implemented) to customize the conversion - var credentialsAsAny any = credentials - if augmentedCredentials, ok := credentialsAsAny.(augmentConversionForAuthCredentials_STATUS); ok { - err := augmentedCredentials.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.Datasource -// Datasource to be backed up -type Datasource struct { - DatasourceType *string `json:"datasourceType,omitempty"` - ObjectType *string `json:"objectType,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - ResourceLocation *string `json:"resourceLocation,omitempty"` - ResourceName *string `json:"resourceName,omitempty"` - - // +kubebuilder:validation:Required - // ResourceReference: Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will - // be the ID created by backup service via Fabric/Vault. - ResourceReference *genruntime.ResourceReference `armReference:"ResourceID" json:"resourceReference,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ResourceUri *string `json:"resourceUri,omitempty"` -} - -// AssignProperties_From_Datasource populates our Datasource from the provided source Datasource -func (datasource *Datasource) AssignProperties_From_Datasource(source *v20231201s.Datasource) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // DatasourceType - datasource.DatasourceType = genruntime.ClonePointerToString(source.DatasourceType) - - // ObjectType - datasource.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // ResourceLocation - datasource.ResourceLocation = genruntime.ClonePointerToString(source.ResourceLocation) - - // ResourceName - datasource.ResourceName = genruntime.ClonePointerToString(source.ResourceName) - - // ResourceProperties - if source.ResourceProperties != nil { - propertyBag.Add("ResourceProperties", *source.ResourceProperties) - } else { - propertyBag.Remove("ResourceProperties") - } - - // ResourceReference - if source.ResourceReference != nil { - resourceReference := source.ResourceReference.Copy() - datasource.ResourceReference = &resourceReference - } else { - datasource.ResourceReference = nil - } - - // ResourceType - datasource.ResourceType = genruntime.ClonePointerToString(source.ResourceType) - - // ResourceUri - datasource.ResourceUri = genruntime.ClonePointerToString(source.ResourceUri) - - // Update the property bag - if len(propertyBag) > 0 { - datasource.PropertyBag = propertyBag - } else { - datasource.PropertyBag = nil - } - - // Invoke the augmentConversionForDatasource interface (if implemented) to customize the conversion - var datasourceAsAny any = datasource - if augmentedDatasource, ok := datasourceAsAny.(augmentConversionForDatasource); ok { - err := augmentedDatasource.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_Datasource populates the provided destination Datasource from our Datasource -func (datasource *Datasource) AssignProperties_To_Datasource(destination *v20231201s.Datasource) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(datasource.PropertyBag) - - // DatasourceType - destination.DatasourceType = genruntime.ClonePointerToString(datasource.DatasourceType) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(datasource.ObjectType) - - // ResourceLocation - destination.ResourceLocation = genruntime.ClonePointerToString(datasource.ResourceLocation) - - // ResourceName - destination.ResourceName = genruntime.ClonePointerToString(datasource.ResourceName) - - // ResourceProperties - if propertyBag.Contains("ResourceProperties") { - var resourceProperty v20231201s.BaseResourceProperties - err := propertyBag.Pull("ResourceProperties", &resourceProperty) - if err != nil { - return errors.Wrap(err, "pulling 'ResourceProperties' from propertyBag") - } - - destination.ResourceProperties = &resourceProperty - } else { - destination.ResourceProperties = nil - } - - // ResourceReference - if datasource.ResourceReference != nil { - resourceReference := datasource.ResourceReference.Copy() - destination.ResourceReference = &resourceReference - } else { - destination.ResourceReference = nil - } - - // ResourceType - destination.ResourceType = genruntime.ClonePointerToString(datasource.ResourceType) - - // ResourceUri - destination.ResourceUri = genruntime.ClonePointerToString(datasource.ResourceUri) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForDatasource interface (if implemented) to customize the conversion - var datasourceAsAny any = datasource - if augmentedDatasource, ok := datasourceAsAny.(augmentConversionForDatasource); ok { - err := augmentedDatasource.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.Datasource_STATUS -// Datasource to be backed up -type Datasource_STATUS struct { - DatasourceType *string `json:"datasourceType,omitempty"` - ObjectType *string `json:"objectType,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - ResourceID *string `json:"resourceID,omitempty"` - ResourceLocation *string `json:"resourceLocation,omitempty"` - ResourceName *string `json:"resourceName,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ResourceUri *string `json:"resourceUri,omitempty"` -} - -// AssignProperties_From_Datasource_STATUS populates our Datasource_STATUS from the provided source Datasource_STATUS -func (datasource *Datasource_STATUS) AssignProperties_From_Datasource_STATUS(source *v20231201s.Datasource_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // DatasourceType - datasource.DatasourceType = genruntime.ClonePointerToString(source.DatasourceType) - - // ObjectType - datasource.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // ResourceID - datasource.ResourceID = genruntime.ClonePointerToString(source.ResourceID) - - // ResourceLocation - datasource.ResourceLocation = genruntime.ClonePointerToString(source.ResourceLocation) - - // ResourceName - datasource.ResourceName = genruntime.ClonePointerToString(source.ResourceName) - - // ResourceProperties - if source.ResourceProperties != nil { - propertyBag.Add("ResourceProperties", *source.ResourceProperties) - } else { - propertyBag.Remove("ResourceProperties") - } - - // ResourceType - datasource.ResourceType = genruntime.ClonePointerToString(source.ResourceType) - - // ResourceUri - datasource.ResourceUri = genruntime.ClonePointerToString(source.ResourceUri) - - // Update the property bag - if len(propertyBag) > 0 { - datasource.PropertyBag = propertyBag - } else { - datasource.PropertyBag = nil - } - - // Invoke the augmentConversionForDatasource_STATUS interface (if implemented) to customize the conversion - var datasourceAsAny any = datasource - if augmentedDatasource, ok := datasourceAsAny.(augmentConversionForDatasource_STATUS); ok { - err := augmentedDatasource.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_Datasource_STATUS populates the provided destination Datasource_STATUS from our Datasource_STATUS -func (datasource *Datasource_STATUS) AssignProperties_To_Datasource_STATUS(destination *v20231201s.Datasource_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(datasource.PropertyBag) - - // DatasourceType - destination.DatasourceType = genruntime.ClonePointerToString(datasource.DatasourceType) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(datasource.ObjectType) - - // ResourceID - destination.ResourceID = genruntime.ClonePointerToString(datasource.ResourceID) - - // ResourceLocation - destination.ResourceLocation = genruntime.ClonePointerToString(datasource.ResourceLocation) - - // ResourceName - destination.ResourceName = genruntime.ClonePointerToString(datasource.ResourceName) - - // ResourceProperties - if propertyBag.Contains("ResourceProperties") { - var resourceProperty v20231201s.BaseResourceProperties_STATUS - err := propertyBag.Pull("ResourceProperties", &resourceProperty) - if err != nil { - return errors.Wrap(err, "pulling 'ResourceProperties' from propertyBag") - } - - destination.ResourceProperties = &resourceProperty - } else { - destination.ResourceProperties = nil - } - - // ResourceType - destination.ResourceType = genruntime.ClonePointerToString(datasource.ResourceType) - - // ResourceUri - destination.ResourceUri = genruntime.ClonePointerToString(datasource.ResourceUri) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForDatasource_STATUS interface (if implemented) to customize the conversion - var datasourceAsAny any = datasource - if augmentedDatasource, ok := datasourceAsAny.(augmentConversionForDatasource_STATUS); ok { - err := augmentedDatasource.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.DatasourceSet -// DatasourceSet details of datasource to be backed up -type DatasourceSet struct { - DatasourceType *string `json:"datasourceType,omitempty"` - ObjectType *string `json:"objectType,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - ResourceLocation *string `json:"resourceLocation,omitempty"` - ResourceName *string `json:"resourceName,omitempty"` - - // +kubebuilder:validation:Required - // ResourceReference: Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will - // be the ID created by backup service via Fabric/Vault. - ResourceReference *genruntime.ResourceReference `armReference:"ResourceID" json:"resourceReference,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ResourceUri *string `json:"resourceUri,omitempty"` -} - -// AssignProperties_From_DatasourceSet populates our DatasourceSet from the provided source DatasourceSet -func (datasourceSet *DatasourceSet) AssignProperties_From_DatasourceSet(source *v20231201s.DatasourceSet) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // DatasourceType - datasourceSet.DatasourceType = genruntime.ClonePointerToString(source.DatasourceType) - - // ObjectType - datasourceSet.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // ResourceLocation - datasourceSet.ResourceLocation = genruntime.ClonePointerToString(source.ResourceLocation) - - // ResourceName - datasourceSet.ResourceName = genruntime.ClonePointerToString(source.ResourceName) - - // ResourceProperties - if source.ResourceProperties != nil { - propertyBag.Add("ResourceProperties", *source.ResourceProperties) - } else { - propertyBag.Remove("ResourceProperties") - } - - // ResourceReference - if source.ResourceReference != nil { - resourceReference := source.ResourceReference.Copy() - datasourceSet.ResourceReference = &resourceReference - } else { - datasourceSet.ResourceReference = nil - } - - // ResourceType - datasourceSet.ResourceType = genruntime.ClonePointerToString(source.ResourceType) - - // ResourceUri - datasourceSet.ResourceUri = genruntime.ClonePointerToString(source.ResourceUri) - - // Update the property bag - if len(propertyBag) > 0 { - datasourceSet.PropertyBag = propertyBag - } else { - datasourceSet.PropertyBag = nil - } - - // Invoke the augmentConversionForDatasourceSet interface (if implemented) to customize the conversion - var datasourceSetAsAny any = datasourceSet - if augmentedDatasourceSet, ok := datasourceSetAsAny.(augmentConversionForDatasourceSet); ok { - err := augmentedDatasourceSet.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_DatasourceSet populates the provided destination DatasourceSet from our DatasourceSet -func (datasourceSet *DatasourceSet) AssignProperties_To_DatasourceSet(destination *v20231201s.DatasourceSet) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(datasourceSet.PropertyBag) - - // DatasourceType - destination.DatasourceType = genruntime.ClonePointerToString(datasourceSet.DatasourceType) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(datasourceSet.ObjectType) - - // ResourceLocation - destination.ResourceLocation = genruntime.ClonePointerToString(datasourceSet.ResourceLocation) - - // ResourceName - destination.ResourceName = genruntime.ClonePointerToString(datasourceSet.ResourceName) - - // ResourceProperties - if propertyBag.Contains("ResourceProperties") { - var resourceProperty v20231201s.BaseResourceProperties - err := propertyBag.Pull("ResourceProperties", &resourceProperty) - if err != nil { - return errors.Wrap(err, "pulling 'ResourceProperties' from propertyBag") - } - - destination.ResourceProperties = &resourceProperty - } else { - destination.ResourceProperties = nil - } - - // ResourceReference - if datasourceSet.ResourceReference != nil { - resourceReference := datasourceSet.ResourceReference.Copy() - destination.ResourceReference = &resourceReference - } else { - destination.ResourceReference = nil - } - - // ResourceType - destination.ResourceType = genruntime.ClonePointerToString(datasourceSet.ResourceType) - - // ResourceUri - destination.ResourceUri = genruntime.ClonePointerToString(datasourceSet.ResourceUri) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForDatasourceSet interface (if implemented) to customize the conversion - var datasourceSetAsAny any = datasourceSet - if augmentedDatasourceSet, ok := datasourceSetAsAny.(augmentConversionForDatasourceSet); ok { - err := augmentedDatasourceSet.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.DatasourceSet_STATUS -// DatasourceSet details of datasource to be backed up -type DatasourceSet_STATUS struct { - DatasourceType *string `json:"datasourceType,omitempty"` - ObjectType *string `json:"objectType,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - ResourceID *string `json:"resourceID,omitempty"` - ResourceLocation *string `json:"resourceLocation,omitempty"` - ResourceName *string `json:"resourceName,omitempty"` - ResourceType *string `json:"resourceType,omitempty"` - ResourceUri *string `json:"resourceUri,omitempty"` -} - -// AssignProperties_From_DatasourceSet_STATUS populates our DatasourceSet_STATUS from the provided source DatasourceSet_STATUS -func (datasourceSet *DatasourceSet_STATUS) AssignProperties_From_DatasourceSet_STATUS(source *v20231201s.DatasourceSet_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // DatasourceType - datasourceSet.DatasourceType = genruntime.ClonePointerToString(source.DatasourceType) - - // ObjectType - datasourceSet.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // ResourceID - datasourceSet.ResourceID = genruntime.ClonePointerToString(source.ResourceID) - - // ResourceLocation - datasourceSet.ResourceLocation = genruntime.ClonePointerToString(source.ResourceLocation) - - // ResourceName - datasourceSet.ResourceName = genruntime.ClonePointerToString(source.ResourceName) - - // ResourceProperties - if source.ResourceProperties != nil { - propertyBag.Add("ResourceProperties", *source.ResourceProperties) - } else { - propertyBag.Remove("ResourceProperties") - } - - // ResourceType - datasourceSet.ResourceType = genruntime.ClonePointerToString(source.ResourceType) - - // ResourceUri - datasourceSet.ResourceUri = genruntime.ClonePointerToString(source.ResourceUri) - - // Update the property bag - if len(propertyBag) > 0 { - datasourceSet.PropertyBag = propertyBag - } else { - datasourceSet.PropertyBag = nil - } - - // Invoke the augmentConversionForDatasourceSet_STATUS interface (if implemented) to customize the conversion - var datasourceSetAsAny any = datasourceSet - if augmentedDatasourceSet, ok := datasourceSetAsAny.(augmentConversionForDatasourceSet_STATUS); ok { - err := augmentedDatasourceSet.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_DatasourceSet_STATUS populates the provided destination DatasourceSet_STATUS from our DatasourceSet_STATUS -func (datasourceSet *DatasourceSet_STATUS) AssignProperties_To_DatasourceSet_STATUS(destination *v20231201s.DatasourceSet_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(datasourceSet.PropertyBag) - - // DatasourceType - destination.DatasourceType = genruntime.ClonePointerToString(datasourceSet.DatasourceType) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(datasourceSet.ObjectType) - - // ResourceID - destination.ResourceID = genruntime.ClonePointerToString(datasourceSet.ResourceID) - - // ResourceLocation - destination.ResourceLocation = genruntime.ClonePointerToString(datasourceSet.ResourceLocation) - - // ResourceName - destination.ResourceName = genruntime.ClonePointerToString(datasourceSet.ResourceName) - - // ResourceProperties - if propertyBag.Contains("ResourceProperties") { - var resourceProperty v20231201s.BaseResourceProperties_STATUS - err := propertyBag.Pull("ResourceProperties", &resourceProperty) - if err != nil { - return errors.Wrap(err, "pulling 'ResourceProperties' from propertyBag") - } - - destination.ResourceProperties = &resourceProperty - } else { - destination.ResourceProperties = nil - } - - // ResourceType - destination.ResourceType = genruntime.ClonePointerToString(datasourceSet.ResourceType) - - // ResourceUri - destination.ResourceUri = genruntime.ClonePointerToString(datasourceSet.ResourceUri) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForDatasourceSet_STATUS interface (if implemented) to customize the conversion - var datasourceSetAsAny any = datasourceSet - if augmentedDatasourceSet, ok := datasourceSetAsAny.(augmentConversionForDatasourceSet_STATUS); ok { - err := augmentedDatasourceSet.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.PolicyInfo -// Policy Info in backupInstance -type PolicyInfo struct { - PolicyParameters *PolicyParameters `json:"policyParameters,omitempty"` - - // +kubebuilder:validation:Required - PolicyReference *genruntime.ResourceReference `armReference:"PolicyId" json:"policyReference,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` -} - -// AssignProperties_From_PolicyInfo populates our PolicyInfo from the provided source PolicyInfo -func (info *PolicyInfo) AssignProperties_From_PolicyInfo(source *v20231201s.PolicyInfo) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // PolicyParameters - if source.PolicyParameters != nil { - var policyParameter PolicyParameters - err := policyParameter.AssignProperties_From_PolicyParameters(source.PolicyParameters) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_PolicyParameters() to populate field PolicyParameters") - } - info.PolicyParameters = &policyParameter - } else { - info.PolicyParameters = nil - } - - // PolicyReference - if source.PolicyReference != nil { - policyReference := source.PolicyReference.Copy() - info.PolicyReference = &policyReference - } else { - info.PolicyReference = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - info.PropertyBag = propertyBag - } else { - info.PropertyBag = nil - } - - // Invoke the augmentConversionForPolicyInfo interface (if implemented) to customize the conversion - var infoAsAny any = info - if augmentedInfo, ok := infoAsAny.(augmentConversionForPolicyInfo); ok { - err := augmentedInfo.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_PolicyInfo populates the provided destination PolicyInfo from our PolicyInfo -func (info *PolicyInfo) AssignProperties_To_PolicyInfo(destination *v20231201s.PolicyInfo) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(info.PropertyBag) - - // PolicyParameters - if info.PolicyParameters != nil { - var policyParameter v20231201s.PolicyParameters - err := info.PolicyParameters.AssignProperties_To_PolicyParameters(&policyParameter) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_PolicyParameters() to populate field PolicyParameters") - } - destination.PolicyParameters = &policyParameter - } else { - destination.PolicyParameters = nil - } - - // PolicyReference - if info.PolicyReference != nil { - policyReference := info.PolicyReference.Copy() - destination.PolicyReference = &policyReference - } else { - destination.PolicyReference = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForPolicyInfo interface (if implemented) to customize the conversion - var infoAsAny any = info - if augmentedInfo, ok := infoAsAny.(augmentConversionForPolicyInfo); ok { - err := augmentedInfo.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.PolicyInfo_STATUS -// Policy Info in backupInstance -type PolicyInfo_STATUS struct { - PolicyId *string `json:"policyId,omitempty"` - PolicyParameters *PolicyParameters_STATUS `json:"policyParameters,omitempty"` - PolicyVersion *string `json:"policyVersion,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` -} - -// AssignProperties_From_PolicyInfo_STATUS populates our PolicyInfo_STATUS from the provided source PolicyInfo_STATUS -func (info *PolicyInfo_STATUS) AssignProperties_From_PolicyInfo_STATUS(source *v20231201s.PolicyInfo_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // PolicyId - info.PolicyId = genruntime.ClonePointerToString(source.PolicyId) - - // PolicyParameters - if source.PolicyParameters != nil { - var policyParameter PolicyParameters_STATUS - err := policyParameter.AssignProperties_From_PolicyParameters_STATUS(source.PolicyParameters) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_PolicyParameters_STATUS() to populate field PolicyParameters") - } - info.PolicyParameters = &policyParameter - } else { - info.PolicyParameters = nil - } - - // PolicyVersion - info.PolicyVersion = genruntime.ClonePointerToString(source.PolicyVersion) - - // Update the property bag - if len(propertyBag) > 0 { - info.PropertyBag = propertyBag - } else { - info.PropertyBag = nil - } - - // Invoke the augmentConversionForPolicyInfo_STATUS interface (if implemented) to customize the conversion - var infoAsAny any = info - if augmentedInfo, ok := infoAsAny.(augmentConversionForPolicyInfo_STATUS); ok { - err := augmentedInfo.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_PolicyInfo_STATUS populates the provided destination PolicyInfo_STATUS from our PolicyInfo_STATUS -func (info *PolicyInfo_STATUS) AssignProperties_To_PolicyInfo_STATUS(destination *v20231201s.PolicyInfo_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(info.PropertyBag) - - // PolicyId - destination.PolicyId = genruntime.ClonePointerToString(info.PolicyId) - - // PolicyParameters - if info.PolicyParameters != nil { - var policyParameter v20231201s.PolicyParameters_STATUS - err := info.PolicyParameters.AssignProperties_To_PolicyParameters_STATUS(&policyParameter) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_PolicyParameters_STATUS() to populate field PolicyParameters") - } - destination.PolicyParameters = &policyParameter - } else { - destination.PolicyParameters = nil - } - - // PolicyVersion - destination.PolicyVersion = genruntime.ClonePointerToString(info.PolicyVersion) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForPolicyInfo_STATUS interface (if implemented) to customize the conversion - var infoAsAny any = info - if augmentedInfo, ok := infoAsAny.(augmentConversionForPolicyInfo_STATUS); ok { - err := augmentedInfo.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.ProtectionStatusDetails_STATUS -// Protection status details -type ProtectionStatusDetails_STATUS struct { - ErrorDetails *UserFacingError_STATUS `json:"errorDetails,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - Status *string `json:"status,omitempty"` -} - -// AssignProperties_From_ProtectionStatusDetails_STATUS populates our ProtectionStatusDetails_STATUS from the provided source ProtectionStatusDetails_STATUS -func (details *ProtectionStatusDetails_STATUS) AssignProperties_From_ProtectionStatusDetails_STATUS(source *v20231201s.ProtectionStatusDetails_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // ErrorDetails - if source.ErrorDetails != nil { - var errorDetail UserFacingError_STATUS - err := errorDetail.AssignProperties_From_UserFacingError_STATUS(source.ErrorDetails) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_UserFacingError_STATUS() to populate field ErrorDetails") - } - details.ErrorDetails = &errorDetail - } else { - details.ErrorDetails = nil - } - - // Status - details.Status = genruntime.ClonePointerToString(source.Status) - - // Update the property bag - if len(propertyBag) > 0 { - details.PropertyBag = propertyBag - } else { - details.PropertyBag = nil - } - - // Invoke the augmentConversionForProtectionStatusDetails_STATUS interface (if implemented) to customize the conversion - var detailsAsAny any = details - if augmentedDetails, ok := detailsAsAny.(augmentConversionForProtectionStatusDetails_STATUS); ok { - err := augmentedDetails.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_ProtectionStatusDetails_STATUS populates the provided destination ProtectionStatusDetails_STATUS from our ProtectionStatusDetails_STATUS -func (details *ProtectionStatusDetails_STATUS) AssignProperties_To_ProtectionStatusDetails_STATUS(destination *v20231201s.ProtectionStatusDetails_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(details.PropertyBag) - - // ErrorDetails - if details.ErrorDetails != nil { - var errorDetail v20231201s.UserFacingError_STATUS - err := details.ErrorDetails.AssignProperties_To_UserFacingError_STATUS(&errorDetail) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_UserFacingError_STATUS() to populate field ErrorDetails") - } - destination.ErrorDetails = &errorDetail - } else { - destination.ErrorDetails = nil - } - - // Status - destination.Status = genruntime.ClonePointerToString(details.Status) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForProtectionStatusDetails_STATUS interface (if implemented) to customize the conversion - var detailsAsAny any = details - if augmentedDetails, ok := detailsAsAny.(augmentConversionForProtectionStatusDetails_STATUS); ok { - err := augmentedDetails.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.UserFacingError_STATUS -// Error object used by layers that have access to localized content, and propagate that to user -type UserFacingError_STATUS struct { - Code *string `json:"code,omitempty"` - Details []UserFacingError_STATUS_Unrolled `json:"details,omitempty"` - InnerError *InnerError_STATUS `json:"innerError,omitempty"` - IsRetryable *bool `json:"isRetryable,omitempty"` - IsUserError *bool `json:"isUserError,omitempty"` - Message *string `json:"message,omitempty"` - Properties map[string]string `json:"properties,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - RecommendedAction []string `json:"recommendedAction,omitempty"` - Target *string `json:"target,omitempty"` -} - -// AssignProperties_From_UserFacingError_STATUS populates our UserFacingError_STATUS from the provided source UserFacingError_STATUS -func (error *UserFacingError_STATUS) AssignProperties_From_UserFacingError_STATUS(source *v20231201s.UserFacingError_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // Code - error.Code = genruntime.ClonePointerToString(source.Code) - - // Details - if source.Details != nil { - detailList := make([]UserFacingError_STATUS_Unrolled, len(source.Details)) - for detailIndex, detailItem := range source.Details { - // Shadow the loop variable to avoid aliasing - detailItem := detailItem - var detail UserFacingError_STATUS_Unrolled - err := detail.AssignProperties_From_UserFacingError_STATUS_Unrolled(&detailItem) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_UserFacingError_STATUS_Unrolled() to populate field Details") - } - detailList[detailIndex] = detail - } - error.Details = detailList - } else { - error.Details = nil - } - - // InnerError - if source.InnerError != nil { - var innerError InnerError_STATUS - err := innerError.AssignProperties_From_InnerError_STATUS(source.InnerError) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_InnerError_STATUS() to populate field InnerError") - } - error.InnerError = &innerError - } else { - error.InnerError = nil - } - - // IsRetryable - if source.IsRetryable != nil { - isRetryable := *source.IsRetryable - error.IsRetryable = &isRetryable - } else { - error.IsRetryable = nil - } - - // IsUserError - if source.IsUserError != nil { - isUserError := *source.IsUserError - error.IsUserError = &isUserError - } else { - error.IsUserError = nil - } - - // Message - error.Message = genruntime.ClonePointerToString(source.Message) - - // Properties - error.Properties = genruntime.CloneMapOfStringToString(source.Properties) - - // RecommendedAction - error.RecommendedAction = genruntime.CloneSliceOfString(source.RecommendedAction) - - // Target - error.Target = genruntime.ClonePointerToString(source.Target) - - // Update the property bag - if len(propertyBag) > 0 { - error.PropertyBag = propertyBag - } else { - error.PropertyBag = nil - } - - // Invoke the augmentConversionForUserFacingError_STATUS interface (if implemented) to customize the conversion - var errorAsAny any = error - if augmentedError, ok := errorAsAny.(augmentConversionForUserFacingError_STATUS); ok { - err := augmentedError.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_UserFacingError_STATUS populates the provided destination UserFacingError_STATUS from our UserFacingError_STATUS -func (error *UserFacingError_STATUS) AssignProperties_To_UserFacingError_STATUS(destination *v20231201s.UserFacingError_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(error.PropertyBag) - - // Code - destination.Code = genruntime.ClonePointerToString(error.Code) - - // Details - if error.Details != nil { - detailList := make([]v20231201s.UserFacingError_STATUS_Unrolled, len(error.Details)) - for detailIndex, detailItem := range error.Details { - // Shadow the loop variable to avoid aliasing - detailItem := detailItem - var detail v20231201s.UserFacingError_STATUS_Unrolled - err := detailItem.AssignProperties_To_UserFacingError_STATUS_Unrolled(&detail) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_UserFacingError_STATUS_Unrolled() to populate field Details") - } - detailList[detailIndex] = detail - } - destination.Details = detailList - } else { - destination.Details = nil - } - - // InnerError - if error.InnerError != nil { - var innerError v20231201s.InnerError_STATUS - err := error.InnerError.AssignProperties_To_InnerError_STATUS(&innerError) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_InnerError_STATUS() to populate field InnerError") - } - destination.InnerError = &innerError - } else { - destination.InnerError = nil - } - - // IsRetryable - if error.IsRetryable != nil { - isRetryable := *error.IsRetryable - destination.IsRetryable = &isRetryable - } else { - destination.IsRetryable = nil - } - - // IsUserError - if error.IsUserError != nil { - isUserError := *error.IsUserError - destination.IsUserError = &isUserError - } else { - destination.IsUserError = nil - } - - // Message - destination.Message = genruntime.ClonePointerToString(error.Message) - - // Properties - destination.Properties = genruntime.CloneMapOfStringToString(error.Properties) - - // RecommendedAction - destination.RecommendedAction = genruntime.CloneSliceOfString(error.RecommendedAction) - - // Target - destination.Target = genruntime.ClonePointerToString(error.Target) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForUserFacingError_STATUS interface (if implemented) to customize the conversion - var errorAsAny any = error - if augmentedError, ok := errorAsAny.(augmentConversionForUserFacingError_STATUS); ok { - err := augmentedError.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -type augmentConversionForAuthCredentials interface { - AssignPropertiesFrom(src *v20231201s.AuthCredentials) error - AssignPropertiesTo(dst *v20231201s.AuthCredentials) error -} - -type augmentConversionForAuthCredentials_STATUS interface { - AssignPropertiesFrom(src *v20231201s.AuthCredentials_STATUS) error - AssignPropertiesTo(dst *v20231201s.AuthCredentials_STATUS) error -} - -type augmentConversionForDatasource interface { - AssignPropertiesFrom(src *v20231201s.Datasource) error - AssignPropertiesTo(dst *v20231201s.Datasource) error -} - -type augmentConversionForDatasource_STATUS interface { - AssignPropertiesFrom(src *v20231201s.Datasource_STATUS) error - AssignPropertiesTo(dst *v20231201s.Datasource_STATUS) error -} - -type augmentConversionForDatasourceSet interface { - AssignPropertiesFrom(src *v20231201s.DatasourceSet) error - AssignPropertiesTo(dst *v20231201s.DatasourceSet) error -} - -type augmentConversionForDatasourceSet_STATUS interface { - AssignPropertiesFrom(src *v20231201s.DatasourceSet_STATUS) error - AssignPropertiesTo(dst *v20231201s.DatasourceSet_STATUS) error -} - -type augmentConversionForPolicyInfo interface { - AssignPropertiesFrom(src *v20231201s.PolicyInfo) error - AssignPropertiesTo(dst *v20231201s.PolicyInfo) error -} - -type augmentConversionForPolicyInfo_STATUS interface { - AssignPropertiesFrom(src *v20231201s.PolicyInfo_STATUS) error - AssignPropertiesTo(dst *v20231201s.PolicyInfo_STATUS) error -} - -type augmentConversionForProtectionStatusDetails_STATUS interface { - AssignPropertiesFrom(src *v20231201s.ProtectionStatusDetails_STATUS) error - AssignPropertiesTo(dst *v20231201s.ProtectionStatusDetails_STATUS) error -} - -type augmentConversionForUserFacingError_STATUS interface { - AssignPropertiesFrom(src *v20231201s.UserFacingError_STATUS) error - AssignPropertiesTo(dst *v20231201s.UserFacingError_STATUS) error -} - -// Storage version of v1api20230101.InnerError_STATUS -// Inner Error -type InnerError_STATUS struct { - AdditionalInfo map[string]string `json:"additionalInfo,omitempty"` - Code *string `json:"code,omitempty"` - EmbeddedInnerError *InnerError_STATUS_Unrolled `json:"embeddedInnerError,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` -} - -// AssignProperties_From_InnerError_STATUS populates our InnerError_STATUS from the provided source InnerError_STATUS -func (error *InnerError_STATUS) AssignProperties_From_InnerError_STATUS(source *v20231201s.InnerError_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // AdditionalInfo - error.AdditionalInfo = genruntime.CloneMapOfStringToString(source.AdditionalInfo) - - // Code - error.Code = genruntime.ClonePointerToString(source.Code) - - // EmbeddedInnerError - if source.EmbeddedInnerError != nil { - var embeddedInnerError InnerError_STATUS_Unrolled - err := embeddedInnerError.AssignProperties_From_InnerError_STATUS_Unrolled(source.EmbeddedInnerError) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_InnerError_STATUS_Unrolled() to populate field EmbeddedInnerError") - } - error.EmbeddedInnerError = &embeddedInnerError - } else { - error.EmbeddedInnerError = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - error.PropertyBag = propertyBag - } else { - error.PropertyBag = nil - } - - // Invoke the augmentConversionForInnerError_STATUS interface (if implemented) to customize the conversion - var errorAsAny any = error - if augmentedError, ok := errorAsAny.(augmentConversionForInnerError_STATUS); ok { - err := augmentedError.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_InnerError_STATUS populates the provided destination InnerError_STATUS from our InnerError_STATUS -func (error *InnerError_STATUS) AssignProperties_To_InnerError_STATUS(destination *v20231201s.InnerError_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(error.PropertyBag) - - // AdditionalInfo - destination.AdditionalInfo = genruntime.CloneMapOfStringToString(error.AdditionalInfo) - - // Code - destination.Code = genruntime.ClonePointerToString(error.Code) - - // EmbeddedInnerError - if error.EmbeddedInnerError != nil { - var embeddedInnerError v20231201s.InnerError_STATUS_Unrolled - err := error.EmbeddedInnerError.AssignProperties_To_InnerError_STATUS_Unrolled(&embeddedInnerError) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_InnerError_STATUS_Unrolled() to populate field EmbeddedInnerError") - } - destination.EmbeddedInnerError = &embeddedInnerError - } else { - destination.EmbeddedInnerError = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForInnerError_STATUS interface (if implemented) to customize the conversion - var errorAsAny any = error - if augmentedError, ok := errorAsAny.(augmentConversionForInnerError_STATUS); ok { - err := augmentedError.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.PolicyParameters -// Parameters in Policy -type PolicyParameters struct { - BackupDatasourceParametersList []BackupDatasourceParameters `json:"backupDatasourceParametersList,omitempty"` - DataStoreParametersList []DataStoreParameters `json:"dataStoreParametersList,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` -} - -// AssignProperties_From_PolicyParameters populates our PolicyParameters from the provided source PolicyParameters -func (parameters *PolicyParameters) AssignProperties_From_PolicyParameters(source *v20231201s.PolicyParameters) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // BackupDatasourceParametersList - if source.BackupDatasourceParametersList != nil { - backupDatasourceParametersList := make([]BackupDatasourceParameters, len(source.BackupDatasourceParametersList)) - for backupDatasourceParametersListIndex, backupDatasourceParametersListItem := range source.BackupDatasourceParametersList { - // Shadow the loop variable to avoid aliasing - backupDatasourceParametersListItem := backupDatasourceParametersListItem - var backupDatasourceParametersListLocal BackupDatasourceParameters - err := backupDatasourceParametersListLocal.AssignProperties_From_BackupDatasourceParameters(&backupDatasourceParametersListItem) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_BackupDatasourceParameters() to populate field BackupDatasourceParametersList") - } - backupDatasourceParametersList[backupDatasourceParametersListIndex] = backupDatasourceParametersListLocal - } - parameters.BackupDatasourceParametersList = backupDatasourceParametersList - } else { - parameters.BackupDatasourceParametersList = nil - } - - // DataStoreParametersList - if source.DataStoreParametersList != nil { - dataStoreParametersList := make([]DataStoreParameters, len(source.DataStoreParametersList)) - for dataStoreParametersListIndex, dataStoreParametersListItem := range source.DataStoreParametersList { - // Shadow the loop variable to avoid aliasing - dataStoreParametersListItem := dataStoreParametersListItem - var dataStoreParametersListLocal DataStoreParameters - err := dataStoreParametersListLocal.AssignProperties_From_DataStoreParameters(&dataStoreParametersListItem) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_DataStoreParameters() to populate field DataStoreParametersList") - } - dataStoreParametersList[dataStoreParametersListIndex] = dataStoreParametersListLocal - } - parameters.DataStoreParametersList = dataStoreParametersList - } else { - parameters.DataStoreParametersList = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - parameters.PropertyBag = propertyBag - } else { - parameters.PropertyBag = nil - } - - // Invoke the augmentConversionForPolicyParameters interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForPolicyParameters); ok { - err := augmentedParameters.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_PolicyParameters populates the provided destination PolicyParameters from our PolicyParameters -func (parameters *PolicyParameters) AssignProperties_To_PolicyParameters(destination *v20231201s.PolicyParameters) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(parameters.PropertyBag) - - // BackupDatasourceParametersList - if parameters.BackupDatasourceParametersList != nil { - backupDatasourceParametersList := make([]v20231201s.BackupDatasourceParameters, len(parameters.BackupDatasourceParametersList)) - for backupDatasourceParametersListIndex, backupDatasourceParametersListItem := range parameters.BackupDatasourceParametersList { - // Shadow the loop variable to avoid aliasing - backupDatasourceParametersListItem := backupDatasourceParametersListItem - var backupDatasourceParametersListLocal v20231201s.BackupDatasourceParameters - err := backupDatasourceParametersListItem.AssignProperties_To_BackupDatasourceParameters(&backupDatasourceParametersListLocal) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_BackupDatasourceParameters() to populate field BackupDatasourceParametersList") - } - backupDatasourceParametersList[backupDatasourceParametersListIndex] = backupDatasourceParametersListLocal - } - destination.BackupDatasourceParametersList = backupDatasourceParametersList - } else { - destination.BackupDatasourceParametersList = nil - } - - // DataStoreParametersList - if parameters.DataStoreParametersList != nil { - dataStoreParametersList := make([]v20231201s.DataStoreParameters, len(parameters.DataStoreParametersList)) - for dataStoreParametersListIndex, dataStoreParametersListItem := range parameters.DataStoreParametersList { - // Shadow the loop variable to avoid aliasing - dataStoreParametersListItem := dataStoreParametersListItem - var dataStoreParametersListLocal v20231201s.DataStoreParameters - err := dataStoreParametersListItem.AssignProperties_To_DataStoreParameters(&dataStoreParametersListLocal) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_DataStoreParameters() to populate field DataStoreParametersList") - } - dataStoreParametersList[dataStoreParametersListIndex] = dataStoreParametersListLocal - } - destination.DataStoreParametersList = dataStoreParametersList - } else { - destination.DataStoreParametersList = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForPolicyParameters interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForPolicyParameters); ok { - err := augmentedParameters.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.PolicyParameters_STATUS -// Parameters in Policy -type PolicyParameters_STATUS struct { - BackupDatasourceParametersList []BackupDatasourceParameters_STATUS `json:"backupDatasourceParametersList,omitempty"` - DataStoreParametersList []DataStoreParameters_STATUS `json:"dataStoreParametersList,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` -} - -// AssignProperties_From_PolicyParameters_STATUS populates our PolicyParameters_STATUS from the provided source PolicyParameters_STATUS -func (parameters *PolicyParameters_STATUS) AssignProperties_From_PolicyParameters_STATUS(source *v20231201s.PolicyParameters_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // BackupDatasourceParametersList - if source.BackupDatasourceParametersList != nil { - backupDatasourceParametersList := make([]BackupDatasourceParameters_STATUS, len(source.BackupDatasourceParametersList)) - for backupDatasourceParametersListIndex, backupDatasourceParametersListItem := range source.BackupDatasourceParametersList { - // Shadow the loop variable to avoid aliasing - backupDatasourceParametersListItem := backupDatasourceParametersListItem - var backupDatasourceParametersListLocal BackupDatasourceParameters_STATUS - err := backupDatasourceParametersListLocal.AssignProperties_From_BackupDatasourceParameters_STATUS(&backupDatasourceParametersListItem) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_BackupDatasourceParameters_STATUS() to populate field BackupDatasourceParametersList") - } - backupDatasourceParametersList[backupDatasourceParametersListIndex] = backupDatasourceParametersListLocal - } - parameters.BackupDatasourceParametersList = backupDatasourceParametersList - } else { - parameters.BackupDatasourceParametersList = nil - } - - // DataStoreParametersList - if source.DataStoreParametersList != nil { - dataStoreParametersList := make([]DataStoreParameters_STATUS, len(source.DataStoreParametersList)) - for dataStoreParametersListIndex, dataStoreParametersListItem := range source.DataStoreParametersList { - // Shadow the loop variable to avoid aliasing - dataStoreParametersListItem := dataStoreParametersListItem - var dataStoreParametersListLocal DataStoreParameters_STATUS - err := dataStoreParametersListLocal.AssignProperties_From_DataStoreParameters_STATUS(&dataStoreParametersListItem) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_DataStoreParameters_STATUS() to populate field DataStoreParametersList") - } - dataStoreParametersList[dataStoreParametersListIndex] = dataStoreParametersListLocal - } - parameters.DataStoreParametersList = dataStoreParametersList - } else { - parameters.DataStoreParametersList = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - parameters.PropertyBag = propertyBag - } else { - parameters.PropertyBag = nil - } - - // Invoke the augmentConversionForPolicyParameters_STATUS interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForPolicyParameters_STATUS); ok { - err := augmentedParameters.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_PolicyParameters_STATUS populates the provided destination PolicyParameters_STATUS from our PolicyParameters_STATUS -func (parameters *PolicyParameters_STATUS) AssignProperties_To_PolicyParameters_STATUS(destination *v20231201s.PolicyParameters_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(parameters.PropertyBag) - - // BackupDatasourceParametersList - if parameters.BackupDatasourceParametersList != nil { - backupDatasourceParametersList := make([]v20231201s.BackupDatasourceParameters_STATUS, len(parameters.BackupDatasourceParametersList)) - for backupDatasourceParametersListIndex, backupDatasourceParametersListItem := range parameters.BackupDatasourceParametersList { - // Shadow the loop variable to avoid aliasing - backupDatasourceParametersListItem := backupDatasourceParametersListItem - var backupDatasourceParametersListLocal v20231201s.BackupDatasourceParameters_STATUS - err := backupDatasourceParametersListItem.AssignProperties_To_BackupDatasourceParameters_STATUS(&backupDatasourceParametersListLocal) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_BackupDatasourceParameters_STATUS() to populate field BackupDatasourceParametersList") - } - backupDatasourceParametersList[backupDatasourceParametersListIndex] = backupDatasourceParametersListLocal - } - destination.BackupDatasourceParametersList = backupDatasourceParametersList - } else { - destination.BackupDatasourceParametersList = nil - } - - // DataStoreParametersList - if parameters.DataStoreParametersList != nil { - dataStoreParametersList := make([]v20231201s.DataStoreParameters_STATUS, len(parameters.DataStoreParametersList)) - for dataStoreParametersListIndex, dataStoreParametersListItem := range parameters.DataStoreParametersList { - // Shadow the loop variable to avoid aliasing - dataStoreParametersListItem := dataStoreParametersListItem - var dataStoreParametersListLocal v20231201s.DataStoreParameters_STATUS - err := dataStoreParametersListItem.AssignProperties_To_DataStoreParameters_STATUS(&dataStoreParametersListLocal) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_DataStoreParameters_STATUS() to populate field DataStoreParametersList") - } - dataStoreParametersList[dataStoreParametersListIndex] = dataStoreParametersListLocal - } - destination.DataStoreParametersList = dataStoreParametersList - } else { - destination.DataStoreParametersList = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForPolicyParameters_STATUS interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForPolicyParameters_STATUS); ok { - err := augmentedParameters.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.SecretStoreBasedAuthCredentials -type SecretStoreBasedAuthCredentials struct { - ObjectType *string `json:"objectType,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - SecretStoreResource *SecretStoreResource `json:"secretStoreResource,omitempty"` -} - -// AssignProperties_From_SecretStoreBasedAuthCredentials populates our SecretStoreBasedAuthCredentials from the provided source SecretStoreBasedAuthCredentials -func (credentials *SecretStoreBasedAuthCredentials) AssignProperties_From_SecretStoreBasedAuthCredentials(source *v20231201s.SecretStoreBasedAuthCredentials) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // ObjectType - credentials.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // SecretStoreResource - if source.SecretStoreResource != nil { - var secretStoreResource SecretStoreResource - err := secretStoreResource.AssignProperties_From_SecretStoreResource(source.SecretStoreResource) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_SecretStoreResource() to populate field SecretStoreResource") - } - credentials.SecretStoreResource = &secretStoreResource - } else { - credentials.SecretStoreResource = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - credentials.PropertyBag = propertyBag - } else { - credentials.PropertyBag = nil - } - - // Invoke the augmentConversionForSecretStoreBasedAuthCredentials interface (if implemented) to customize the conversion - var credentialsAsAny any = credentials - if augmentedCredentials, ok := credentialsAsAny.(augmentConversionForSecretStoreBasedAuthCredentials); ok { - err := augmentedCredentials.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_SecretStoreBasedAuthCredentials populates the provided destination SecretStoreBasedAuthCredentials from our SecretStoreBasedAuthCredentials -func (credentials *SecretStoreBasedAuthCredentials) AssignProperties_To_SecretStoreBasedAuthCredentials(destination *v20231201s.SecretStoreBasedAuthCredentials) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(credentials.PropertyBag) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(credentials.ObjectType) - - // SecretStoreResource - if credentials.SecretStoreResource != nil { - var secretStoreResource v20231201s.SecretStoreResource - err := credentials.SecretStoreResource.AssignProperties_To_SecretStoreResource(&secretStoreResource) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_SecretStoreResource() to populate field SecretStoreResource") - } - destination.SecretStoreResource = &secretStoreResource - } else { - destination.SecretStoreResource = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForSecretStoreBasedAuthCredentials interface (if implemented) to customize the conversion - var credentialsAsAny any = credentials - if augmentedCredentials, ok := credentialsAsAny.(augmentConversionForSecretStoreBasedAuthCredentials); ok { - err := augmentedCredentials.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.SecretStoreBasedAuthCredentials_STATUS -type SecretStoreBasedAuthCredentials_STATUS struct { - ObjectType *string `json:"objectType,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - SecretStoreResource *SecretStoreResource_STATUS `json:"secretStoreResource,omitempty"` -} - -// AssignProperties_From_SecretStoreBasedAuthCredentials_STATUS populates our SecretStoreBasedAuthCredentials_STATUS from the provided source SecretStoreBasedAuthCredentials_STATUS -func (credentials *SecretStoreBasedAuthCredentials_STATUS) AssignProperties_From_SecretStoreBasedAuthCredentials_STATUS(source *v20231201s.SecretStoreBasedAuthCredentials_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // ObjectType - credentials.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // SecretStoreResource - if source.SecretStoreResource != nil { - var secretStoreResource SecretStoreResource_STATUS - err := secretStoreResource.AssignProperties_From_SecretStoreResource_STATUS(source.SecretStoreResource) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_SecretStoreResource_STATUS() to populate field SecretStoreResource") - } - credentials.SecretStoreResource = &secretStoreResource - } else { - credentials.SecretStoreResource = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - credentials.PropertyBag = propertyBag - } else { - credentials.PropertyBag = nil - } - - // Invoke the augmentConversionForSecretStoreBasedAuthCredentials_STATUS interface (if implemented) to customize the conversion - var credentialsAsAny any = credentials - if augmentedCredentials, ok := credentialsAsAny.(augmentConversionForSecretStoreBasedAuthCredentials_STATUS); ok { - err := augmentedCredentials.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS populates the provided destination SecretStoreBasedAuthCredentials_STATUS from our SecretStoreBasedAuthCredentials_STATUS -func (credentials *SecretStoreBasedAuthCredentials_STATUS) AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS(destination *v20231201s.SecretStoreBasedAuthCredentials_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(credentials.PropertyBag) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(credentials.ObjectType) - - // SecretStoreResource - if credentials.SecretStoreResource != nil { - var secretStoreResource v20231201s.SecretStoreResource_STATUS - err := credentials.SecretStoreResource.AssignProperties_To_SecretStoreResource_STATUS(&secretStoreResource) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_SecretStoreResource_STATUS() to populate field SecretStoreResource") - } - destination.SecretStoreResource = &secretStoreResource - } else { - destination.SecretStoreResource = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForSecretStoreBasedAuthCredentials_STATUS interface (if implemented) to customize the conversion - var credentialsAsAny any = credentials - if augmentedCredentials, ok := credentialsAsAny.(augmentConversionForSecretStoreBasedAuthCredentials_STATUS); ok { - err := augmentedCredentials.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.UserFacingError_STATUS_Unrolled -type UserFacingError_STATUS_Unrolled struct { - Code *string `json:"code,omitempty"` - InnerError *InnerError_STATUS `json:"innerError,omitempty"` - IsRetryable *bool `json:"isRetryable,omitempty"` - IsUserError *bool `json:"isUserError,omitempty"` - Message *string `json:"message,omitempty"` - Properties map[string]string `json:"properties,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - RecommendedAction []string `json:"recommendedAction,omitempty"` - Target *string `json:"target,omitempty"` -} - -// AssignProperties_From_UserFacingError_STATUS_Unrolled populates our UserFacingError_STATUS_Unrolled from the provided source UserFacingError_STATUS_Unrolled -func (unrolled *UserFacingError_STATUS_Unrolled) AssignProperties_From_UserFacingError_STATUS_Unrolled(source *v20231201s.UserFacingError_STATUS_Unrolled) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // Code - unrolled.Code = genruntime.ClonePointerToString(source.Code) - - // InnerError - if source.InnerError != nil { - var innerError InnerError_STATUS - err := innerError.AssignProperties_From_InnerError_STATUS(source.InnerError) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_InnerError_STATUS() to populate field InnerError") - } - unrolled.InnerError = &innerError - } else { - unrolled.InnerError = nil - } - - // IsRetryable - if source.IsRetryable != nil { - isRetryable := *source.IsRetryable - unrolled.IsRetryable = &isRetryable - } else { - unrolled.IsRetryable = nil - } - - // IsUserError - if source.IsUserError != nil { - isUserError := *source.IsUserError - unrolled.IsUserError = &isUserError - } else { - unrolled.IsUserError = nil - } - - // Message - unrolled.Message = genruntime.ClonePointerToString(source.Message) - - // Properties - unrolled.Properties = genruntime.CloneMapOfStringToString(source.Properties) - - // RecommendedAction - unrolled.RecommendedAction = genruntime.CloneSliceOfString(source.RecommendedAction) - - // Target - unrolled.Target = genruntime.ClonePointerToString(source.Target) - - // Update the property bag - if len(propertyBag) > 0 { - unrolled.PropertyBag = propertyBag - } else { - unrolled.PropertyBag = nil - } - - // Invoke the augmentConversionForUserFacingError_STATUS_Unrolled interface (if implemented) to customize the conversion - var unrolledAsAny any = unrolled - if augmentedUnrolled, ok := unrolledAsAny.(augmentConversionForUserFacingError_STATUS_Unrolled); ok { - err := augmentedUnrolled.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_UserFacingError_STATUS_Unrolled populates the provided destination UserFacingError_STATUS_Unrolled from our UserFacingError_STATUS_Unrolled -func (unrolled *UserFacingError_STATUS_Unrolled) AssignProperties_To_UserFacingError_STATUS_Unrolled(destination *v20231201s.UserFacingError_STATUS_Unrolled) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(unrolled.PropertyBag) - - // Code - destination.Code = genruntime.ClonePointerToString(unrolled.Code) - - // InnerError - if unrolled.InnerError != nil { - var innerError v20231201s.InnerError_STATUS - err := unrolled.InnerError.AssignProperties_To_InnerError_STATUS(&innerError) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_InnerError_STATUS() to populate field InnerError") - } - destination.InnerError = &innerError - } else { - destination.InnerError = nil - } - - // IsRetryable - if unrolled.IsRetryable != nil { - isRetryable := *unrolled.IsRetryable - destination.IsRetryable = &isRetryable - } else { - destination.IsRetryable = nil - } - - // IsUserError - if unrolled.IsUserError != nil { - isUserError := *unrolled.IsUserError - destination.IsUserError = &isUserError - } else { - destination.IsUserError = nil - } - - // Message - destination.Message = genruntime.ClonePointerToString(unrolled.Message) - - // Properties - destination.Properties = genruntime.CloneMapOfStringToString(unrolled.Properties) - - // RecommendedAction - destination.RecommendedAction = genruntime.CloneSliceOfString(unrolled.RecommendedAction) - - // Target - destination.Target = genruntime.ClonePointerToString(unrolled.Target) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForUserFacingError_STATUS_Unrolled interface (if implemented) to customize the conversion - var unrolledAsAny any = unrolled - if augmentedUnrolled, ok := unrolledAsAny.(augmentConversionForUserFacingError_STATUS_Unrolled); ok { - err := augmentedUnrolled.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -type augmentConversionForInnerError_STATUS interface { - AssignPropertiesFrom(src *v20231201s.InnerError_STATUS) error - AssignPropertiesTo(dst *v20231201s.InnerError_STATUS) error -} - -type augmentConversionForPolicyParameters interface { - AssignPropertiesFrom(src *v20231201s.PolicyParameters) error - AssignPropertiesTo(dst *v20231201s.PolicyParameters) error -} - -type augmentConversionForPolicyParameters_STATUS interface { - AssignPropertiesFrom(src *v20231201s.PolicyParameters_STATUS) error - AssignPropertiesTo(dst *v20231201s.PolicyParameters_STATUS) error -} - -type augmentConversionForSecretStoreBasedAuthCredentials interface { - AssignPropertiesFrom(src *v20231201s.SecretStoreBasedAuthCredentials) error - AssignPropertiesTo(dst *v20231201s.SecretStoreBasedAuthCredentials) error -} - -type augmentConversionForSecretStoreBasedAuthCredentials_STATUS interface { - AssignPropertiesFrom(src *v20231201s.SecretStoreBasedAuthCredentials_STATUS) error - AssignPropertiesTo(dst *v20231201s.SecretStoreBasedAuthCredentials_STATUS) error -} - -type augmentConversionForUserFacingError_STATUS_Unrolled interface { - AssignPropertiesFrom(src *v20231201s.UserFacingError_STATUS_Unrolled) error - AssignPropertiesTo(dst *v20231201s.UserFacingError_STATUS_Unrolled) error -} - -// Storage version of v1api20230101.BackupDatasourceParameters -type BackupDatasourceParameters struct { - Blob *BlobBackupDatasourceParameters `json:"blobBackupDatasourceParameters,omitempty"` - KubernetesCluster *KubernetesClusterBackupDatasourceParameters `json:"kubernetesClusterBackupDatasourceParameters,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` -} - -// AssignProperties_From_BackupDatasourceParameters populates our BackupDatasourceParameters from the provided source BackupDatasourceParameters -func (parameters *BackupDatasourceParameters) AssignProperties_From_BackupDatasourceParameters(source *v20231201s.BackupDatasourceParameters) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // Blob - if source.Blob != nil { - var blob BlobBackupDatasourceParameters - err := blob.AssignProperties_From_BlobBackupDatasourceParameters(source.Blob) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_BlobBackupDatasourceParameters() to populate field Blob") - } - parameters.Blob = &blob - } else { - parameters.Blob = nil - } - - // KubernetesCluster - if source.KubernetesCluster != nil { - var kubernetesCluster KubernetesClusterBackupDatasourceParameters - err := kubernetesCluster.AssignProperties_From_KubernetesClusterBackupDatasourceParameters(source.KubernetesCluster) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_KubernetesClusterBackupDatasourceParameters() to populate field KubernetesCluster") - } - parameters.KubernetesCluster = &kubernetesCluster - } else { - parameters.KubernetesCluster = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - parameters.PropertyBag = propertyBag - } else { - parameters.PropertyBag = nil - } - - // Invoke the augmentConversionForBackupDatasourceParameters interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForBackupDatasourceParameters); ok { - err := augmentedParameters.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_BackupDatasourceParameters populates the provided destination BackupDatasourceParameters from our BackupDatasourceParameters -func (parameters *BackupDatasourceParameters) AssignProperties_To_BackupDatasourceParameters(destination *v20231201s.BackupDatasourceParameters) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(parameters.PropertyBag) - - // Blob - if parameters.Blob != nil { - var blob v20231201s.BlobBackupDatasourceParameters - err := parameters.Blob.AssignProperties_To_BlobBackupDatasourceParameters(&blob) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_BlobBackupDatasourceParameters() to populate field Blob") - } - destination.Blob = &blob - } else { - destination.Blob = nil - } - - // KubernetesCluster - if parameters.KubernetesCluster != nil { - var kubernetesCluster v20231201s.KubernetesClusterBackupDatasourceParameters - err := parameters.KubernetesCluster.AssignProperties_To_KubernetesClusterBackupDatasourceParameters(&kubernetesCluster) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_KubernetesClusterBackupDatasourceParameters() to populate field KubernetesCluster") - } - destination.KubernetesCluster = &kubernetesCluster - } else { - destination.KubernetesCluster = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForBackupDatasourceParameters interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForBackupDatasourceParameters); ok { - err := augmentedParameters.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.BackupDatasourceParameters_STATUS -type BackupDatasourceParameters_STATUS struct { - Blob *BlobBackupDatasourceParameters_STATUS `json:"blobBackupDatasourceParameters,omitempty"` - KubernetesCluster *KubernetesClusterBackupDatasourceParameters_STATUS `json:"kubernetesClusterBackupDatasourceParameters,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` -} - -// AssignProperties_From_BackupDatasourceParameters_STATUS populates our BackupDatasourceParameters_STATUS from the provided source BackupDatasourceParameters_STATUS -func (parameters *BackupDatasourceParameters_STATUS) AssignProperties_From_BackupDatasourceParameters_STATUS(source *v20231201s.BackupDatasourceParameters_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // Blob - if source.Blob != nil { - var blob BlobBackupDatasourceParameters_STATUS - err := blob.AssignProperties_From_BlobBackupDatasourceParameters_STATUS(source.Blob) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_BlobBackupDatasourceParameters_STATUS() to populate field Blob") - } - parameters.Blob = &blob - } else { - parameters.Blob = nil - } - - // KubernetesCluster - if source.KubernetesCluster != nil { - var kubernetesCluster KubernetesClusterBackupDatasourceParameters_STATUS - err := kubernetesCluster.AssignProperties_From_KubernetesClusterBackupDatasourceParameters_STATUS(source.KubernetesCluster) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_KubernetesClusterBackupDatasourceParameters_STATUS() to populate field KubernetesCluster") - } - parameters.KubernetesCluster = &kubernetesCluster - } else { - parameters.KubernetesCluster = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - parameters.PropertyBag = propertyBag - } else { - parameters.PropertyBag = nil - } - - // Invoke the augmentConversionForBackupDatasourceParameters_STATUS interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForBackupDatasourceParameters_STATUS); ok { - err := augmentedParameters.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_BackupDatasourceParameters_STATUS populates the provided destination BackupDatasourceParameters_STATUS from our BackupDatasourceParameters_STATUS -func (parameters *BackupDatasourceParameters_STATUS) AssignProperties_To_BackupDatasourceParameters_STATUS(destination *v20231201s.BackupDatasourceParameters_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(parameters.PropertyBag) - - // Blob - if parameters.Blob != nil { - var blob v20231201s.BlobBackupDatasourceParameters_STATUS - err := parameters.Blob.AssignProperties_To_BlobBackupDatasourceParameters_STATUS(&blob) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_BlobBackupDatasourceParameters_STATUS() to populate field Blob") - } - destination.Blob = &blob - } else { - destination.Blob = nil - } - - // KubernetesCluster - if parameters.KubernetesCluster != nil { - var kubernetesCluster v20231201s.KubernetesClusterBackupDatasourceParameters_STATUS - err := parameters.KubernetesCluster.AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS(&kubernetesCluster) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS() to populate field KubernetesCluster") - } - destination.KubernetesCluster = &kubernetesCluster - } else { - destination.KubernetesCluster = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForBackupDatasourceParameters_STATUS interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForBackupDatasourceParameters_STATUS); ok { - err := augmentedParameters.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.DataStoreParameters -type DataStoreParameters struct { - AzureOperationalStoreParameters *AzureOperationalStoreParameters `json:"azureOperationalStoreParameters,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` -} - -// AssignProperties_From_DataStoreParameters populates our DataStoreParameters from the provided source DataStoreParameters -func (parameters *DataStoreParameters) AssignProperties_From_DataStoreParameters(source *v20231201s.DataStoreParameters) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // AzureOperationalStoreParameters - if source.AzureOperationalStoreParameters != nil { - var azureOperationalStoreParameter AzureOperationalStoreParameters - err := azureOperationalStoreParameter.AssignProperties_From_AzureOperationalStoreParameters(source.AzureOperationalStoreParameters) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_AzureOperationalStoreParameters() to populate field AzureOperationalStoreParameters") - } - parameters.AzureOperationalStoreParameters = &azureOperationalStoreParameter - } else { - parameters.AzureOperationalStoreParameters = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - parameters.PropertyBag = propertyBag - } else { - parameters.PropertyBag = nil - } - - // Invoke the augmentConversionForDataStoreParameters interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForDataStoreParameters); ok { - err := augmentedParameters.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_DataStoreParameters populates the provided destination DataStoreParameters from our DataStoreParameters -func (parameters *DataStoreParameters) AssignProperties_To_DataStoreParameters(destination *v20231201s.DataStoreParameters) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(parameters.PropertyBag) - - // AzureOperationalStoreParameters - if parameters.AzureOperationalStoreParameters != nil { - var azureOperationalStoreParameter v20231201s.AzureOperationalStoreParameters - err := parameters.AzureOperationalStoreParameters.AssignProperties_To_AzureOperationalStoreParameters(&azureOperationalStoreParameter) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_AzureOperationalStoreParameters() to populate field AzureOperationalStoreParameters") - } - destination.AzureOperationalStoreParameters = &azureOperationalStoreParameter - } else { - destination.AzureOperationalStoreParameters = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForDataStoreParameters interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForDataStoreParameters); ok { - err := augmentedParameters.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.DataStoreParameters_STATUS -type DataStoreParameters_STATUS struct { - AzureOperationalStoreParameters *AzureOperationalStoreParameters_STATUS `json:"azureOperationalStoreParameters,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` -} - -// AssignProperties_From_DataStoreParameters_STATUS populates our DataStoreParameters_STATUS from the provided source DataStoreParameters_STATUS -func (parameters *DataStoreParameters_STATUS) AssignProperties_From_DataStoreParameters_STATUS(source *v20231201s.DataStoreParameters_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // AzureOperationalStoreParameters - if source.AzureOperationalStoreParameters != nil { - var azureOperationalStoreParameter AzureOperationalStoreParameters_STATUS - err := azureOperationalStoreParameter.AssignProperties_From_AzureOperationalStoreParameters_STATUS(source.AzureOperationalStoreParameters) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_From_AzureOperationalStoreParameters_STATUS() to populate field AzureOperationalStoreParameters") - } - parameters.AzureOperationalStoreParameters = &azureOperationalStoreParameter - } else { - parameters.AzureOperationalStoreParameters = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - parameters.PropertyBag = propertyBag - } else { - parameters.PropertyBag = nil - } - - // Invoke the augmentConversionForDataStoreParameters_STATUS interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForDataStoreParameters_STATUS); ok { - err := augmentedParameters.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_DataStoreParameters_STATUS populates the provided destination DataStoreParameters_STATUS from our DataStoreParameters_STATUS -func (parameters *DataStoreParameters_STATUS) AssignProperties_To_DataStoreParameters_STATUS(destination *v20231201s.DataStoreParameters_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(parameters.PropertyBag) - - // AzureOperationalStoreParameters - if parameters.AzureOperationalStoreParameters != nil { - var azureOperationalStoreParameter v20231201s.AzureOperationalStoreParameters_STATUS - err := parameters.AzureOperationalStoreParameters.AssignProperties_To_AzureOperationalStoreParameters_STATUS(&azureOperationalStoreParameter) - if err != nil { - return errors.Wrap(err, "calling AssignProperties_To_AzureOperationalStoreParameters_STATUS() to populate field AzureOperationalStoreParameters") - } - destination.AzureOperationalStoreParameters = &azureOperationalStoreParameter - } else { - destination.AzureOperationalStoreParameters = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForDataStoreParameters_STATUS interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForDataStoreParameters_STATUS); ok { - err := augmentedParameters.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.InnerError_STATUS_Unrolled -type InnerError_STATUS_Unrolled struct { - AdditionalInfo map[string]string `json:"additionalInfo,omitempty"` - Code *string `json:"code,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` -} - -// AssignProperties_From_InnerError_STATUS_Unrolled populates our InnerError_STATUS_Unrolled from the provided source InnerError_STATUS_Unrolled -func (unrolled *InnerError_STATUS_Unrolled) AssignProperties_From_InnerError_STATUS_Unrolled(source *v20231201s.InnerError_STATUS_Unrolled) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // AdditionalInfo - unrolled.AdditionalInfo = genruntime.CloneMapOfStringToString(source.AdditionalInfo) - - // Code - unrolled.Code = genruntime.ClonePointerToString(source.Code) - - // Update the property bag - if len(propertyBag) > 0 { - unrolled.PropertyBag = propertyBag - } else { - unrolled.PropertyBag = nil - } - - // Invoke the augmentConversionForInnerError_STATUS_Unrolled interface (if implemented) to customize the conversion - var unrolledAsAny any = unrolled - if augmentedUnrolled, ok := unrolledAsAny.(augmentConversionForInnerError_STATUS_Unrolled); ok { - err := augmentedUnrolled.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_InnerError_STATUS_Unrolled populates the provided destination InnerError_STATUS_Unrolled from our InnerError_STATUS_Unrolled -func (unrolled *InnerError_STATUS_Unrolled) AssignProperties_To_InnerError_STATUS_Unrolled(destination *v20231201s.InnerError_STATUS_Unrolled) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(unrolled.PropertyBag) - - // AdditionalInfo - destination.AdditionalInfo = genruntime.CloneMapOfStringToString(unrolled.AdditionalInfo) - - // Code - destination.Code = genruntime.ClonePointerToString(unrolled.Code) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForInnerError_STATUS_Unrolled interface (if implemented) to customize the conversion - var unrolledAsAny any = unrolled - if augmentedUnrolled, ok := unrolledAsAny.(augmentConversionForInnerError_STATUS_Unrolled); ok { - err := augmentedUnrolled.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.SecretStoreResource -// Class representing a secret store resource. -type SecretStoreResource struct { - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - SecretStoreType *string `json:"secretStoreType,omitempty"` - Uri *string `json:"uri,omitempty"` - Value *string `json:"value,omitempty"` -} - -// AssignProperties_From_SecretStoreResource populates our SecretStoreResource from the provided source SecretStoreResource -func (resource *SecretStoreResource) AssignProperties_From_SecretStoreResource(source *v20231201s.SecretStoreResource) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // SecretStoreType - resource.SecretStoreType = genruntime.ClonePointerToString(source.SecretStoreType) - - // Uri - resource.Uri = genruntime.ClonePointerToString(source.Uri) - - // Value - resource.Value = genruntime.ClonePointerToString(source.Value) - - // Update the property bag - if len(propertyBag) > 0 { - resource.PropertyBag = propertyBag - } else { - resource.PropertyBag = nil - } - - // Invoke the augmentConversionForSecretStoreResource interface (if implemented) to customize the conversion - var resourceAsAny any = resource - if augmentedResource, ok := resourceAsAny.(augmentConversionForSecretStoreResource); ok { - err := augmentedResource.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_SecretStoreResource populates the provided destination SecretStoreResource from our SecretStoreResource -func (resource *SecretStoreResource) AssignProperties_To_SecretStoreResource(destination *v20231201s.SecretStoreResource) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(resource.PropertyBag) - - // SecretStoreType - destination.SecretStoreType = genruntime.ClonePointerToString(resource.SecretStoreType) - - // Uri - destination.Uri = genruntime.ClonePointerToString(resource.Uri) - - // Value - destination.Value = genruntime.ClonePointerToString(resource.Value) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForSecretStoreResource interface (if implemented) to customize the conversion - var resourceAsAny any = resource - if augmentedResource, ok := resourceAsAny.(augmentConversionForSecretStoreResource); ok { - err := augmentedResource.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.SecretStoreResource_STATUS -// Class representing a secret store resource. -type SecretStoreResource_STATUS struct { - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - SecretStoreType *string `json:"secretStoreType,omitempty"` - Uri *string `json:"uri,omitempty"` - Value *string `json:"value,omitempty"` -} - -// AssignProperties_From_SecretStoreResource_STATUS populates our SecretStoreResource_STATUS from the provided source SecretStoreResource_STATUS -func (resource *SecretStoreResource_STATUS) AssignProperties_From_SecretStoreResource_STATUS(source *v20231201s.SecretStoreResource_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // SecretStoreType - resource.SecretStoreType = genruntime.ClonePointerToString(source.SecretStoreType) - - // Uri - resource.Uri = genruntime.ClonePointerToString(source.Uri) - - // Value - resource.Value = genruntime.ClonePointerToString(source.Value) - - // Update the property bag - if len(propertyBag) > 0 { - resource.PropertyBag = propertyBag - } else { - resource.PropertyBag = nil - } - - // Invoke the augmentConversionForSecretStoreResource_STATUS interface (if implemented) to customize the conversion - var resourceAsAny any = resource - if augmentedResource, ok := resourceAsAny.(augmentConversionForSecretStoreResource_STATUS); ok { - err := augmentedResource.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_SecretStoreResource_STATUS populates the provided destination SecretStoreResource_STATUS from our SecretStoreResource_STATUS -func (resource *SecretStoreResource_STATUS) AssignProperties_To_SecretStoreResource_STATUS(destination *v20231201s.SecretStoreResource_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(resource.PropertyBag) - - // SecretStoreType - destination.SecretStoreType = genruntime.ClonePointerToString(resource.SecretStoreType) - - // Uri - destination.Uri = genruntime.ClonePointerToString(resource.Uri) - - // Value - destination.Value = genruntime.ClonePointerToString(resource.Value) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForSecretStoreResource_STATUS interface (if implemented) to customize the conversion - var resourceAsAny any = resource - if augmentedResource, ok := resourceAsAny.(augmentConversionForSecretStoreResource_STATUS); ok { - err := augmentedResource.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -type augmentConversionForBackupDatasourceParameters interface { - AssignPropertiesFrom(src *v20231201s.BackupDatasourceParameters) error - AssignPropertiesTo(dst *v20231201s.BackupDatasourceParameters) error -} - -type augmentConversionForBackupDatasourceParameters_STATUS interface { - AssignPropertiesFrom(src *v20231201s.BackupDatasourceParameters_STATUS) error - AssignPropertiesTo(dst *v20231201s.BackupDatasourceParameters_STATUS) error -} - -type augmentConversionForDataStoreParameters interface { - AssignPropertiesFrom(src *v20231201s.DataStoreParameters) error - AssignPropertiesTo(dst *v20231201s.DataStoreParameters) error -} - -type augmentConversionForDataStoreParameters_STATUS interface { - AssignPropertiesFrom(src *v20231201s.DataStoreParameters_STATUS) error - AssignPropertiesTo(dst *v20231201s.DataStoreParameters_STATUS) error -} - -type augmentConversionForInnerError_STATUS_Unrolled interface { - AssignPropertiesFrom(src *v20231201s.InnerError_STATUS_Unrolled) error - AssignPropertiesTo(dst *v20231201s.InnerError_STATUS_Unrolled) error -} - -type augmentConversionForSecretStoreResource interface { - AssignPropertiesFrom(src *v20231201s.SecretStoreResource) error - AssignPropertiesTo(dst *v20231201s.SecretStoreResource) error -} - -type augmentConversionForSecretStoreResource_STATUS interface { - AssignPropertiesFrom(src *v20231201s.SecretStoreResource_STATUS) error - AssignPropertiesTo(dst *v20231201s.SecretStoreResource_STATUS) error -} - -// Storage version of v1api20230101.AzureOperationalStoreParameters -type AzureOperationalStoreParameters struct { - DataStoreType *string `json:"dataStoreType,omitempty"` - ObjectType *string `json:"objectType,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - ResourceGroupId *string `json:"resourceGroupId,omitempty"` -} - -// AssignProperties_From_AzureOperationalStoreParameters populates our AzureOperationalStoreParameters from the provided source AzureOperationalStoreParameters -func (parameters *AzureOperationalStoreParameters) AssignProperties_From_AzureOperationalStoreParameters(source *v20231201s.AzureOperationalStoreParameters) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // DataStoreType - parameters.DataStoreType = genruntime.ClonePointerToString(source.DataStoreType) - - // ObjectType - parameters.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // ResourceGroupId - parameters.ResourceGroupId = genruntime.ClonePointerToString(source.ResourceGroupId) - - // Update the property bag - if len(propertyBag) > 0 { - parameters.PropertyBag = propertyBag - } else { - parameters.PropertyBag = nil - } - - // Invoke the augmentConversionForAzureOperationalStoreParameters interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForAzureOperationalStoreParameters); ok { - err := augmentedParameters.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_AzureOperationalStoreParameters populates the provided destination AzureOperationalStoreParameters from our AzureOperationalStoreParameters -func (parameters *AzureOperationalStoreParameters) AssignProperties_To_AzureOperationalStoreParameters(destination *v20231201s.AzureOperationalStoreParameters) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(parameters.PropertyBag) - - // DataStoreType - destination.DataStoreType = genruntime.ClonePointerToString(parameters.DataStoreType) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(parameters.ObjectType) - - // ResourceGroupId - destination.ResourceGroupId = genruntime.ClonePointerToString(parameters.ResourceGroupId) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForAzureOperationalStoreParameters interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForAzureOperationalStoreParameters); ok { - err := augmentedParameters.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.AzureOperationalStoreParameters_STATUS -type AzureOperationalStoreParameters_STATUS struct { - DataStoreType *string `json:"dataStoreType,omitempty"` - ObjectType *string `json:"objectType,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - ResourceGroupId *string `json:"resourceGroupId,omitempty"` -} - -// AssignProperties_From_AzureOperationalStoreParameters_STATUS populates our AzureOperationalStoreParameters_STATUS from the provided source AzureOperationalStoreParameters_STATUS -func (parameters *AzureOperationalStoreParameters_STATUS) AssignProperties_From_AzureOperationalStoreParameters_STATUS(source *v20231201s.AzureOperationalStoreParameters_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // DataStoreType - parameters.DataStoreType = genruntime.ClonePointerToString(source.DataStoreType) - - // ObjectType - parameters.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // ResourceGroupId - parameters.ResourceGroupId = genruntime.ClonePointerToString(source.ResourceGroupId) - - // Update the property bag - if len(propertyBag) > 0 { - parameters.PropertyBag = propertyBag - } else { - parameters.PropertyBag = nil - } - - // Invoke the augmentConversionForAzureOperationalStoreParameters_STATUS interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForAzureOperationalStoreParameters_STATUS); ok { - err := augmentedParameters.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_AzureOperationalStoreParameters_STATUS populates the provided destination AzureOperationalStoreParameters_STATUS from our AzureOperationalStoreParameters_STATUS -func (parameters *AzureOperationalStoreParameters_STATUS) AssignProperties_To_AzureOperationalStoreParameters_STATUS(destination *v20231201s.AzureOperationalStoreParameters_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(parameters.PropertyBag) - - // DataStoreType - destination.DataStoreType = genruntime.ClonePointerToString(parameters.DataStoreType) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(parameters.ObjectType) - - // ResourceGroupId - destination.ResourceGroupId = genruntime.ClonePointerToString(parameters.ResourceGroupId) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForAzureOperationalStoreParameters_STATUS interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForAzureOperationalStoreParameters_STATUS); ok { - err := augmentedParameters.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.BlobBackupDatasourceParameters -type BlobBackupDatasourceParameters struct { - ContainersList []string `json:"containersList,omitempty"` - ObjectType *string `json:"objectType,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` -} - -// AssignProperties_From_BlobBackupDatasourceParameters populates our BlobBackupDatasourceParameters from the provided source BlobBackupDatasourceParameters -func (parameters *BlobBackupDatasourceParameters) AssignProperties_From_BlobBackupDatasourceParameters(source *v20231201s.BlobBackupDatasourceParameters) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // ContainersList - parameters.ContainersList = genruntime.CloneSliceOfString(source.ContainersList) - - // ObjectType - parameters.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // Update the property bag - if len(propertyBag) > 0 { - parameters.PropertyBag = propertyBag - } else { - parameters.PropertyBag = nil - } - - // Invoke the augmentConversionForBlobBackupDatasourceParameters interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForBlobBackupDatasourceParameters); ok { - err := augmentedParameters.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_BlobBackupDatasourceParameters populates the provided destination BlobBackupDatasourceParameters from our BlobBackupDatasourceParameters -func (parameters *BlobBackupDatasourceParameters) AssignProperties_To_BlobBackupDatasourceParameters(destination *v20231201s.BlobBackupDatasourceParameters) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(parameters.PropertyBag) - - // ContainersList - destination.ContainersList = genruntime.CloneSliceOfString(parameters.ContainersList) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(parameters.ObjectType) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForBlobBackupDatasourceParameters interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForBlobBackupDatasourceParameters); ok { - err := augmentedParameters.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.BlobBackupDatasourceParameters_STATUS -type BlobBackupDatasourceParameters_STATUS struct { - ContainersList []string `json:"containersList,omitempty"` - ObjectType *string `json:"objectType,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` -} - -// AssignProperties_From_BlobBackupDatasourceParameters_STATUS populates our BlobBackupDatasourceParameters_STATUS from the provided source BlobBackupDatasourceParameters_STATUS -func (parameters *BlobBackupDatasourceParameters_STATUS) AssignProperties_From_BlobBackupDatasourceParameters_STATUS(source *v20231201s.BlobBackupDatasourceParameters_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // ContainersList - parameters.ContainersList = genruntime.CloneSliceOfString(source.ContainersList) - - // ObjectType - parameters.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // Update the property bag - if len(propertyBag) > 0 { - parameters.PropertyBag = propertyBag - } else { - parameters.PropertyBag = nil - } - - // Invoke the augmentConversionForBlobBackupDatasourceParameters_STATUS interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForBlobBackupDatasourceParameters_STATUS); ok { - err := augmentedParameters.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_BlobBackupDatasourceParameters_STATUS populates the provided destination BlobBackupDatasourceParameters_STATUS from our BlobBackupDatasourceParameters_STATUS -func (parameters *BlobBackupDatasourceParameters_STATUS) AssignProperties_To_BlobBackupDatasourceParameters_STATUS(destination *v20231201s.BlobBackupDatasourceParameters_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(parameters.PropertyBag) - - // ContainersList - destination.ContainersList = genruntime.CloneSliceOfString(parameters.ContainersList) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(parameters.ObjectType) - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForBlobBackupDatasourceParameters_STATUS interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForBlobBackupDatasourceParameters_STATUS); ok { - err := augmentedParameters.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.KubernetesClusterBackupDatasourceParameters -type KubernetesClusterBackupDatasourceParameters struct { - ExcludedNamespaces []string `json:"excludedNamespaces,omitempty"` - ExcludedResourceTypes []string `json:"excludedResourceTypes,omitempty"` - IncludeClusterScopeResources *bool `json:"includeClusterScopeResources,omitempty"` - IncludedNamespaces []string `json:"includedNamespaces,omitempty"` - IncludedResourceTypes []string `json:"includedResourceTypes,omitempty"` - LabelSelectors []string `json:"labelSelectors,omitempty"` - ObjectType *string `json:"objectType,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` -} - -// AssignProperties_From_KubernetesClusterBackupDatasourceParameters populates our KubernetesClusterBackupDatasourceParameters from the provided source KubernetesClusterBackupDatasourceParameters -func (parameters *KubernetesClusterBackupDatasourceParameters) AssignProperties_From_KubernetesClusterBackupDatasourceParameters(source *v20231201s.KubernetesClusterBackupDatasourceParameters) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // BackupHookReferences - if len(source.BackupHookReferences) > 0 { - propertyBag.Add("BackupHookReferences", source.BackupHookReferences) - } else { - propertyBag.Remove("BackupHookReferences") - } - - // ExcludedNamespaces - parameters.ExcludedNamespaces = genruntime.CloneSliceOfString(source.ExcludedNamespaces) - - // ExcludedResourceTypes - parameters.ExcludedResourceTypes = genruntime.CloneSliceOfString(source.ExcludedResourceTypes) - - // IncludeClusterScopeResources - if source.IncludeClusterScopeResources != nil { - includeClusterScopeResource := *source.IncludeClusterScopeResources - parameters.IncludeClusterScopeResources = &includeClusterScopeResource - } else { - parameters.IncludeClusterScopeResources = nil - } - - // IncludedNamespaces - parameters.IncludedNamespaces = genruntime.CloneSliceOfString(source.IncludedNamespaces) - - // IncludedResourceTypes - parameters.IncludedResourceTypes = genruntime.CloneSliceOfString(source.IncludedResourceTypes) - - // LabelSelectors - parameters.LabelSelectors = genruntime.CloneSliceOfString(source.LabelSelectors) - - // ObjectType - parameters.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // SnapshotVolumes - if source.SnapshotVolumes != nil { - snapshotVolume := *source.SnapshotVolumes - parameters.SnapshotVolumes = &snapshotVolume - } else { - parameters.SnapshotVolumes = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - parameters.PropertyBag = propertyBag - } else { - parameters.PropertyBag = nil - } - - // Invoke the augmentConversionForKubernetesClusterBackupDatasourceParameters interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForKubernetesClusterBackupDatasourceParameters); ok { - err := augmentedParameters.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_KubernetesClusterBackupDatasourceParameters populates the provided destination KubernetesClusterBackupDatasourceParameters from our KubernetesClusterBackupDatasourceParameters -func (parameters *KubernetesClusterBackupDatasourceParameters) AssignProperties_To_KubernetesClusterBackupDatasourceParameters(destination *v20231201s.KubernetesClusterBackupDatasourceParameters) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(parameters.PropertyBag) - - // BackupHookReferences - if propertyBag.Contains("BackupHookReferences") { - var backupHookReference []v20231201s.NamespacedNameResource - err := propertyBag.Pull("BackupHookReferences", &backupHookReference) - if err != nil { - return errors.Wrap(err, "pulling 'BackupHookReferences' from propertyBag") - } - - destination.BackupHookReferences = backupHookReference - } else { - destination.BackupHookReferences = nil - } - - // ExcludedNamespaces - destination.ExcludedNamespaces = genruntime.CloneSliceOfString(parameters.ExcludedNamespaces) - - // ExcludedResourceTypes - destination.ExcludedResourceTypes = genruntime.CloneSliceOfString(parameters.ExcludedResourceTypes) - - // IncludeClusterScopeResources - if parameters.IncludeClusterScopeResources != nil { - includeClusterScopeResource := *parameters.IncludeClusterScopeResources - destination.IncludeClusterScopeResources = &includeClusterScopeResource - } else { - destination.IncludeClusterScopeResources = nil - } - - // IncludedNamespaces - destination.IncludedNamespaces = genruntime.CloneSliceOfString(parameters.IncludedNamespaces) - - // IncludedResourceTypes - destination.IncludedResourceTypes = genruntime.CloneSliceOfString(parameters.IncludedResourceTypes) - - // LabelSelectors - destination.LabelSelectors = genruntime.CloneSliceOfString(parameters.LabelSelectors) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(parameters.ObjectType) - - // SnapshotVolumes - if parameters.SnapshotVolumes != nil { - snapshotVolume := *parameters.SnapshotVolumes - destination.SnapshotVolumes = &snapshotVolume - } else { - destination.SnapshotVolumes = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForKubernetesClusterBackupDatasourceParameters interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForKubernetesClusterBackupDatasourceParameters); ok { - err := augmentedParameters.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -// Storage version of v1api20230101.KubernetesClusterBackupDatasourceParameters_STATUS -type KubernetesClusterBackupDatasourceParameters_STATUS struct { - ExcludedNamespaces []string `json:"excludedNamespaces,omitempty"` - ExcludedResourceTypes []string `json:"excludedResourceTypes,omitempty"` - IncludeClusterScopeResources *bool `json:"includeClusterScopeResources,omitempty"` - IncludedNamespaces []string `json:"includedNamespaces,omitempty"` - IncludedResourceTypes []string `json:"includedResourceTypes,omitempty"` - LabelSelectors []string `json:"labelSelectors,omitempty"` - ObjectType *string `json:"objectType,omitempty"` - PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` - SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` -} - -// AssignProperties_From_KubernetesClusterBackupDatasourceParameters_STATUS populates our KubernetesClusterBackupDatasourceParameters_STATUS from the provided source KubernetesClusterBackupDatasourceParameters_STATUS -func (parameters *KubernetesClusterBackupDatasourceParameters_STATUS) AssignProperties_From_KubernetesClusterBackupDatasourceParameters_STATUS(source *v20231201s.KubernetesClusterBackupDatasourceParameters_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(source.PropertyBag) - - // BackupHookReferences - if len(source.BackupHookReferences) > 0 { - propertyBag.Add("BackupHookReferences", source.BackupHookReferences) - } else { - propertyBag.Remove("BackupHookReferences") - } - - // ExcludedNamespaces - parameters.ExcludedNamespaces = genruntime.CloneSliceOfString(source.ExcludedNamespaces) - - // ExcludedResourceTypes - parameters.ExcludedResourceTypes = genruntime.CloneSliceOfString(source.ExcludedResourceTypes) - - // IncludeClusterScopeResources - if source.IncludeClusterScopeResources != nil { - includeClusterScopeResource := *source.IncludeClusterScopeResources - parameters.IncludeClusterScopeResources = &includeClusterScopeResource - } else { - parameters.IncludeClusterScopeResources = nil - } - - // IncludedNamespaces - parameters.IncludedNamespaces = genruntime.CloneSliceOfString(source.IncludedNamespaces) - - // IncludedResourceTypes - parameters.IncludedResourceTypes = genruntime.CloneSliceOfString(source.IncludedResourceTypes) - - // LabelSelectors - parameters.LabelSelectors = genruntime.CloneSliceOfString(source.LabelSelectors) - - // ObjectType - parameters.ObjectType = genruntime.ClonePointerToString(source.ObjectType) - - // SnapshotVolumes - if source.SnapshotVolumes != nil { - snapshotVolume := *source.SnapshotVolumes - parameters.SnapshotVolumes = &snapshotVolume - } else { - parameters.SnapshotVolumes = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - parameters.PropertyBag = propertyBag - } else { - parameters.PropertyBag = nil - } - - // Invoke the augmentConversionForKubernetesClusterBackupDatasourceParameters_STATUS interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForKubernetesClusterBackupDatasourceParameters_STATUS); ok { - err := augmentedParameters.AssignPropertiesFrom(source) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesFrom() for conversion") - } - } - - // No error - return nil -} - -// AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS populates the provided destination KubernetesClusterBackupDatasourceParameters_STATUS from our KubernetesClusterBackupDatasourceParameters_STATUS -func (parameters *KubernetesClusterBackupDatasourceParameters_STATUS) AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS(destination *v20231201s.KubernetesClusterBackupDatasourceParameters_STATUS) error { - // Clone the existing property bag - propertyBag := genruntime.NewPropertyBag(parameters.PropertyBag) - - // BackupHookReferences - if propertyBag.Contains("BackupHookReferences") { - var backupHookReference []v20231201s.NamespacedNameResource_STATUS - err := propertyBag.Pull("BackupHookReferences", &backupHookReference) - if err != nil { - return errors.Wrap(err, "pulling 'BackupHookReferences' from propertyBag") - } - - destination.BackupHookReferences = backupHookReference - } else { - destination.BackupHookReferences = nil - } - - // ExcludedNamespaces - destination.ExcludedNamespaces = genruntime.CloneSliceOfString(parameters.ExcludedNamespaces) - - // ExcludedResourceTypes - destination.ExcludedResourceTypes = genruntime.CloneSliceOfString(parameters.ExcludedResourceTypes) - - // IncludeClusterScopeResources - if parameters.IncludeClusterScopeResources != nil { - includeClusterScopeResource := *parameters.IncludeClusterScopeResources - destination.IncludeClusterScopeResources = &includeClusterScopeResource - } else { - destination.IncludeClusterScopeResources = nil - } - - // IncludedNamespaces - destination.IncludedNamespaces = genruntime.CloneSliceOfString(parameters.IncludedNamespaces) - - // IncludedResourceTypes - destination.IncludedResourceTypes = genruntime.CloneSliceOfString(parameters.IncludedResourceTypes) - - // LabelSelectors - destination.LabelSelectors = genruntime.CloneSliceOfString(parameters.LabelSelectors) - - // ObjectType - destination.ObjectType = genruntime.ClonePointerToString(parameters.ObjectType) - - // SnapshotVolumes - if parameters.SnapshotVolumes != nil { - snapshotVolume := *parameters.SnapshotVolumes - destination.SnapshotVolumes = &snapshotVolume - } else { - destination.SnapshotVolumes = nil - } - - // Update the property bag - if len(propertyBag) > 0 { - destination.PropertyBag = propertyBag - } else { - destination.PropertyBag = nil - } - - // Invoke the augmentConversionForKubernetesClusterBackupDatasourceParameters_STATUS interface (if implemented) to customize the conversion - var parametersAsAny any = parameters - if augmentedParameters, ok := parametersAsAny.(augmentConversionForKubernetesClusterBackupDatasourceParameters_STATUS); ok { - err := augmentedParameters.AssignPropertiesTo(destination) - if err != nil { - return errors.Wrap(err, "calling augmented AssignPropertiesTo() for conversion") - } - } - - // No error - return nil -} - -type augmentConversionForAzureOperationalStoreParameters interface { - AssignPropertiesFrom(src *v20231201s.AzureOperationalStoreParameters) error - AssignPropertiesTo(dst *v20231201s.AzureOperationalStoreParameters) error -} - -type augmentConversionForAzureOperationalStoreParameters_STATUS interface { - AssignPropertiesFrom(src *v20231201s.AzureOperationalStoreParameters_STATUS) error - AssignPropertiesTo(dst *v20231201s.AzureOperationalStoreParameters_STATUS) error -} - -type augmentConversionForBlobBackupDatasourceParameters interface { - AssignPropertiesFrom(src *v20231201s.BlobBackupDatasourceParameters) error - AssignPropertiesTo(dst *v20231201s.BlobBackupDatasourceParameters) error -} - -type augmentConversionForBlobBackupDatasourceParameters_STATUS interface { - AssignPropertiesFrom(src *v20231201s.BlobBackupDatasourceParameters_STATUS) error - AssignPropertiesTo(dst *v20231201s.BlobBackupDatasourceParameters_STATUS) error -} - -type augmentConversionForKubernetesClusterBackupDatasourceParameters interface { - AssignPropertiesFrom(src *v20231201s.KubernetesClusterBackupDatasourceParameters) error - AssignPropertiesTo(dst *v20231201s.KubernetesClusterBackupDatasourceParameters) error -} - -type augmentConversionForKubernetesClusterBackupDatasourceParameters_STATUS interface { - AssignPropertiesFrom(src *v20231201s.KubernetesClusterBackupDatasourceParameters_STATUS) error - AssignPropertiesTo(dst *v20231201s.KubernetesClusterBackupDatasourceParameters_STATUS) error -} - -func init() { - SchemeBuilder.Register(&BackupVaultsBackupInstance{}, &BackupVaultsBackupInstanceList{}) -} diff --git a/v2/api/dataprotection/v1api20230101/storage/backup_vaults_backup_instance_types_gen_test.go b/v2/api/dataprotection/v1api20230101/storage/backup_vaults_backup_instance_types_gen_test.go deleted file mode 100644 index 376d317ba90..00000000000 --- a/v2/api/dataprotection/v1api20230101/storage/backup_vaults_backup_instance_types_gen_test.go +++ /dev/null @@ -1,3848 +0,0 @@ -// Code generated by azure-service-operator-codegen. DO NOT EDIT. -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. -package storage - -import ( - "encoding/json" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" - "github.com/google/go-cmp/cmp" - "github.com/google/go-cmp/cmp/cmpopts" - "github.com/kr/pretty" - "github.com/kylelemons/godebug/diff" - "github.com/leanovate/gopter" - "github.com/leanovate/gopter/gen" - "github.com/leanovate/gopter/prop" - "os" - "reflect" - "testing" -) - -func Test_BackupVaultsBackupInstance_WhenConvertedToHub_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - parameters.MinSuccessfulTests = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BackupVaultsBackupInstance to hub returns original", - prop.ForAll(RunResourceConversionTestForBackupVaultsBackupInstance, BackupVaultsBackupInstanceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunResourceConversionTestForBackupVaultsBackupInstance tests if a specific instance of BackupVaultsBackupInstance round trips to the hub storage version and back losslessly -func RunResourceConversionTestForBackupVaultsBackupInstance(subject BackupVaultsBackupInstance) string { - // Copy subject to make sure conversion doesn't modify it - copied := subject.DeepCopy() - - // Convert to our hub version - var hub v20231201s.BackupVaultsBackupInstance - err := copied.ConvertTo(&hub) - if err != nil { - return err.Error() - } - - // Convert from our hub version - var actual BackupVaultsBackupInstance - err = actual.ConvertFrom(&hub) - if err != nil { - return err.Error() - } - - // Compare actual with what we started with - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BackupVaultsBackupInstance_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BackupVaultsBackupInstance to BackupVaultsBackupInstance via AssignProperties_To_BackupVaultsBackupInstance & AssignProperties_From_BackupVaultsBackupInstance returns original", - prop.ForAll(RunPropertyAssignmentTestForBackupVaultsBackupInstance, BackupVaultsBackupInstanceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBackupVaultsBackupInstance tests if a specific instance of BackupVaultsBackupInstance can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBackupVaultsBackupInstance(subject BackupVaultsBackupInstance) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaultsBackupInstance - err := copied.AssignProperties_To_BackupVaultsBackupInstance(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BackupVaultsBackupInstance - err = actual.AssignProperties_From_BackupVaultsBackupInstance(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BackupVaultsBackupInstance_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 20 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupVaultsBackupInstance via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupVaultsBackupInstance, BackupVaultsBackupInstanceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupVaultsBackupInstance runs a test to see if a specific instance of BackupVaultsBackupInstance round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupVaultsBackupInstance(subject BackupVaultsBackupInstance) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupVaultsBackupInstance - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupVaultsBackupInstance instances for property testing - lazily instantiated by -// BackupVaultsBackupInstanceGenerator() -var backupVaultsBackupInstanceGenerator gopter.Gen - -// BackupVaultsBackupInstanceGenerator returns a generator of BackupVaultsBackupInstance instances for property testing. -func BackupVaultsBackupInstanceGenerator() gopter.Gen { - if backupVaultsBackupInstanceGenerator != nil { - return backupVaultsBackupInstanceGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForBackupVaultsBackupInstance(generators) - backupVaultsBackupInstanceGenerator = gen.Struct(reflect.TypeOf(BackupVaultsBackupInstance{}), generators) - - return backupVaultsBackupInstanceGenerator -} - -// AddRelatedPropertyGeneratorsForBackupVaultsBackupInstance is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupVaultsBackupInstance(gens map[string]gopter.Gen) { - gens["Spec"] = BackupVaults_BackupInstance_SpecGenerator() - gens["Status"] = BackupVaults_BackupInstance_STATUSGenerator() -} - -func Test_BackupVaults_BackupInstance_Spec_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BackupVaults_BackupInstance_Spec to BackupVaults_BackupInstance_Spec via AssignProperties_To_BackupVaults_BackupInstance_Spec & AssignProperties_From_BackupVaults_BackupInstance_Spec returns original", - prop.ForAll(RunPropertyAssignmentTestForBackupVaults_BackupInstance_Spec, BackupVaults_BackupInstance_SpecGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBackupVaults_BackupInstance_Spec tests if a specific instance of BackupVaults_BackupInstance_Spec can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBackupVaults_BackupInstance_Spec(subject BackupVaults_BackupInstance_Spec) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaults_BackupInstance_Spec - err := copied.AssignProperties_To_BackupVaults_BackupInstance_Spec(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BackupVaults_BackupInstance_Spec - err = actual.AssignProperties_From_BackupVaults_BackupInstance_Spec(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BackupVaults_BackupInstance_Spec_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupVaults_BackupInstance_Spec via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupVaults_BackupInstance_Spec, BackupVaults_BackupInstance_SpecGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupVaults_BackupInstance_Spec runs a test to see if a specific instance of BackupVaults_BackupInstance_Spec round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupVaults_BackupInstance_Spec(subject BackupVaults_BackupInstance_Spec) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupVaults_BackupInstance_Spec - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupVaults_BackupInstance_Spec instances for property testing - lazily instantiated by -// BackupVaults_BackupInstance_SpecGenerator() -var backupVaults_BackupInstance_SpecGenerator gopter.Gen - -// BackupVaults_BackupInstance_SpecGenerator returns a generator of BackupVaults_BackupInstance_Spec instances for property testing. -// We first initialize backupVaults_BackupInstance_SpecGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func BackupVaults_BackupInstance_SpecGenerator() gopter.Gen { - if backupVaults_BackupInstance_SpecGenerator != nil { - return backupVaults_BackupInstance_SpecGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_Spec(generators) - backupVaults_BackupInstance_SpecGenerator = gen.Struct(reflect.TypeOf(BackupVaults_BackupInstance_Spec{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_Spec(generators) - AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_Spec(generators) - backupVaults_BackupInstance_SpecGenerator = gen.Struct(reflect.TypeOf(BackupVaults_BackupInstance_Spec{}), generators) - - return backupVaults_BackupInstance_SpecGenerator -} - -// 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["OriginalVersion"] = gen.AlphaString() - gens["Tags"] = gen.MapOf(gen.AlphaString(), gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_Spec is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_Spec(gens map[string]gopter.Gen) { - gens["Properties"] = gen.PtrOf(BackupInstanceGenerator()) -} - -func Test_BackupVaults_BackupInstance_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BackupVaults_BackupInstance_STATUS to BackupVaults_BackupInstance_STATUS via AssignProperties_To_BackupVaults_BackupInstance_STATUS & AssignProperties_From_BackupVaults_BackupInstance_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForBackupVaults_BackupInstance_STATUS, BackupVaults_BackupInstance_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBackupVaults_BackupInstance_STATUS tests if a specific instance of BackupVaults_BackupInstance_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBackupVaults_BackupInstance_STATUS(subject BackupVaults_BackupInstance_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaults_BackupInstance_STATUS - err := copied.AssignProperties_To_BackupVaults_BackupInstance_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BackupVaults_BackupInstance_STATUS - err = actual.AssignProperties_From_BackupVaults_BackupInstance_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BackupVaults_BackupInstance_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupVaults_BackupInstance_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupVaults_BackupInstance_STATUS, BackupVaults_BackupInstance_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupVaults_BackupInstance_STATUS runs a test to see if a specific instance of BackupVaults_BackupInstance_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupVaults_BackupInstance_STATUS(subject BackupVaults_BackupInstance_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupVaults_BackupInstance_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupVaults_BackupInstance_STATUS instances for property testing - lazily instantiated by -// BackupVaults_BackupInstance_STATUSGenerator() -var backupVaults_BackupInstance_STATUSGenerator gopter.Gen - -// BackupVaults_BackupInstance_STATUSGenerator returns a generator of BackupVaults_BackupInstance_STATUS instances for property testing. -// We first initialize backupVaults_BackupInstance_STATUSGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func BackupVaults_BackupInstance_STATUSGenerator() gopter.Gen { - if backupVaults_BackupInstance_STATUSGenerator != nil { - return backupVaults_BackupInstance_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_STATUS(generators) - backupVaults_BackupInstance_STATUSGenerator = gen.Struct(reflect.TypeOf(BackupVaults_BackupInstance_STATUS{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_STATUS(generators) - AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_STATUS(generators) - backupVaults_BackupInstance_STATUSGenerator = gen.Struct(reflect.TypeOf(BackupVaults_BackupInstance_STATUS{}), generators) - - return backupVaults_BackupInstance_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForBackupVaults_BackupInstance_STATUS is a factory method for creating gopter generators -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["Type"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupVaults_BackupInstance_STATUS(gens map[string]gopter.Gen) { - gens["Properties"] = gen.PtrOf(BackupInstance_STATUSGenerator()) - gens["SystemData"] = gen.PtrOf(SystemData_STATUSGenerator()) -} - -func Test_BackupInstance_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BackupInstance to BackupInstance via AssignProperties_To_BackupInstance & AssignProperties_From_BackupInstance returns original", - prop.ForAll(RunPropertyAssignmentTestForBackupInstance, BackupInstanceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBackupInstance tests if a specific instance of BackupInstance can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBackupInstance(subject BackupInstance) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupInstance - err := copied.AssignProperties_To_BackupInstance(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BackupInstance - err = actual.AssignProperties_From_BackupInstance(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BackupInstance_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupInstance via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupInstance, BackupInstanceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupInstance runs a test to see if a specific instance of BackupInstance round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupInstance(subject BackupInstance) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupInstance - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupInstance instances for property testing - lazily instantiated by BackupInstanceGenerator() -var backupInstanceGenerator gopter.Gen - -// BackupInstanceGenerator returns a generator of BackupInstance instances for property testing. -// We first initialize backupInstanceGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func BackupInstanceGenerator() gopter.Gen { - if backupInstanceGenerator != nil { - return backupInstanceGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupInstance(generators) - backupInstanceGenerator = gen.Struct(reflect.TypeOf(BackupInstance{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupInstance(generators) - AddRelatedPropertyGeneratorsForBackupInstance(generators) - backupInstanceGenerator = gen.Struct(reflect.TypeOf(BackupInstance{}), generators) - - return backupInstanceGenerator -} - -// AddIndependentPropertyGeneratorsForBackupInstance is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForBackupInstance(gens map[string]gopter.Gen) { - gens["FriendlyName"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ValidationType"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForBackupInstance is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupInstance(gens map[string]gopter.Gen) { - gens["DataSourceInfo"] = gen.PtrOf(DatasourceGenerator()) - gens["DataSourceSetInfo"] = gen.PtrOf(DatasourceSetGenerator()) - gens["DatasourceAuthCredentials"] = gen.PtrOf(AuthCredentialsGenerator()) - gens["PolicyInfo"] = gen.PtrOf(PolicyInfoGenerator()) -} - -func Test_BackupInstance_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BackupInstance_STATUS to BackupInstance_STATUS via AssignProperties_To_BackupInstance_STATUS & AssignProperties_From_BackupInstance_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForBackupInstance_STATUS, BackupInstance_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBackupInstance_STATUS tests if a specific instance of BackupInstance_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBackupInstance_STATUS(subject BackupInstance_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupInstance_STATUS - err := copied.AssignProperties_To_BackupInstance_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BackupInstance_STATUS - err = actual.AssignProperties_From_BackupInstance_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BackupInstance_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupInstance_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupInstance_STATUS, BackupInstance_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupInstance_STATUS runs a test to see if a specific instance of BackupInstance_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupInstance_STATUS(subject BackupInstance_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupInstance_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupInstance_STATUS instances for property testing - lazily instantiated by -// BackupInstance_STATUSGenerator() -var backupInstance_STATUSGenerator gopter.Gen - -// BackupInstance_STATUSGenerator returns a generator of BackupInstance_STATUS instances for property testing. -// We first initialize backupInstance_STATUSGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func BackupInstance_STATUSGenerator() gopter.Gen { - if backupInstance_STATUSGenerator != nil { - return backupInstance_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupInstance_STATUS(generators) - backupInstance_STATUSGenerator = gen.Struct(reflect.TypeOf(BackupInstance_STATUS{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBackupInstance_STATUS(generators) - AddRelatedPropertyGeneratorsForBackupInstance_STATUS(generators) - backupInstance_STATUSGenerator = gen.Struct(reflect.TypeOf(BackupInstance_STATUS{}), generators) - - return backupInstance_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForBackupInstance_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForBackupInstance_STATUS(gens map[string]gopter.Gen) { - gens["CurrentProtectionState"] = gen.PtrOf(gen.AlphaString()) - gens["FriendlyName"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ProvisioningState"] = gen.PtrOf(gen.AlphaString()) - gens["ValidationType"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForBackupInstance_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupInstance_STATUS(gens map[string]gopter.Gen) { - gens["DataSourceInfo"] = gen.PtrOf(Datasource_STATUSGenerator()) - gens["DataSourceSetInfo"] = gen.PtrOf(DatasourceSet_STATUSGenerator()) - gens["DatasourceAuthCredentials"] = gen.PtrOf(AuthCredentials_STATUSGenerator()) - gens["PolicyInfo"] = gen.PtrOf(PolicyInfo_STATUSGenerator()) - gens["ProtectionErrorDetails"] = gen.PtrOf(UserFacingError_STATUSGenerator()) - gens["ProtectionStatus"] = gen.PtrOf(ProtectionStatusDetails_STATUSGenerator()) -} - -func Test_AuthCredentials_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from AuthCredentials to AuthCredentials via AssignProperties_To_AuthCredentials & AssignProperties_From_AuthCredentials returns original", - prop.ForAll(RunPropertyAssignmentTestForAuthCredentials, AuthCredentialsGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForAuthCredentials tests if a specific instance of AuthCredentials can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForAuthCredentials(subject AuthCredentials) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AuthCredentials - err := copied.AssignProperties_To_AuthCredentials(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual AuthCredentials - err = actual.AssignProperties_From_AuthCredentials(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_AuthCredentials_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of AuthCredentials via JSON returns original", - prop.ForAll(RunJSONSerializationTestForAuthCredentials, AuthCredentialsGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForAuthCredentials runs a test to see if a specific instance of AuthCredentials round trips to JSON and back losslessly -func RunJSONSerializationTestForAuthCredentials(subject AuthCredentials) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual AuthCredentials - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of AuthCredentials instances for property testing - lazily instantiated by AuthCredentialsGenerator() -var authCredentialsGenerator gopter.Gen - -// AuthCredentialsGenerator returns a generator of AuthCredentials instances for property testing. -func AuthCredentialsGenerator() gopter.Gen { - if authCredentialsGenerator != nil { - return authCredentialsGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForAuthCredentials(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(AuthCredentials{}), map[string]gopter.Gen{propName: propGen})) - } - authCredentialsGenerator = gen.OneGenOf(gens...) - - return authCredentialsGenerator -} - -// AddRelatedPropertyGeneratorsForAuthCredentials is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForAuthCredentials(gens map[string]gopter.Gen) { - gens["SecretStoreBasedAuthCredentials"] = SecretStoreBasedAuthCredentialsGenerator().Map(func(it SecretStoreBasedAuthCredentials) *SecretStoreBasedAuthCredentials { - return &it - }) // generate one case for OneOf type -} - -func Test_AuthCredentials_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from AuthCredentials_STATUS to AuthCredentials_STATUS via AssignProperties_To_AuthCredentials_STATUS & AssignProperties_From_AuthCredentials_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForAuthCredentials_STATUS, AuthCredentials_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForAuthCredentials_STATUS tests if a specific instance of AuthCredentials_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForAuthCredentials_STATUS(subject AuthCredentials_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AuthCredentials_STATUS - err := copied.AssignProperties_To_AuthCredentials_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual AuthCredentials_STATUS - err = actual.AssignProperties_From_AuthCredentials_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_AuthCredentials_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of AuthCredentials_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForAuthCredentials_STATUS, AuthCredentials_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForAuthCredentials_STATUS runs a test to see if a specific instance of AuthCredentials_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForAuthCredentials_STATUS(subject AuthCredentials_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual AuthCredentials_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of AuthCredentials_STATUS instances for property testing - lazily instantiated by -// AuthCredentials_STATUSGenerator() -var authCredentials_STATUSGenerator gopter.Gen - -// AuthCredentials_STATUSGenerator returns a generator of AuthCredentials_STATUS instances for property testing. -func AuthCredentials_STATUSGenerator() gopter.Gen { - if authCredentials_STATUSGenerator != nil { - return authCredentials_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForAuthCredentials_STATUS(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(AuthCredentials_STATUS{}), map[string]gopter.Gen{propName: propGen})) - } - authCredentials_STATUSGenerator = gen.OneGenOf(gens...) - - return authCredentials_STATUSGenerator -} - -// AddRelatedPropertyGeneratorsForAuthCredentials_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForAuthCredentials_STATUS(gens map[string]gopter.Gen) { - gens["SecretStoreBasedAuthCredentials"] = SecretStoreBasedAuthCredentials_STATUSGenerator().Map(func(it SecretStoreBasedAuthCredentials_STATUS) *SecretStoreBasedAuthCredentials_STATUS { - return &it - }) // generate one case for OneOf type -} - -func Test_Datasource_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from Datasource to Datasource via AssignProperties_To_Datasource & AssignProperties_From_Datasource returns original", - prop.ForAll(RunPropertyAssignmentTestForDatasource, DatasourceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForDatasource tests if a specific instance of Datasource can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForDatasource(subject Datasource) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.Datasource - err := copied.AssignProperties_To_Datasource(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual Datasource - err = actual.AssignProperties_From_Datasource(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_Datasource_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of Datasource via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDatasource, DatasourceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDatasource runs a test to see if a specific instance of Datasource round trips to JSON and back losslessly -func RunJSONSerializationTestForDatasource(subject Datasource) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual Datasource - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of Datasource instances for property testing - lazily instantiated by DatasourceGenerator() -var datasourceGenerator gopter.Gen - -// DatasourceGenerator returns a generator of Datasource instances for property testing. -func DatasourceGenerator() gopter.Gen { - if datasourceGenerator != nil { - return datasourceGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForDatasource(generators) - datasourceGenerator = gen.Struct(reflect.TypeOf(Datasource{}), generators) - - return datasourceGenerator -} - -// AddIndependentPropertyGeneratorsForDatasource is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForDatasource(gens map[string]gopter.Gen) { - gens["DatasourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceLocation"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceName"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceUri"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_Datasource_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from Datasource_STATUS to Datasource_STATUS via AssignProperties_To_Datasource_STATUS & AssignProperties_From_Datasource_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForDatasource_STATUS, Datasource_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForDatasource_STATUS tests if a specific instance of Datasource_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForDatasource_STATUS(subject Datasource_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.Datasource_STATUS - err := copied.AssignProperties_To_Datasource_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual Datasource_STATUS - err = actual.AssignProperties_From_Datasource_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_Datasource_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of Datasource_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDatasource_STATUS, Datasource_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDatasource_STATUS runs a test to see if a specific instance of Datasource_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForDatasource_STATUS(subject Datasource_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual Datasource_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of Datasource_STATUS instances for property testing - lazily instantiated by Datasource_STATUSGenerator() -var datasource_STATUSGenerator gopter.Gen - -// Datasource_STATUSGenerator returns a generator of Datasource_STATUS instances for property testing. -func Datasource_STATUSGenerator() gopter.Gen { - if datasource_STATUSGenerator != nil { - return datasource_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForDatasource_STATUS(generators) - datasource_STATUSGenerator = gen.Struct(reflect.TypeOf(Datasource_STATUS{}), generators) - - return datasource_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForDatasource_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForDatasource_STATUS(gens map[string]gopter.Gen) { - gens["DatasourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceID"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceLocation"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceName"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceUri"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_DatasourceSet_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from DatasourceSet to DatasourceSet via AssignProperties_To_DatasourceSet & AssignProperties_From_DatasourceSet returns original", - prop.ForAll(RunPropertyAssignmentTestForDatasourceSet, DatasourceSetGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForDatasourceSet tests if a specific instance of DatasourceSet can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForDatasourceSet(subject DatasourceSet) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DatasourceSet - err := copied.AssignProperties_To_DatasourceSet(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual DatasourceSet - err = actual.AssignProperties_From_DatasourceSet(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_DatasourceSet_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of DatasourceSet via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDatasourceSet, DatasourceSetGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDatasourceSet runs a test to see if a specific instance of DatasourceSet round trips to JSON and back losslessly -func RunJSONSerializationTestForDatasourceSet(subject DatasourceSet) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual DatasourceSet - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of DatasourceSet instances for property testing - lazily instantiated by DatasourceSetGenerator() -var datasourceSetGenerator gopter.Gen - -// DatasourceSetGenerator returns a generator of DatasourceSet instances for property testing. -func DatasourceSetGenerator() gopter.Gen { - if datasourceSetGenerator != nil { - return datasourceSetGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForDatasourceSet(generators) - datasourceSetGenerator = gen.Struct(reflect.TypeOf(DatasourceSet{}), generators) - - return datasourceSetGenerator -} - -// AddIndependentPropertyGeneratorsForDatasourceSet is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForDatasourceSet(gens map[string]gopter.Gen) { - gens["DatasourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceLocation"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceName"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceUri"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_DatasourceSet_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from DatasourceSet_STATUS to DatasourceSet_STATUS via AssignProperties_To_DatasourceSet_STATUS & AssignProperties_From_DatasourceSet_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForDatasourceSet_STATUS, DatasourceSet_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForDatasourceSet_STATUS tests if a specific instance of DatasourceSet_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForDatasourceSet_STATUS(subject DatasourceSet_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DatasourceSet_STATUS - err := copied.AssignProperties_To_DatasourceSet_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual DatasourceSet_STATUS - err = actual.AssignProperties_From_DatasourceSet_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_DatasourceSet_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of DatasourceSet_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDatasourceSet_STATUS, DatasourceSet_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDatasourceSet_STATUS runs a test to see if a specific instance of DatasourceSet_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForDatasourceSet_STATUS(subject DatasourceSet_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual DatasourceSet_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of DatasourceSet_STATUS instances for property testing - lazily instantiated by -// DatasourceSet_STATUSGenerator() -var datasourceSet_STATUSGenerator gopter.Gen - -// DatasourceSet_STATUSGenerator returns a generator of DatasourceSet_STATUS instances for property testing. -func DatasourceSet_STATUSGenerator() gopter.Gen { - if datasourceSet_STATUSGenerator != nil { - return datasourceSet_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForDatasourceSet_STATUS(generators) - datasourceSet_STATUSGenerator = gen.Struct(reflect.TypeOf(DatasourceSet_STATUS{}), generators) - - return datasourceSet_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForDatasourceSet_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForDatasourceSet_STATUS(gens map[string]gopter.Gen) { - gens["DatasourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceID"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceLocation"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceName"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceUri"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_PolicyInfo_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from PolicyInfo to PolicyInfo via AssignProperties_To_PolicyInfo & AssignProperties_From_PolicyInfo returns original", - prop.ForAll(RunPropertyAssignmentTestForPolicyInfo, PolicyInfoGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForPolicyInfo tests if a specific instance of PolicyInfo can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForPolicyInfo(subject PolicyInfo) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.PolicyInfo - err := copied.AssignProperties_To_PolicyInfo(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual PolicyInfo - err = actual.AssignProperties_From_PolicyInfo(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_PolicyInfo_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of PolicyInfo via JSON returns original", - prop.ForAll(RunJSONSerializationTestForPolicyInfo, PolicyInfoGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForPolicyInfo runs a test to see if a specific instance of PolicyInfo round trips to JSON and back losslessly -func RunJSONSerializationTestForPolicyInfo(subject PolicyInfo) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual PolicyInfo - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of PolicyInfo instances for property testing - lazily instantiated by PolicyInfoGenerator() -var policyInfoGenerator gopter.Gen - -// PolicyInfoGenerator returns a generator of PolicyInfo instances for property testing. -func PolicyInfoGenerator() gopter.Gen { - if policyInfoGenerator != nil { - return policyInfoGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForPolicyInfo(generators) - policyInfoGenerator = gen.Struct(reflect.TypeOf(PolicyInfo{}), generators) - - return policyInfoGenerator -} - -// AddRelatedPropertyGeneratorsForPolicyInfo is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForPolicyInfo(gens map[string]gopter.Gen) { - gens["PolicyParameters"] = gen.PtrOf(PolicyParametersGenerator()) -} - -func Test_PolicyInfo_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from PolicyInfo_STATUS to PolicyInfo_STATUS via AssignProperties_To_PolicyInfo_STATUS & AssignProperties_From_PolicyInfo_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForPolicyInfo_STATUS, PolicyInfo_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForPolicyInfo_STATUS tests if a specific instance of PolicyInfo_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForPolicyInfo_STATUS(subject PolicyInfo_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.PolicyInfo_STATUS - err := copied.AssignProperties_To_PolicyInfo_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual PolicyInfo_STATUS - err = actual.AssignProperties_From_PolicyInfo_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_PolicyInfo_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of PolicyInfo_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForPolicyInfo_STATUS, PolicyInfo_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForPolicyInfo_STATUS runs a test to see if a specific instance of PolicyInfo_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForPolicyInfo_STATUS(subject PolicyInfo_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual PolicyInfo_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of PolicyInfo_STATUS instances for property testing - lazily instantiated by PolicyInfo_STATUSGenerator() -var policyInfo_STATUSGenerator gopter.Gen - -// PolicyInfo_STATUSGenerator returns a generator of PolicyInfo_STATUS instances for property testing. -// We first initialize policyInfo_STATUSGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func PolicyInfo_STATUSGenerator() gopter.Gen { - if policyInfo_STATUSGenerator != nil { - return policyInfo_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForPolicyInfo_STATUS(generators) - policyInfo_STATUSGenerator = gen.Struct(reflect.TypeOf(PolicyInfo_STATUS{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForPolicyInfo_STATUS(generators) - AddRelatedPropertyGeneratorsForPolicyInfo_STATUS(generators) - policyInfo_STATUSGenerator = gen.Struct(reflect.TypeOf(PolicyInfo_STATUS{}), generators) - - return policyInfo_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForPolicyInfo_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForPolicyInfo_STATUS(gens map[string]gopter.Gen) { - gens["PolicyId"] = gen.PtrOf(gen.AlphaString()) - gens["PolicyVersion"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForPolicyInfo_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForPolicyInfo_STATUS(gens map[string]gopter.Gen) { - gens["PolicyParameters"] = gen.PtrOf(PolicyParameters_STATUSGenerator()) -} - -func Test_ProtectionStatusDetails_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from ProtectionStatusDetails_STATUS to ProtectionStatusDetails_STATUS via AssignProperties_To_ProtectionStatusDetails_STATUS & AssignProperties_From_ProtectionStatusDetails_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForProtectionStatusDetails_STATUS, ProtectionStatusDetails_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForProtectionStatusDetails_STATUS tests if a specific instance of ProtectionStatusDetails_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForProtectionStatusDetails_STATUS(subject ProtectionStatusDetails_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ProtectionStatusDetails_STATUS - err := copied.AssignProperties_To_ProtectionStatusDetails_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual ProtectionStatusDetails_STATUS - err = actual.AssignProperties_From_ProtectionStatusDetails_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_ProtectionStatusDetails_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of ProtectionStatusDetails_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForProtectionStatusDetails_STATUS, ProtectionStatusDetails_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForProtectionStatusDetails_STATUS runs a test to see if a specific instance of ProtectionStatusDetails_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForProtectionStatusDetails_STATUS(subject ProtectionStatusDetails_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual ProtectionStatusDetails_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of ProtectionStatusDetails_STATUS instances for property testing - lazily instantiated by -// ProtectionStatusDetails_STATUSGenerator() -var protectionStatusDetails_STATUSGenerator gopter.Gen - -// ProtectionStatusDetails_STATUSGenerator returns a generator of ProtectionStatusDetails_STATUS instances for property testing. -// We first initialize protectionStatusDetails_STATUSGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func ProtectionStatusDetails_STATUSGenerator() gopter.Gen { - if protectionStatusDetails_STATUSGenerator != nil { - return protectionStatusDetails_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForProtectionStatusDetails_STATUS(generators) - protectionStatusDetails_STATUSGenerator = gen.Struct(reflect.TypeOf(ProtectionStatusDetails_STATUS{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForProtectionStatusDetails_STATUS(generators) - AddRelatedPropertyGeneratorsForProtectionStatusDetails_STATUS(generators) - protectionStatusDetails_STATUSGenerator = gen.Struct(reflect.TypeOf(ProtectionStatusDetails_STATUS{}), generators) - - return protectionStatusDetails_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForProtectionStatusDetails_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForProtectionStatusDetails_STATUS(gens map[string]gopter.Gen) { - gens["Status"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForProtectionStatusDetails_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForProtectionStatusDetails_STATUS(gens map[string]gopter.Gen) { - gens["ErrorDetails"] = gen.PtrOf(UserFacingError_STATUSGenerator()) -} - -func Test_UserFacingError_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from UserFacingError_STATUS to UserFacingError_STATUS via AssignProperties_To_UserFacingError_STATUS & AssignProperties_From_UserFacingError_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForUserFacingError_STATUS, UserFacingError_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForUserFacingError_STATUS tests if a specific instance of UserFacingError_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForUserFacingError_STATUS(subject UserFacingError_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.UserFacingError_STATUS - err := copied.AssignProperties_To_UserFacingError_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual UserFacingError_STATUS - err = actual.AssignProperties_From_UserFacingError_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_UserFacingError_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of UserFacingError_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForUserFacingError_STATUS, UserFacingError_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForUserFacingError_STATUS runs a test to see if a specific instance of UserFacingError_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForUserFacingError_STATUS(subject UserFacingError_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual UserFacingError_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of UserFacingError_STATUS instances for property testing - lazily instantiated by -// UserFacingError_STATUSGenerator() -var userFacingError_STATUSGenerator gopter.Gen - -// UserFacingError_STATUSGenerator returns a generator of UserFacingError_STATUS instances for property testing. -// We first initialize userFacingError_STATUSGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func UserFacingError_STATUSGenerator() gopter.Gen { - if userFacingError_STATUSGenerator != nil { - return userFacingError_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForUserFacingError_STATUS(generators) - userFacingError_STATUSGenerator = gen.Struct(reflect.TypeOf(UserFacingError_STATUS{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForUserFacingError_STATUS(generators) - AddRelatedPropertyGeneratorsForUserFacingError_STATUS(generators) - userFacingError_STATUSGenerator = gen.Struct(reflect.TypeOf(UserFacingError_STATUS{}), generators) - - return userFacingError_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForUserFacingError_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForUserFacingError_STATUS(gens map[string]gopter.Gen) { - gens["Code"] = gen.PtrOf(gen.AlphaString()) - 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["RecommendedAction"] = gen.SliceOf(gen.AlphaString()) - gens["Target"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForUserFacingError_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForUserFacingError_STATUS(gens map[string]gopter.Gen) { - gens["Details"] = gen.SliceOf(UserFacingError_STATUS_UnrolledGenerator()) - gens["InnerError"] = gen.PtrOf(InnerError_STATUSGenerator()) -} - -func Test_InnerError_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from InnerError_STATUS to InnerError_STATUS via AssignProperties_To_InnerError_STATUS & AssignProperties_From_InnerError_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForInnerError_STATUS, InnerError_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForInnerError_STATUS tests if a specific instance of InnerError_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForInnerError_STATUS(subject InnerError_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.InnerError_STATUS - err := copied.AssignProperties_To_InnerError_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual InnerError_STATUS - err = actual.AssignProperties_From_InnerError_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_InnerError_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of InnerError_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForInnerError_STATUS, InnerError_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForInnerError_STATUS runs a test to see if a specific instance of InnerError_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForInnerError_STATUS(subject InnerError_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual InnerError_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of InnerError_STATUS instances for property testing - lazily instantiated by InnerError_STATUSGenerator() -var innerError_STATUSGenerator gopter.Gen - -// InnerError_STATUSGenerator returns a generator of InnerError_STATUS instances for property testing. -// We first initialize innerError_STATUSGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func InnerError_STATUSGenerator() gopter.Gen { - if innerError_STATUSGenerator != nil { - return innerError_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForInnerError_STATUS(generators) - innerError_STATUSGenerator = gen.Struct(reflect.TypeOf(InnerError_STATUS{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForInnerError_STATUS(generators) - AddRelatedPropertyGeneratorsForInnerError_STATUS(generators) - innerError_STATUSGenerator = gen.Struct(reflect.TypeOf(InnerError_STATUS{}), generators) - - return innerError_STATUSGenerator -} - -// 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["Code"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForInnerError_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForInnerError_STATUS(gens map[string]gopter.Gen) { - gens["EmbeddedInnerError"] = gen.PtrOf(InnerError_STATUS_UnrolledGenerator()) -} - -func Test_PolicyParameters_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from PolicyParameters to PolicyParameters via AssignProperties_To_PolicyParameters & AssignProperties_From_PolicyParameters returns original", - prop.ForAll(RunPropertyAssignmentTestForPolicyParameters, PolicyParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForPolicyParameters tests if a specific instance of PolicyParameters can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForPolicyParameters(subject PolicyParameters) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.PolicyParameters - err := copied.AssignProperties_To_PolicyParameters(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual PolicyParameters - err = actual.AssignProperties_From_PolicyParameters(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_PolicyParameters_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of PolicyParameters via JSON returns original", - prop.ForAll(RunJSONSerializationTestForPolicyParameters, PolicyParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForPolicyParameters runs a test to see if a specific instance of PolicyParameters round trips to JSON and back losslessly -func RunJSONSerializationTestForPolicyParameters(subject PolicyParameters) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual PolicyParameters - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of PolicyParameters instances for property testing - lazily instantiated by PolicyParametersGenerator() -var policyParametersGenerator gopter.Gen - -// PolicyParametersGenerator returns a generator of PolicyParameters instances for property testing. -func PolicyParametersGenerator() gopter.Gen { - if policyParametersGenerator != nil { - return policyParametersGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForPolicyParameters(generators) - policyParametersGenerator = gen.Struct(reflect.TypeOf(PolicyParameters{}), generators) - - return policyParametersGenerator -} - -// AddRelatedPropertyGeneratorsForPolicyParameters is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForPolicyParameters(gens map[string]gopter.Gen) { - gens["BackupDatasourceParametersList"] = gen.SliceOf(BackupDatasourceParametersGenerator()) - gens["DataStoreParametersList"] = gen.SliceOf(DataStoreParametersGenerator()) -} - -func Test_PolicyParameters_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from PolicyParameters_STATUS to PolicyParameters_STATUS via AssignProperties_To_PolicyParameters_STATUS & AssignProperties_From_PolicyParameters_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForPolicyParameters_STATUS, PolicyParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForPolicyParameters_STATUS tests if a specific instance of PolicyParameters_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForPolicyParameters_STATUS(subject PolicyParameters_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.PolicyParameters_STATUS - err := copied.AssignProperties_To_PolicyParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual PolicyParameters_STATUS - err = actual.AssignProperties_From_PolicyParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_PolicyParameters_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of PolicyParameters_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForPolicyParameters_STATUS, PolicyParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForPolicyParameters_STATUS runs a test to see if a specific instance of PolicyParameters_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForPolicyParameters_STATUS(subject PolicyParameters_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual PolicyParameters_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of PolicyParameters_STATUS instances for property testing - lazily instantiated by -// PolicyParameters_STATUSGenerator() -var policyParameters_STATUSGenerator gopter.Gen - -// PolicyParameters_STATUSGenerator returns a generator of PolicyParameters_STATUS instances for property testing. -func PolicyParameters_STATUSGenerator() gopter.Gen { - if policyParameters_STATUSGenerator != nil { - return policyParameters_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForPolicyParameters_STATUS(generators) - policyParameters_STATUSGenerator = gen.Struct(reflect.TypeOf(PolicyParameters_STATUS{}), generators) - - return policyParameters_STATUSGenerator -} - -// AddRelatedPropertyGeneratorsForPolicyParameters_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForPolicyParameters_STATUS(gens map[string]gopter.Gen) { - gens["BackupDatasourceParametersList"] = gen.SliceOf(BackupDatasourceParameters_STATUSGenerator()) - gens["DataStoreParametersList"] = gen.SliceOf(DataStoreParameters_STATUSGenerator()) -} - -func Test_SecretStoreBasedAuthCredentials_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from SecretStoreBasedAuthCredentials to SecretStoreBasedAuthCredentials via AssignProperties_To_SecretStoreBasedAuthCredentials & AssignProperties_From_SecretStoreBasedAuthCredentials returns original", - prop.ForAll(RunPropertyAssignmentTestForSecretStoreBasedAuthCredentials, SecretStoreBasedAuthCredentialsGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForSecretStoreBasedAuthCredentials tests if a specific instance of SecretStoreBasedAuthCredentials can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForSecretStoreBasedAuthCredentials(subject SecretStoreBasedAuthCredentials) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SecretStoreBasedAuthCredentials - err := copied.AssignProperties_To_SecretStoreBasedAuthCredentials(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual SecretStoreBasedAuthCredentials - err = actual.AssignProperties_From_SecretStoreBasedAuthCredentials(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_SecretStoreBasedAuthCredentials_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of SecretStoreBasedAuthCredentials via JSON returns original", - prop.ForAll(RunJSONSerializationTestForSecretStoreBasedAuthCredentials, SecretStoreBasedAuthCredentialsGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForSecretStoreBasedAuthCredentials runs a test to see if a specific instance of SecretStoreBasedAuthCredentials round trips to JSON and back losslessly -func RunJSONSerializationTestForSecretStoreBasedAuthCredentials(subject SecretStoreBasedAuthCredentials) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual SecretStoreBasedAuthCredentials - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of SecretStoreBasedAuthCredentials instances for property testing - lazily instantiated by -// SecretStoreBasedAuthCredentialsGenerator() -var secretStoreBasedAuthCredentialsGenerator gopter.Gen - -// SecretStoreBasedAuthCredentialsGenerator returns a generator of SecretStoreBasedAuthCredentials instances for property testing. -// We first initialize secretStoreBasedAuthCredentialsGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func SecretStoreBasedAuthCredentialsGenerator() gopter.Gen { - if secretStoreBasedAuthCredentialsGenerator != nil { - return secretStoreBasedAuthCredentialsGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials(generators) - secretStoreBasedAuthCredentialsGenerator = gen.Struct(reflect.TypeOf(SecretStoreBasedAuthCredentials{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials(generators) - AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials(generators) - secretStoreBasedAuthCredentialsGenerator = gen.Struct(reflect.TypeOf(SecretStoreBasedAuthCredentials{}), generators) - - return secretStoreBasedAuthCredentialsGenerator -} - -// AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials(gens map[string]gopter.Gen) { - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials(gens map[string]gopter.Gen) { - gens["SecretStoreResource"] = gen.PtrOf(SecretStoreResourceGenerator()) -} - -func Test_SecretStoreBasedAuthCredentials_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from SecretStoreBasedAuthCredentials_STATUS to SecretStoreBasedAuthCredentials_STATUS via AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS & AssignProperties_From_SecretStoreBasedAuthCredentials_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForSecretStoreBasedAuthCredentials_STATUS, SecretStoreBasedAuthCredentials_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForSecretStoreBasedAuthCredentials_STATUS tests if a specific instance of SecretStoreBasedAuthCredentials_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForSecretStoreBasedAuthCredentials_STATUS(subject SecretStoreBasedAuthCredentials_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SecretStoreBasedAuthCredentials_STATUS - err := copied.AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual SecretStoreBasedAuthCredentials_STATUS - err = actual.AssignProperties_From_SecretStoreBasedAuthCredentials_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_SecretStoreBasedAuthCredentials_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of SecretStoreBasedAuthCredentials_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForSecretStoreBasedAuthCredentials_STATUS, SecretStoreBasedAuthCredentials_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForSecretStoreBasedAuthCredentials_STATUS runs a test to see if a specific instance of SecretStoreBasedAuthCredentials_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForSecretStoreBasedAuthCredentials_STATUS(subject SecretStoreBasedAuthCredentials_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual SecretStoreBasedAuthCredentials_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of SecretStoreBasedAuthCredentials_STATUS instances for property testing - lazily instantiated by -// SecretStoreBasedAuthCredentials_STATUSGenerator() -var secretStoreBasedAuthCredentials_STATUSGenerator gopter.Gen - -// SecretStoreBasedAuthCredentials_STATUSGenerator returns a generator of SecretStoreBasedAuthCredentials_STATUS instances for property testing. -// We first initialize secretStoreBasedAuthCredentials_STATUSGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func SecretStoreBasedAuthCredentials_STATUSGenerator() gopter.Gen { - if secretStoreBasedAuthCredentials_STATUSGenerator != nil { - return secretStoreBasedAuthCredentials_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS(generators) - secretStoreBasedAuthCredentials_STATUSGenerator = gen.Struct(reflect.TypeOf(SecretStoreBasedAuthCredentials_STATUS{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS(generators) - AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS(generators) - secretStoreBasedAuthCredentials_STATUSGenerator = gen.Struct(reflect.TypeOf(SecretStoreBasedAuthCredentials_STATUS{}), generators) - - return secretStoreBasedAuthCredentials_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS(gens map[string]gopter.Gen) { - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForSecretStoreBasedAuthCredentials_STATUS(gens map[string]gopter.Gen) { - gens["SecretStoreResource"] = gen.PtrOf(SecretStoreResource_STATUSGenerator()) -} - -func Test_UserFacingError_STATUS_Unrolled_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from UserFacingError_STATUS_Unrolled to UserFacingError_STATUS_Unrolled via AssignProperties_To_UserFacingError_STATUS_Unrolled & AssignProperties_From_UserFacingError_STATUS_Unrolled returns original", - prop.ForAll(RunPropertyAssignmentTestForUserFacingError_STATUS_Unrolled, UserFacingError_STATUS_UnrolledGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForUserFacingError_STATUS_Unrolled tests if a specific instance of UserFacingError_STATUS_Unrolled can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForUserFacingError_STATUS_Unrolled(subject UserFacingError_STATUS_Unrolled) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.UserFacingError_STATUS_Unrolled - err := copied.AssignProperties_To_UserFacingError_STATUS_Unrolled(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual UserFacingError_STATUS_Unrolled - err = actual.AssignProperties_From_UserFacingError_STATUS_Unrolled(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_UserFacingError_STATUS_Unrolled_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of UserFacingError_STATUS_Unrolled via JSON returns original", - prop.ForAll(RunJSONSerializationTestForUserFacingError_STATUS_Unrolled, UserFacingError_STATUS_UnrolledGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForUserFacingError_STATUS_Unrolled runs a test to see if a specific instance of UserFacingError_STATUS_Unrolled round trips to JSON and back losslessly -func RunJSONSerializationTestForUserFacingError_STATUS_Unrolled(subject UserFacingError_STATUS_Unrolled) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual UserFacingError_STATUS_Unrolled - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of UserFacingError_STATUS_Unrolled instances for property testing - lazily instantiated by -// UserFacingError_STATUS_UnrolledGenerator() -var userFacingError_STATUS_UnrolledGenerator gopter.Gen - -// UserFacingError_STATUS_UnrolledGenerator returns a generator of UserFacingError_STATUS_Unrolled instances for property testing. -// We first initialize userFacingError_STATUS_UnrolledGenerator with a simplified generator based on the -// fields with primitive types then replacing it with a more complex one that also handles complex fields -// to ensure any cycles in the object graph properly terminate. -func UserFacingError_STATUS_UnrolledGenerator() gopter.Gen { - if userFacingError_STATUS_UnrolledGenerator != nil { - return userFacingError_STATUS_UnrolledGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForUserFacingError_STATUS_Unrolled(generators) - userFacingError_STATUS_UnrolledGenerator = gen.Struct(reflect.TypeOf(UserFacingError_STATUS_Unrolled{}), generators) - - // The above call to gen.Struct() captures the map, so create a new one - generators = make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForUserFacingError_STATUS_Unrolled(generators) - AddRelatedPropertyGeneratorsForUserFacingError_STATUS_Unrolled(generators) - userFacingError_STATUS_UnrolledGenerator = gen.Struct(reflect.TypeOf(UserFacingError_STATUS_Unrolled{}), generators) - - return userFacingError_STATUS_UnrolledGenerator -} - -// AddIndependentPropertyGeneratorsForUserFacingError_STATUS_Unrolled is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForUserFacingError_STATUS_Unrolled(gens map[string]gopter.Gen) { - gens["Code"] = gen.PtrOf(gen.AlphaString()) - 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["RecommendedAction"] = gen.SliceOf(gen.AlphaString()) - gens["Target"] = gen.PtrOf(gen.AlphaString()) -} - -// AddRelatedPropertyGeneratorsForUserFacingError_STATUS_Unrolled is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForUserFacingError_STATUS_Unrolled(gens map[string]gopter.Gen) { - gens["InnerError"] = gen.PtrOf(InnerError_STATUSGenerator()) -} - -func Test_BackupDatasourceParameters_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BackupDatasourceParameters to BackupDatasourceParameters via AssignProperties_To_BackupDatasourceParameters & AssignProperties_From_BackupDatasourceParameters returns original", - prop.ForAll(RunPropertyAssignmentTestForBackupDatasourceParameters, BackupDatasourceParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBackupDatasourceParameters tests if a specific instance of BackupDatasourceParameters can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBackupDatasourceParameters(subject BackupDatasourceParameters) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupDatasourceParameters - err := copied.AssignProperties_To_BackupDatasourceParameters(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BackupDatasourceParameters - err = actual.AssignProperties_From_BackupDatasourceParameters(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BackupDatasourceParameters_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupDatasourceParameters via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupDatasourceParameters, BackupDatasourceParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupDatasourceParameters runs a test to see if a specific instance of BackupDatasourceParameters round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupDatasourceParameters(subject BackupDatasourceParameters) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupDatasourceParameters - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupDatasourceParameters instances for property testing - lazily instantiated by -// BackupDatasourceParametersGenerator() -var backupDatasourceParametersGenerator gopter.Gen - -// BackupDatasourceParametersGenerator returns a generator of BackupDatasourceParameters instances for property testing. -func BackupDatasourceParametersGenerator() gopter.Gen { - if backupDatasourceParametersGenerator != nil { - return backupDatasourceParametersGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForBackupDatasourceParameters(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(BackupDatasourceParameters{}), map[string]gopter.Gen{propName: propGen})) - } - backupDatasourceParametersGenerator = gen.OneGenOf(gens...) - - return backupDatasourceParametersGenerator -} - -// AddRelatedPropertyGeneratorsForBackupDatasourceParameters is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupDatasourceParameters(gens map[string]gopter.Gen) { - gens["Blob"] = BlobBackupDatasourceParametersGenerator().Map(func(it BlobBackupDatasourceParameters) *BlobBackupDatasourceParameters { - return &it - }) // generate one case for OneOf type - gens["KubernetesCluster"] = KubernetesClusterBackupDatasourceParametersGenerator().Map(func(it KubernetesClusterBackupDatasourceParameters) *KubernetesClusterBackupDatasourceParameters { - return &it - }) // generate one case for OneOf type -} - -func Test_BackupDatasourceParameters_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BackupDatasourceParameters_STATUS to BackupDatasourceParameters_STATUS via AssignProperties_To_BackupDatasourceParameters_STATUS & AssignProperties_From_BackupDatasourceParameters_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForBackupDatasourceParameters_STATUS, BackupDatasourceParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBackupDatasourceParameters_STATUS tests if a specific instance of BackupDatasourceParameters_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBackupDatasourceParameters_STATUS(subject BackupDatasourceParameters_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupDatasourceParameters_STATUS - err := copied.AssignProperties_To_BackupDatasourceParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BackupDatasourceParameters_STATUS - err = actual.AssignProperties_From_BackupDatasourceParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BackupDatasourceParameters_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BackupDatasourceParameters_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBackupDatasourceParameters_STATUS, BackupDatasourceParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBackupDatasourceParameters_STATUS runs a test to see if a specific instance of BackupDatasourceParameters_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForBackupDatasourceParameters_STATUS(subject BackupDatasourceParameters_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BackupDatasourceParameters_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BackupDatasourceParameters_STATUS instances for property testing - lazily instantiated by -// BackupDatasourceParameters_STATUSGenerator() -var backupDatasourceParameters_STATUSGenerator gopter.Gen - -// BackupDatasourceParameters_STATUSGenerator returns a generator of BackupDatasourceParameters_STATUS instances for property testing. -func BackupDatasourceParameters_STATUSGenerator() gopter.Gen { - if backupDatasourceParameters_STATUSGenerator != nil { - return backupDatasourceParameters_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForBackupDatasourceParameters_STATUS(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(BackupDatasourceParameters_STATUS{}), map[string]gopter.Gen{propName: propGen})) - } - backupDatasourceParameters_STATUSGenerator = gen.OneGenOf(gens...) - - return backupDatasourceParameters_STATUSGenerator -} - -// AddRelatedPropertyGeneratorsForBackupDatasourceParameters_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForBackupDatasourceParameters_STATUS(gens map[string]gopter.Gen) { - gens["Blob"] = BlobBackupDatasourceParameters_STATUSGenerator().Map(func(it BlobBackupDatasourceParameters_STATUS) *BlobBackupDatasourceParameters_STATUS { - return &it - }) // generate one case for OneOf type - gens["KubernetesCluster"] = KubernetesClusterBackupDatasourceParameters_STATUSGenerator().Map(func(it KubernetesClusterBackupDatasourceParameters_STATUS) *KubernetesClusterBackupDatasourceParameters_STATUS { - return &it - }) // generate one case for OneOf type -} - -func Test_DataStoreParameters_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from DataStoreParameters to DataStoreParameters via AssignProperties_To_DataStoreParameters & AssignProperties_From_DataStoreParameters returns original", - prop.ForAll(RunPropertyAssignmentTestForDataStoreParameters, DataStoreParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForDataStoreParameters tests if a specific instance of DataStoreParameters can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForDataStoreParameters(subject DataStoreParameters) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DataStoreParameters - err := copied.AssignProperties_To_DataStoreParameters(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual DataStoreParameters - err = actual.AssignProperties_From_DataStoreParameters(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_DataStoreParameters_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of DataStoreParameters via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDataStoreParameters, DataStoreParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDataStoreParameters runs a test to see if a specific instance of DataStoreParameters round trips to JSON and back losslessly -func RunJSONSerializationTestForDataStoreParameters(subject DataStoreParameters) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual DataStoreParameters - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of DataStoreParameters instances for property testing - lazily instantiated by -// DataStoreParametersGenerator() -var dataStoreParametersGenerator gopter.Gen - -// DataStoreParametersGenerator returns a generator of DataStoreParameters instances for property testing. -func DataStoreParametersGenerator() gopter.Gen { - if dataStoreParametersGenerator != nil { - return dataStoreParametersGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForDataStoreParameters(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(DataStoreParameters{}), map[string]gopter.Gen{propName: propGen})) - } - dataStoreParametersGenerator = gen.OneGenOf(gens...) - - return dataStoreParametersGenerator -} - -// AddRelatedPropertyGeneratorsForDataStoreParameters is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForDataStoreParameters(gens map[string]gopter.Gen) { - gens["AzureOperationalStoreParameters"] = AzureOperationalStoreParametersGenerator().Map(func(it AzureOperationalStoreParameters) *AzureOperationalStoreParameters { - return &it - }) // generate one case for OneOf type -} - -func Test_DataStoreParameters_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from DataStoreParameters_STATUS to DataStoreParameters_STATUS via AssignProperties_To_DataStoreParameters_STATUS & AssignProperties_From_DataStoreParameters_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForDataStoreParameters_STATUS, DataStoreParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForDataStoreParameters_STATUS tests if a specific instance of DataStoreParameters_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForDataStoreParameters_STATUS(subject DataStoreParameters_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DataStoreParameters_STATUS - err := copied.AssignProperties_To_DataStoreParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual DataStoreParameters_STATUS - err = actual.AssignProperties_From_DataStoreParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_DataStoreParameters_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of DataStoreParameters_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForDataStoreParameters_STATUS, DataStoreParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForDataStoreParameters_STATUS runs a test to see if a specific instance of DataStoreParameters_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForDataStoreParameters_STATUS(subject DataStoreParameters_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual DataStoreParameters_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of DataStoreParameters_STATUS instances for property testing - lazily instantiated by -// DataStoreParameters_STATUSGenerator() -var dataStoreParameters_STATUSGenerator gopter.Gen - -// DataStoreParameters_STATUSGenerator returns a generator of DataStoreParameters_STATUS instances for property testing. -func DataStoreParameters_STATUSGenerator() gopter.Gen { - if dataStoreParameters_STATUSGenerator != nil { - return dataStoreParameters_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddRelatedPropertyGeneratorsForDataStoreParameters_STATUS(generators) - - // handle OneOf by choosing only one field to instantiate - var gens []gopter.Gen - for propName, propGen := range generators { - gens = append(gens, gen.Struct(reflect.TypeOf(DataStoreParameters_STATUS{}), map[string]gopter.Gen{propName: propGen})) - } - dataStoreParameters_STATUSGenerator = gen.OneGenOf(gens...) - - return dataStoreParameters_STATUSGenerator -} - -// AddRelatedPropertyGeneratorsForDataStoreParameters_STATUS is a factory method for creating gopter generators -func AddRelatedPropertyGeneratorsForDataStoreParameters_STATUS(gens map[string]gopter.Gen) { - gens["AzureOperationalStoreParameters"] = AzureOperationalStoreParameters_STATUSGenerator().Map(func(it AzureOperationalStoreParameters_STATUS) *AzureOperationalStoreParameters_STATUS { - return &it - }) // generate one case for OneOf type -} - -func Test_InnerError_STATUS_Unrolled_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from InnerError_STATUS_Unrolled to InnerError_STATUS_Unrolled via AssignProperties_To_InnerError_STATUS_Unrolled & AssignProperties_From_InnerError_STATUS_Unrolled returns original", - prop.ForAll(RunPropertyAssignmentTestForInnerError_STATUS_Unrolled, InnerError_STATUS_UnrolledGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForInnerError_STATUS_Unrolled tests if a specific instance of InnerError_STATUS_Unrolled can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForInnerError_STATUS_Unrolled(subject InnerError_STATUS_Unrolled) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.InnerError_STATUS_Unrolled - err := copied.AssignProperties_To_InnerError_STATUS_Unrolled(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual InnerError_STATUS_Unrolled - err = actual.AssignProperties_From_InnerError_STATUS_Unrolled(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_InnerError_STATUS_Unrolled_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of InnerError_STATUS_Unrolled via JSON returns original", - prop.ForAll(RunJSONSerializationTestForInnerError_STATUS_Unrolled, InnerError_STATUS_UnrolledGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForInnerError_STATUS_Unrolled runs a test to see if a specific instance of InnerError_STATUS_Unrolled round trips to JSON and back losslessly -func RunJSONSerializationTestForInnerError_STATUS_Unrolled(subject InnerError_STATUS_Unrolled) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual InnerError_STATUS_Unrolled - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of InnerError_STATUS_Unrolled instances for property testing - lazily instantiated by -// InnerError_STATUS_UnrolledGenerator() -var innerError_STATUS_UnrolledGenerator gopter.Gen - -// InnerError_STATUS_UnrolledGenerator returns a generator of InnerError_STATUS_Unrolled instances for property testing. -func InnerError_STATUS_UnrolledGenerator() gopter.Gen { - if innerError_STATUS_UnrolledGenerator != nil { - return innerError_STATUS_UnrolledGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForInnerError_STATUS_Unrolled(generators) - innerError_STATUS_UnrolledGenerator = gen.Struct(reflect.TypeOf(InnerError_STATUS_Unrolled{}), generators) - - return innerError_STATUS_UnrolledGenerator -} - -// 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["Code"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_SecretStoreResource_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from SecretStoreResource to SecretStoreResource via AssignProperties_To_SecretStoreResource & AssignProperties_From_SecretStoreResource returns original", - prop.ForAll(RunPropertyAssignmentTestForSecretStoreResource, SecretStoreResourceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForSecretStoreResource tests if a specific instance of SecretStoreResource can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForSecretStoreResource(subject SecretStoreResource) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SecretStoreResource - err := copied.AssignProperties_To_SecretStoreResource(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual SecretStoreResource - err = actual.AssignProperties_From_SecretStoreResource(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_SecretStoreResource_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of SecretStoreResource via JSON returns original", - prop.ForAll(RunJSONSerializationTestForSecretStoreResource, SecretStoreResourceGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForSecretStoreResource runs a test to see if a specific instance of SecretStoreResource round trips to JSON and back losslessly -func RunJSONSerializationTestForSecretStoreResource(subject SecretStoreResource) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual SecretStoreResource - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of SecretStoreResource instances for property testing - lazily instantiated by -// SecretStoreResourceGenerator() -var secretStoreResourceGenerator gopter.Gen - -// SecretStoreResourceGenerator returns a generator of SecretStoreResource instances for property testing. -func SecretStoreResourceGenerator() gopter.Gen { - if secretStoreResourceGenerator != nil { - return secretStoreResourceGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreResource(generators) - secretStoreResourceGenerator = gen.Struct(reflect.TypeOf(SecretStoreResource{}), generators) - - return secretStoreResourceGenerator -} - -// AddIndependentPropertyGeneratorsForSecretStoreResource is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForSecretStoreResource(gens map[string]gopter.Gen) { - gens["SecretStoreType"] = gen.PtrOf(gen.AlphaString()) - gens["Uri"] = gen.PtrOf(gen.AlphaString()) - gens["Value"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_SecretStoreResource_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from SecretStoreResource_STATUS to SecretStoreResource_STATUS via AssignProperties_To_SecretStoreResource_STATUS & AssignProperties_From_SecretStoreResource_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForSecretStoreResource_STATUS, SecretStoreResource_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForSecretStoreResource_STATUS tests if a specific instance of SecretStoreResource_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForSecretStoreResource_STATUS(subject SecretStoreResource_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SecretStoreResource_STATUS - err := copied.AssignProperties_To_SecretStoreResource_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual SecretStoreResource_STATUS - err = actual.AssignProperties_From_SecretStoreResource_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_SecretStoreResource_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of SecretStoreResource_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForSecretStoreResource_STATUS, SecretStoreResource_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForSecretStoreResource_STATUS runs a test to see if a specific instance of SecretStoreResource_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForSecretStoreResource_STATUS(subject SecretStoreResource_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual SecretStoreResource_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of SecretStoreResource_STATUS instances for property testing - lazily instantiated by -// SecretStoreResource_STATUSGenerator() -var secretStoreResource_STATUSGenerator gopter.Gen - -// SecretStoreResource_STATUSGenerator returns a generator of SecretStoreResource_STATUS instances for property testing. -func SecretStoreResource_STATUSGenerator() gopter.Gen { - if secretStoreResource_STATUSGenerator != nil { - return secretStoreResource_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForSecretStoreResource_STATUS(generators) - secretStoreResource_STATUSGenerator = gen.Struct(reflect.TypeOf(SecretStoreResource_STATUS{}), generators) - - return secretStoreResource_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForSecretStoreResource_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForSecretStoreResource_STATUS(gens map[string]gopter.Gen) { - gens["SecretStoreType"] = gen.PtrOf(gen.AlphaString()) - gens["Uri"] = gen.PtrOf(gen.AlphaString()) - gens["Value"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_AzureOperationalStoreParameters_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from AzureOperationalStoreParameters to AzureOperationalStoreParameters via AssignProperties_To_AzureOperationalStoreParameters & AssignProperties_From_AzureOperationalStoreParameters returns original", - prop.ForAll(RunPropertyAssignmentTestForAzureOperationalStoreParameters, AzureOperationalStoreParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForAzureOperationalStoreParameters tests if a specific instance of AzureOperationalStoreParameters can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForAzureOperationalStoreParameters(subject AzureOperationalStoreParameters) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureOperationalStoreParameters - err := copied.AssignProperties_To_AzureOperationalStoreParameters(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual AzureOperationalStoreParameters - err = actual.AssignProperties_From_AzureOperationalStoreParameters(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_AzureOperationalStoreParameters_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of AzureOperationalStoreParameters via JSON returns original", - prop.ForAll(RunJSONSerializationTestForAzureOperationalStoreParameters, AzureOperationalStoreParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForAzureOperationalStoreParameters runs a test to see if a specific instance of AzureOperationalStoreParameters round trips to JSON and back losslessly -func RunJSONSerializationTestForAzureOperationalStoreParameters(subject AzureOperationalStoreParameters) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual AzureOperationalStoreParameters - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of AzureOperationalStoreParameters instances for property testing - lazily instantiated by -// AzureOperationalStoreParametersGenerator() -var azureOperationalStoreParametersGenerator gopter.Gen - -// AzureOperationalStoreParametersGenerator returns a generator of AzureOperationalStoreParameters instances for property testing. -func AzureOperationalStoreParametersGenerator() gopter.Gen { - if azureOperationalStoreParametersGenerator != nil { - return azureOperationalStoreParametersGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters(generators) - azureOperationalStoreParametersGenerator = gen.Struct(reflect.TypeOf(AzureOperationalStoreParameters{}), generators) - - return azureOperationalStoreParametersGenerator -} - -// AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters(gens map[string]gopter.Gen) { - gens["DataStoreType"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceGroupId"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_AzureOperationalStoreParameters_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from AzureOperationalStoreParameters_STATUS to AzureOperationalStoreParameters_STATUS via AssignProperties_To_AzureOperationalStoreParameters_STATUS & AssignProperties_From_AzureOperationalStoreParameters_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForAzureOperationalStoreParameters_STATUS, AzureOperationalStoreParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForAzureOperationalStoreParameters_STATUS tests if a specific instance of AzureOperationalStoreParameters_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForAzureOperationalStoreParameters_STATUS(subject AzureOperationalStoreParameters_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureOperationalStoreParameters_STATUS - err := copied.AssignProperties_To_AzureOperationalStoreParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual AzureOperationalStoreParameters_STATUS - err = actual.AssignProperties_From_AzureOperationalStoreParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_AzureOperationalStoreParameters_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of AzureOperationalStoreParameters_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForAzureOperationalStoreParameters_STATUS, AzureOperationalStoreParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForAzureOperationalStoreParameters_STATUS runs a test to see if a specific instance of AzureOperationalStoreParameters_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForAzureOperationalStoreParameters_STATUS(subject AzureOperationalStoreParameters_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual AzureOperationalStoreParameters_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of AzureOperationalStoreParameters_STATUS instances for property testing - lazily instantiated by -// AzureOperationalStoreParameters_STATUSGenerator() -var azureOperationalStoreParameters_STATUSGenerator gopter.Gen - -// AzureOperationalStoreParameters_STATUSGenerator returns a generator of AzureOperationalStoreParameters_STATUS instances for property testing. -func AzureOperationalStoreParameters_STATUSGenerator() gopter.Gen { - if azureOperationalStoreParameters_STATUSGenerator != nil { - return azureOperationalStoreParameters_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters_STATUS(generators) - azureOperationalStoreParameters_STATUSGenerator = gen.Struct(reflect.TypeOf(AzureOperationalStoreParameters_STATUS{}), generators) - - return azureOperationalStoreParameters_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForAzureOperationalStoreParameters_STATUS(gens map[string]gopter.Gen) { - gens["DataStoreType"] = gen.PtrOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["ResourceGroupId"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_BlobBackupDatasourceParameters_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BlobBackupDatasourceParameters to BlobBackupDatasourceParameters via AssignProperties_To_BlobBackupDatasourceParameters & AssignProperties_From_BlobBackupDatasourceParameters returns original", - prop.ForAll(RunPropertyAssignmentTestForBlobBackupDatasourceParameters, BlobBackupDatasourceParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBlobBackupDatasourceParameters tests if a specific instance of BlobBackupDatasourceParameters can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBlobBackupDatasourceParameters(subject BlobBackupDatasourceParameters) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BlobBackupDatasourceParameters - err := copied.AssignProperties_To_BlobBackupDatasourceParameters(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BlobBackupDatasourceParameters - err = actual.AssignProperties_From_BlobBackupDatasourceParameters(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BlobBackupDatasourceParameters_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BlobBackupDatasourceParameters via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBlobBackupDatasourceParameters, BlobBackupDatasourceParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBlobBackupDatasourceParameters runs a test to see if a specific instance of BlobBackupDatasourceParameters round trips to JSON and back losslessly -func RunJSONSerializationTestForBlobBackupDatasourceParameters(subject BlobBackupDatasourceParameters) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BlobBackupDatasourceParameters - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BlobBackupDatasourceParameters instances for property testing - lazily instantiated by -// BlobBackupDatasourceParametersGenerator() -var blobBackupDatasourceParametersGenerator gopter.Gen - -// BlobBackupDatasourceParametersGenerator returns a generator of BlobBackupDatasourceParameters instances for property testing. -func BlobBackupDatasourceParametersGenerator() gopter.Gen { - if blobBackupDatasourceParametersGenerator != nil { - return blobBackupDatasourceParametersGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters(generators) - blobBackupDatasourceParametersGenerator = gen.Struct(reflect.TypeOf(BlobBackupDatasourceParameters{}), generators) - - return blobBackupDatasourceParametersGenerator -} - -// AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters(gens map[string]gopter.Gen) { - gens["ContainersList"] = gen.SliceOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_BlobBackupDatasourceParameters_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from BlobBackupDatasourceParameters_STATUS to BlobBackupDatasourceParameters_STATUS via AssignProperties_To_BlobBackupDatasourceParameters_STATUS & AssignProperties_From_BlobBackupDatasourceParameters_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForBlobBackupDatasourceParameters_STATUS, BlobBackupDatasourceParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForBlobBackupDatasourceParameters_STATUS tests if a specific instance of BlobBackupDatasourceParameters_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForBlobBackupDatasourceParameters_STATUS(subject BlobBackupDatasourceParameters_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BlobBackupDatasourceParameters_STATUS - err := copied.AssignProperties_To_BlobBackupDatasourceParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual BlobBackupDatasourceParameters_STATUS - err = actual.AssignProperties_From_BlobBackupDatasourceParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_BlobBackupDatasourceParameters_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of BlobBackupDatasourceParameters_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForBlobBackupDatasourceParameters_STATUS, BlobBackupDatasourceParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForBlobBackupDatasourceParameters_STATUS runs a test to see if a specific instance of BlobBackupDatasourceParameters_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForBlobBackupDatasourceParameters_STATUS(subject BlobBackupDatasourceParameters_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual BlobBackupDatasourceParameters_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of BlobBackupDatasourceParameters_STATUS instances for property testing - lazily instantiated by -// BlobBackupDatasourceParameters_STATUSGenerator() -var blobBackupDatasourceParameters_STATUSGenerator gopter.Gen - -// BlobBackupDatasourceParameters_STATUSGenerator returns a generator of BlobBackupDatasourceParameters_STATUS instances for property testing. -func BlobBackupDatasourceParameters_STATUSGenerator() gopter.Gen { - if blobBackupDatasourceParameters_STATUSGenerator != nil { - return blobBackupDatasourceParameters_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters_STATUS(generators) - blobBackupDatasourceParameters_STATUSGenerator = gen.Struct(reflect.TypeOf(BlobBackupDatasourceParameters_STATUS{}), generators) - - return blobBackupDatasourceParameters_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForBlobBackupDatasourceParameters_STATUS(gens map[string]gopter.Gen) { - gens["ContainersList"] = gen.SliceOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) -} - -func Test_KubernetesClusterBackupDatasourceParameters_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from KubernetesClusterBackupDatasourceParameters to KubernetesClusterBackupDatasourceParameters via AssignProperties_To_KubernetesClusterBackupDatasourceParameters & AssignProperties_From_KubernetesClusterBackupDatasourceParameters returns original", - prop.ForAll(RunPropertyAssignmentTestForKubernetesClusterBackupDatasourceParameters, KubernetesClusterBackupDatasourceParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForKubernetesClusterBackupDatasourceParameters tests if a specific instance of KubernetesClusterBackupDatasourceParameters can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForKubernetesClusterBackupDatasourceParameters(subject KubernetesClusterBackupDatasourceParameters) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.KubernetesClusterBackupDatasourceParameters - err := copied.AssignProperties_To_KubernetesClusterBackupDatasourceParameters(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual KubernetesClusterBackupDatasourceParameters - err = actual.AssignProperties_From_KubernetesClusterBackupDatasourceParameters(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_KubernetesClusterBackupDatasourceParameters_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 100 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of KubernetesClusterBackupDatasourceParameters via JSON returns original", - prop.ForAll(RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters, KubernetesClusterBackupDatasourceParametersGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters runs a test to see if a specific instance of KubernetesClusterBackupDatasourceParameters round trips to JSON and back losslessly -func RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters(subject KubernetesClusterBackupDatasourceParameters) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual KubernetesClusterBackupDatasourceParameters - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of KubernetesClusterBackupDatasourceParameters instances for property testing - lazily instantiated by -// KubernetesClusterBackupDatasourceParametersGenerator() -var kubernetesClusterBackupDatasourceParametersGenerator gopter.Gen - -// KubernetesClusterBackupDatasourceParametersGenerator returns a generator of KubernetesClusterBackupDatasourceParameters instances for property testing. -func KubernetesClusterBackupDatasourceParametersGenerator() gopter.Gen { - if kubernetesClusterBackupDatasourceParametersGenerator != nil { - return kubernetesClusterBackupDatasourceParametersGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters(generators) - kubernetesClusterBackupDatasourceParametersGenerator = gen.Struct(reflect.TypeOf(KubernetesClusterBackupDatasourceParameters{}), generators) - - return kubernetesClusterBackupDatasourceParametersGenerator -} - -// AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters(gens map[string]gopter.Gen) { - gens["ExcludedNamespaces"] = gen.SliceOf(gen.AlphaString()) - gens["ExcludedResourceTypes"] = gen.SliceOf(gen.AlphaString()) - gens["IncludeClusterScopeResources"] = gen.PtrOf(gen.Bool()) - gens["IncludedNamespaces"] = gen.SliceOf(gen.AlphaString()) - gens["IncludedResourceTypes"] = gen.SliceOf(gen.AlphaString()) - gens["LabelSelectors"] = gen.SliceOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["SnapshotVolumes"] = gen.PtrOf(gen.Bool()) -} - -func Test_KubernetesClusterBackupDatasourceParameters_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MaxSize = 10 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip from KubernetesClusterBackupDatasourceParameters_STATUS to KubernetesClusterBackupDatasourceParameters_STATUS via AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS & AssignProperties_From_KubernetesClusterBackupDatasourceParameters_STATUS returns original", - prop.ForAll(RunPropertyAssignmentTestForKubernetesClusterBackupDatasourceParameters_STATUS, KubernetesClusterBackupDatasourceParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout)) -} - -// RunPropertyAssignmentTestForKubernetesClusterBackupDatasourceParameters_STATUS tests if a specific instance of KubernetesClusterBackupDatasourceParameters_STATUS can be assigned to storage and back losslessly -func RunPropertyAssignmentTestForKubernetesClusterBackupDatasourceParameters_STATUS(subject KubernetesClusterBackupDatasourceParameters_STATUS) string { - // Copy subject to make sure assignment doesn't modify it - copied := subject.DeepCopy() - - // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.KubernetesClusterBackupDatasourceParameters_STATUS - err := copied.AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Use AssignPropertiesFrom() to convert back to our original type - var actual KubernetesClusterBackupDatasourceParameters_STATUS - err = actual.AssignProperties_From_KubernetesClusterBackupDatasourceParameters_STATUS(&other) - if err != nil { - return err.Error() - } - - // Check for a match - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -func Test_KubernetesClusterBackupDatasourceParameters_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { - t.Parallel() - parameters := gopter.DefaultTestParameters() - parameters.MinSuccessfulTests = 80 - parameters.MaxSize = 3 - properties := gopter.NewProperties(parameters) - properties.Property( - "Round trip of KubernetesClusterBackupDatasourceParameters_STATUS via JSON returns original", - prop.ForAll(RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters_STATUS, KubernetesClusterBackupDatasourceParameters_STATUSGenerator())) - properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout)) -} - -// RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters_STATUS runs a test to see if a specific instance of KubernetesClusterBackupDatasourceParameters_STATUS round trips to JSON and back losslessly -func RunJSONSerializationTestForKubernetesClusterBackupDatasourceParameters_STATUS(subject KubernetesClusterBackupDatasourceParameters_STATUS) string { - // Serialize to JSON - bin, err := json.Marshal(subject) - if err != nil { - return err.Error() - } - - // Deserialize back into memory - var actual KubernetesClusterBackupDatasourceParameters_STATUS - err = json.Unmarshal(bin, &actual) - if err != nil { - return err.Error() - } - - // Check for outcome - match := cmp.Equal(subject, actual, cmpopts.EquateEmpty()) - if !match { - actualFmt := pretty.Sprint(actual) - subjectFmt := pretty.Sprint(subject) - result := diff.Diff(subjectFmt, actualFmt) - return result - } - - return "" -} - -// Generator of KubernetesClusterBackupDatasourceParameters_STATUS instances for property testing - lazily instantiated -// by KubernetesClusterBackupDatasourceParameters_STATUSGenerator() -var kubernetesClusterBackupDatasourceParameters_STATUSGenerator gopter.Gen - -// KubernetesClusterBackupDatasourceParameters_STATUSGenerator returns a generator of KubernetesClusterBackupDatasourceParameters_STATUS instances for property testing. -func KubernetesClusterBackupDatasourceParameters_STATUSGenerator() gopter.Gen { - if kubernetesClusterBackupDatasourceParameters_STATUSGenerator != nil { - return kubernetesClusterBackupDatasourceParameters_STATUSGenerator - } - - generators := make(map[string]gopter.Gen) - AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters_STATUS(generators) - kubernetesClusterBackupDatasourceParameters_STATUSGenerator = gen.Struct(reflect.TypeOf(KubernetesClusterBackupDatasourceParameters_STATUS{}), generators) - - return kubernetesClusterBackupDatasourceParameters_STATUSGenerator -} - -// AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters_STATUS is a factory method for creating gopter generators -func AddIndependentPropertyGeneratorsForKubernetesClusterBackupDatasourceParameters_STATUS(gens map[string]gopter.Gen) { - gens["ExcludedNamespaces"] = gen.SliceOf(gen.AlphaString()) - gens["ExcludedResourceTypes"] = gen.SliceOf(gen.AlphaString()) - gens["IncludeClusterScopeResources"] = gen.PtrOf(gen.Bool()) - gens["IncludedNamespaces"] = gen.SliceOf(gen.AlphaString()) - gens["IncludedResourceTypes"] = gen.SliceOf(gen.AlphaString()) - gens["LabelSelectors"] = gen.SliceOf(gen.AlphaString()) - gens["ObjectType"] = gen.PtrOf(gen.AlphaString()) - gens["SnapshotVolumes"] = gen.PtrOf(gen.Bool()) -} diff --git a/v2/api/dataprotection/v1api20230101/storage/backup_vaults_backup_policy_types_gen.go b/v2/api/dataprotection/v1api20230101/storage/backup_vaults_backup_policy_types_gen.go index 3c061497f2f..8d985ce25e5 100644 --- a/v2/api/dataprotection/v1api20230101/storage/backup_vaults_backup_policy_types_gen.go +++ b/v2/api/dataprotection/v1api20230101/storage/backup_vaults_backup_policy_types_gen.go @@ -5,7 +5,7 @@ package storage import ( "fmt" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" + v20231101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage" "github.com/Azure/azure-service-operator/v2/pkg/genruntime" "github.com/Azure/azure-service-operator/v2/pkg/genruntime/conditions" "github.com/pkg/errors" @@ -47,9 +47,9 @@ var _ conversion.Convertible = &BackupVaultsBackupPolicy{} // ConvertFrom populates our BackupVaultsBackupPolicy from the provided hub BackupVaultsBackupPolicy func (policy *BackupVaultsBackupPolicy) ConvertFrom(hub conversion.Hub) error { - source, ok := hub.(*v20231201s.BackupVaultsBackupPolicy) + source, ok := hub.(*v20231101s.BackupVaultsBackupPolicy) if !ok { - return fmt.Errorf("expected dataprotection/v1api20231201/storage/BackupVaultsBackupPolicy but received %T instead", hub) + return fmt.Errorf("expected dataprotection/v1api20231101/storage/BackupVaultsBackupPolicy but received %T instead", hub) } return policy.AssignProperties_From_BackupVaultsBackupPolicy(source) @@ -57,9 +57,9 @@ func (policy *BackupVaultsBackupPolicy) ConvertFrom(hub conversion.Hub) error { // ConvertTo populates the provided hub BackupVaultsBackupPolicy from our BackupVaultsBackupPolicy func (policy *BackupVaultsBackupPolicy) ConvertTo(hub conversion.Hub) error { - destination, ok := hub.(*v20231201s.BackupVaultsBackupPolicy) + destination, ok := hub.(*v20231101s.BackupVaultsBackupPolicy) if !ok { - return fmt.Errorf("expected dataprotection/v1api20231201/storage/BackupVaultsBackupPolicy but received %T instead", hub) + return fmt.Errorf("expected dataprotection/v1api20231101/storage/BackupVaultsBackupPolicy but received %T instead", hub) } return policy.AssignProperties_To_BackupVaultsBackupPolicy(destination) @@ -137,7 +137,7 @@ func (policy *BackupVaultsBackupPolicy) SetStatus(status genruntime.ConvertibleS } // AssignProperties_From_BackupVaultsBackupPolicy populates our BackupVaultsBackupPolicy from the provided source BackupVaultsBackupPolicy -func (policy *BackupVaultsBackupPolicy) AssignProperties_From_BackupVaultsBackupPolicy(source *v20231201s.BackupVaultsBackupPolicy) error { +func (policy *BackupVaultsBackupPolicy) AssignProperties_From_BackupVaultsBackupPolicy(source *v20231101s.BackupVaultsBackupPolicy) error { // ObjectMeta policy.ObjectMeta = *source.ObjectMeta.DeepCopy() @@ -172,13 +172,13 @@ func (policy *BackupVaultsBackupPolicy) AssignProperties_From_BackupVaultsBackup } // AssignProperties_To_BackupVaultsBackupPolicy populates the provided destination BackupVaultsBackupPolicy from our BackupVaultsBackupPolicy -func (policy *BackupVaultsBackupPolicy) AssignProperties_To_BackupVaultsBackupPolicy(destination *v20231201s.BackupVaultsBackupPolicy) error { +func (policy *BackupVaultsBackupPolicy) AssignProperties_To_BackupVaultsBackupPolicy(destination *v20231101s.BackupVaultsBackupPolicy) error { // ObjectMeta destination.ObjectMeta = *policy.ObjectMeta.DeepCopy() // Spec - var spec v20231201s.BackupVaults_BackupPolicy_Spec + var spec v20231101s.BackupVaults_BackupPolicy_Spec err := policy.Spec.AssignProperties_To_BackupVaults_BackupPolicy_Spec(&spec) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVaults_BackupPolicy_Spec() to populate field Spec") @@ -186,7 +186,7 @@ func (policy *BackupVaultsBackupPolicy) AssignProperties_To_BackupVaultsBackupPo destination.Spec = spec // Status - var status v20231201s.BackupVaults_BackupPolicy_STATUS + var status v20231101s.BackupVaults_BackupPolicy_STATUS err = policy.Status.AssignProperties_To_BackupVaults_BackupPolicy_STATUS(&status) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVaults_BackupPolicy_STATUS() to populate field Status") @@ -227,8 +227,8 @@ type BackupVaultsBackupPolicyList struct { } type augmentConversionForBackupVaultsBackupPolicy interface { - AssignPropertiesFrom(src *v20231201s.BackupVaultsBackupPolicy) error - AssignPropertiesTo(dst *v20231201s.BackupVaultsBackupPolicy) error + AssignPropertiesFrom(src *v20231101s.BackupVaultsBackupPolicy) error + AssignPropertiesTo(dst *v20231101s.BackupVaultsBackupPolicy) error } // Storage version of v1api20230101.BackupVaults_BackupPolicy_Spec @@ -251,14 +251,14 @@ var _ genruntime.ConvertibleSpec = &BackupVaults_BackupPolicy_Spec{} // ConvertSpecFrom populates our BackupVaults_BackupPolicy_Spec from the provided source func (policy *BackupVaults_BackupPolicy_Spec) ConvertSpecFrom(source genruntime.ConvertibleSpec) error { - src, ok := source.(*v20231201s.BackupVaults_BackupPolicy_Spec) + src, ok := source.(*v20231101s.BackupVaults_BackupPolicy_Spec) if ok { // Populate our instance from source return policy.AssignProperties_From_BackupVaults_BackupPolicy_Spec(src) } // Convert to an intermediate form - src = &v20231201s.BackupVaults_BackupPolicy_Spec{} + src = &v20231101s.BackupVaults_BackupPolicy_Spec{} err := src.ConvertSpecFrom(source) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertSpecFrom()") @@ -275,14 +275,14 @@ func (policy *BackupVaults_BackupPolicy_Spec) ConvertSpecFrom(source genruntime. // ConvertSpecTo populates the provided destination from our BackupVaults_BackupPolicy_Spec func (policy *BackupVaults_BackupPolicy_Spec) ConvertSpecTo(destination genruntime.ConvertibleSpec) error { - dst, ok := destination.(*v20231201s.BackupVaults_BackupPolicy_Spec) + dst, ok := destination.(*v20231101s.BackupVaults_BackupPolicy_Spec) if ok { // Populate destination from our instance return policy.AssignProperties_To_BackupVaults_BackupPolicy_Spec(dst) } // Convert to an intermediate form - dst = &v20231201s.BackupVaults_BackupPolicy_Spec{} + dst = &v20231101s.BackupVaults_BackupPolicy_Spec{} err := policy.AssignProperties_To_BackupVaults_BackupPolicy_Spec(dst) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertSpecTo()") @@ -298,7 +298,7 @@ func (policy *BackupVaults_BackupPolicy_Spec) ConvertSpecTo(destination genrunti } // AssignProperties_From_BackupVaults_BackupPolicy_Spec populates our BackupVaults_BackupPolicy_Spec from the provided source BackupVaults_BackupPolicy_Spec -func (policy *BackupVaults_BackupPolicy_Spec) AssignProperties_From_BackupVaults_BackupPolicy_Spec(source *v20231201s.BackupVaults_BackupPolicy_Spec) error { +func (policy *BackupVaults_BackupPolicy_Spec) AssignProperties_From_BackupVaults_BackupPolicy_Spec(source *v20231101s.BackupVaults_BackupPolicy_Spec) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -349,7 +349,7 @@ func (policy *BackupVaults_BackupPolicy_Spec) AssignProperties_From_BackupVaults } // AssignProperties_To_BackupVaults_BackupPolicy_Spec populates the provided destination BackupVaults_BackupPolicy_Spec from our BackupVaults_BackupPolicy_Spec -func (policy *BackupVaults_BackupPolicy_Spec) AssignProperties_To_BackupVaults_BackupPolicy_Spec(destination *v20231201s.BackupVaults_BackupPolicy_Spec) error { +func (policy *BackupVaults_BackupPolicy_Spec) AssignProperties_To_BackupVaults_BackupPolicy_Spec(destination *v20231101s.BackupVaults_BackupPolicy_Spec) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(policy.PropertyBag) @@ -369,7 +369,7 @@ func (policy *BackupVaults_BackupPolicy_Spec) AssignProperties_To_BackupVaults_B // Properties if policy.Properties != nil { - var property v20231201s.BaseBackupPolicy + var property v20231101s.BaseBackupPolicy err := policy.Properties.AssignProperties_To_BaseBackupPolicy(&property) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BaseBackupPolicy() to populate field Properties") @@ -414,14 +414,14 @@ var _ genruntime.ConvertibleStatus = &BackupVaults_BackupPolicy_STATUS{} // ConvertStatusFrom populates our BackupVaults_BackupPolicy_STATUS from the provided source func (policy *BackupVaults_BackupPolicy_STATUS) ConvertStatusFrom(source genruntime.ConvertibleStatus) error { - src, ok := source.(*v20231201s.BackupVaults_BackupPolicy_STATUS) + src, ok := source.(*v20231101s.BackupVaults_BackupPolicy_STATUS) if ok { // Populate our instance from source return policy.AssignProperties_From_BackupVaults_BackupPolicy_STATUS(src) } // Convert to an intermediate form - src = &v20231201s.BackupVaults_BackupPolicy_STATUS{} + src = &v20231101s.BackupVaults_BackupPolicy_STATUS{} err := src.ConvertStatusFrom(source) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertStatusFrom()") @@ -438,14 +438,14 @@ func (policy *BackupVaults_BackupPolicy_STATUS) ConvertStatusFrom(source genrunt // ConvertStatusTo populates the provided destination from our BackupVaults_BackupPolicy_STATUS func (policy *BackupVaults_BackupPolicy_STATUS) ConvertStatusTo(destination genruntime.ConvertibleStatus) error { - dst, ok := destination.(*v20231201s.BackupVaults_BackupPolicy_STATUS) + dst, ok := destination.(*v20231101s.BackupVaults_BackupPolicy_STATUS) if ok { // Populate destination from our instance return policy.AssignProperties_To_BackupVaults_BackupPolicy_STATUS(dst) } // Convert to an intermediate form - dst = &v20231201s.BackupVaults_BackupPolicy_STATUS{} + dst = &v20231101s.BackupVaults_BackupPolicy_STATUS{} err := policy.AssignProperties_To_BackupVaults_BackupPolicy_STATUS(dst) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertStatusTo()") @@ -461,7 +461,7 @@ func (policy *BackupVaults_BackupPolicy_STATUS) ConvertStatusTo(destination genr } // AssignProperties_From_BackupVaults_BackupPolicy_STATUS populates our BackupVaults_BackupPolicy_STATUS from the provided source BackupVaults_BackupPolicy_STATUS -func (policy *BackupVaults_BackupPolicy_STATUS) AssignProperties_From_BackupVaults_BackupPolicy_STATUS(source *v20231201s.BackupVaults_BackupPolicy_STATUS) error { +func (policy *BackupVaults_BackupPolicy_STATUS) AssignProperties_From_BackupVaults_BackupPolicy_STATUS(source *v20231101s.BackupVaults_BackupPolicy_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -522,7 +522,7 @@ func (policy *BackupVaults_BackupPolicy_STATUS) AssignProperties_From_BackupVaul } // AssignProperties_To_BackupVaults_BackupPolicy_STATUS populates the provided destination BackupVaults_BackupPolicy_STATUS from our BackupVaults_BackupPolicy_STATUS -func (policy *BackupVaults_BackupPolicy_STATUS) AssignProperties_To_BackupVaults_BackupPolicy_STATUS(destination *v20231201s.BackupVaults_BackupPolicy_STATUS) error { +func (policy *BackupVaults_BackupPolicy_STATUS) AssignProperties_To_BackupVaults_BackupPolicy_STATUS(destination *v20231101s.BackupVaults_BackupPolicy_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(policy.PropertyBag) @@ -537,7 +537,7 @@ func (policy *BackupVaults_BackupPolicy_STATUS) AssignProperties_To_BackupVaults // Properties if policy.Properties != nil { - var property v20231201s.BaseBackupPolicy_STATUS + var property v20231101s.BaseBackupPolicy_STATUS err := policy.Properties.AssignProperties_To_BaseBackupPolicy_STATUS(&property) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BaseBackupPolicy_STATUS() to populate field Properties") @@ -549,7 +549,7 @@ func (policy *BackupVaults_BackupPolicy_STATUS) AssignProperties_To_BackupVaults // SystemData if policy.SystemData != nil { - var systemDatum v20231201s.SystemData_STATUS + var systemDatum v20231101s.SystemData_STATUS err := policy.SystemData.AssignProperties_To_SystemData_STATUS(&systemDatum) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SystemData_STATUS() to populate field SystemData") @@ -583,13 +583,13 @@ func (policy *BackupVaults_BackupPolicy_STATUS) AssignProperties_To_BackupVaults } type augmentConversionForBackupVaults_BackupPolicy_Spec interface { - AssignPropertiesFrom(src *v20231201s.BackupVaults_BackupPolicy_Spec) error - AssignPropertiesTo(dst *v20231201s.BackupVaults_BackupPolicy_Spec) error + AssignPropertiesFrom(src *v20231101s.BackupVaults_BackupPolicy_Spec) error + AssignPropertiesTo(dst *v20231101s.BackupVaults_BackupPolicy_Spec) error } type augmentConversionForBackupVaults_BackupPolicy_STATUS interface { - AssignPropertiesFrom(src *v20231201s.BackupVaults_BackupPolicy_STATUS) error - AssignPropertiesTo(dst *v20231201s.BackupVaults_BackupPolicy_STATUS) error + AssignPropertiesFrom(src *v20231101s.BackupVaults_BackupPolicy_STATUS) error + AssignPropertiesTo(dst *v20231101s.BackupVaults_BackupPolicy_STATUS) error } // Storage version of v1api20230101.BaseBackupPolicy @@ -599,7 +599,7 @@ type BaseBackupPolicy struct { } // AssignProperties_From_BaseBackupPolicy populates our BaseBackupPolicy from the provided source BaseBackupPolicy -func (policy *BaseBackupPolicy) AssignProperties_From_BaseBackupPolicy(source *v20231201s.BaseBackupPolicy) error { +func (policy *BaseBackupPolicy) AssignProperties_From_BaseBackupPolicy(source *v20231101s.BaseBackupPolicy) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -636,13 +636,13 @@ func (policy *BaseBackupPolicy) AssignProperties_From_BaseBackupPolicy(source *v } // AssignProperties_To_BaseBackupPolicy populates the provided destination BaseBackupPolicy from our BaseBackupPolicy -func (policy *BaseBackupPolicy) AssignProperties_To_BaseBackupPolicy(destination *v20231201s.BaseBackupPolicy) error { +func (policy *BaseBackupPolicy) AssignProperties_To_BaseBackupPolicy(destination *v20231101s.BaseBackupPolicy) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(policy.PropertyBag) // BackupPolicy if policy.BackupPolicy != nil { - var backupPolicy v20231201s.BackupPolicy + var backupPolicy v20231101s.BackupPolicy err := policy.BackupPolicy.AssignProperties_To_BackupPolicy(&backupPolicy) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupPolicy() to populate field BackupPolicy") @@ -679,7 +679,7 @@ type BaseBackupPolicy_STATUS struct { } // AssignProperties_From_BaseBackupPolicy_STATUS populates our BaseBackupPolicy_STATUS from the provided source BaseBackupPolicy_STATUS -func (policy *BaseBackupPolicy_STATUS) AssignProperties_From_BaseBackupPolicy_STATUS(source *v20231201s.BaseBackupPolicy_STATUS) error { +func (policy *BaseBackupPolicy_STATUS) AssignProperties_From_BaseBackupPolicy_STATUS(source *v20231101s.BaseBackupPolicy_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -716,13 +716,13 @@ func (policy *BaseBackupPolicy_STATUS) AssignProperties_From_BaseBackupPolicy_ST } // AssignProperties_To_BaseBackupPolicy_STATUS populates the provided destination BaseBackupPolicy_STATUS from our BaseBackupPolicy_STATUS -func (policy *BaseBackupPolicy_STATUS) AssignProperties_To_BaseBackupPolicy_STATUS(destination *v20231201s.BaseBackupPolicy_STATUS) error { +func (policy *BaseBackupPolicy_STATUS) AssignProperties_To_BaseBackupPolicy_STATUS(destination *v20231101s.BaseBackupPolicy_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(policy.PropertyBag) // BackupPolicy if policy.BackupPolicy != nil { - var backupPolicy v20231201s.BackupPolicy_STATUS + var backupPolicy v20231101s.BackupPolicy_STATUS err := policy.BackupPolicy.AssignProperties_To_BackupPolicy_STATUS(&backupPolicy) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupPolicy_STATUS() to populate field BackupPolicy") @@ -753,13 +753,13 @@ func (policy *BaseBackupPolicy_STATUS) AssignProperties_To_BaseBackupPolicy_STAT } type augmentConversionForBaseBackupPolicy interface { - AssignPropertiesFrom(src *v20231201s.BaseBackupPolicy) error - AssignPropertiesTo(dst *v20231201s.BaseBackupPolicy) error + AssignPropertiesFrom(src *v20231101s.BaseBackupPolicy) error + AssignPropertiesTo(dst *v20231101s.BaseBackupPolicy) error } type augmentConversionForBaseBackupPolicy_STATUS interface { - AssignPropertiesFrom(src *v20231201s.BaseBackupPolicy_STATUS) error - AssignPropertiesTo(dst *v20231201s.BaseBackupPolicy_STATUS) error + AssignPropertiesFrom(src *v20231101s.BaseBackupPolicy_STATUS) error + AssignPropertiesTo(dst *v20231101s.BaseBackupPolicy_STATUS) error } // Storage version of v1api20230101.BackupPolicy @@ -771,7 +771,7 @@ type BackupPolicy struct { } // AssignProperties_From_BackupPolicy populates our BackupPolicy from the provided source BackupPolicy -func (policy *BackupPolicy) AssignProperties_From_BackupPolicy(source *v20231201s.BackupPolicy) error { +func (policy *BackupPolicy) AssignProperties_From_BackupPolicy(source *v20231101s.BackupPolicy) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -820,7 +820,7 @@ func (policy *BackupPolicy) AssignProperties_From_BackupPolicy(source *v20231201 } // AssignProperties_To_BackupPolicy populates the provided destination BackupPolicy from our BackupPolicy -func (policy *BackupPolicy) AssignProperties_To_BackupPolicy(destination *v20231201s.BackupPolicy) error { +func (policy *BackupPolicy) AssignProperties_To_BackupPolicy(destination *v20231101s.BackupPolicy) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(policy.PropertyBag) @@ -832,11 +832,11 @@ func (policy *BackupPolicy) AssignProperties_To_BackupPolicy(destination *v20231 // PolicyRules if policy.PolicyRules != nil { - policyRuleList := make([]v20231201s.BasePolicyRule, len(policy.PolicyRules)) + policyRuleList := make([]v20231101s.BasePolicyRule, len(policy.PolicyRules)) for policyRuleIndex, policyRuleItem := range policy.PolicyRules { // Shadow the loop variable to avoid aliasing policyRuleItem := policyRuleItem - var policyRule v20231201s.BasePolicyRule + var policyRule v20231101s.BasePolicyRule err := policyRuleItem.AssignProperties_To_BasePolicyRule(&policyRule) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BasePolicyRule() to populate field PolicyRules") @@ -877,7 +877,7 @@ type BackupPolicy_STATUS struct { } // AssignProperties_From_BackupPolicy_STATUS populates our BackupPolicy_STATUS from the provided source BackupPolicy_STATUS -func (policy *BackupPolicy_STATUS) AssignProperties_From_BackupPolicy_STATUS(source *v20231201s.BackupPolicy_STATUS) error { +func (policy *BackupPolicy_STATUS) AssignProperties_From_BackupPolicy_STATUS(source *v20231101s.BackupPolicy_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -926,7 +926,7 @@ func (policy *BackupPolicy_STATUS) AssignProperties_From_BackupPolicy_STATUS(sou } // AssignProperties_To_BackupPolicy_STATUS populates the provided destination BackupPolicy_STATUS from our BackupPolicy_STATUS -func (policy *BackupPolicy_STATUS) AssignProperties_To_BackupPolicy_STATUS(destination *v20231201s.BackupPolicy_STATUS) error { +func (policy *BackupPolicy_STATUS) AssignProperties_To_BackupPolicy_STATUS(destination *v20231101s.BackupPolicy_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(policy.PropertyBag) @@ -938,11 +938,11 @@ func (policy *BackupPolicy_STATUS) AssignProperties_To_BackupPolicy_STATUS(desti // PolicyRules if policy.PolicyRules != nil { - policyRuleList := make([]v20231201s.BasePolicyRule_STATUS, len(policy.PolicyRules)) + policyRuleList := make([]v20231101s.BasePolicyRule_STATUS, len(policy.PolicyRules)) for policyRuleIndex, policyRuleItem := range policy.PolicyRules { // Shadow the loop variable to avoid aliasing policyRuleItem := policyRuleItem - var policyRule v20231201s.BasePolicyRule_STATUS + var policyRule v20231101s.BasePolicyRule_STATUS err := policyRuleItem.AssignProperties_To_BasePolicyRule_STATUS(&policyRule) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BasePolicyRule_STATUS() to populate field PolicyRules") @@ -975,13 +975,13 @@ func (policy *BackupPolicy_STATUS) AssignProperties_To_BackupPolicy_STATUS(desti } type augmentConversionForBackupPolicy interface { - AssignPropertiesFrom(src *v20231201s.BackupPolicy) error - AssignPropertiesTo(dst *v20231201s.BackupPolicy) error + AssignPropertiesFrom(src *v20231101s.BackupPolicy) error + AssignPropertiesTo(dst *v20231101s.BackupPolicy) error } type augmentConversionForBackupPolicy_STATUS interface { - AssignPropertiesFrom(src *v20231201s.BackupPolicy_STATUS) error - AssignPropertiesTo(dst *v20231201s.BackupPolicy_STATUS) error + AssignPropertiesFrom(src *v20231101s.BackupPolicy_STATUS) error + AssignPropertiesTo(dst *v20231101s.BackupPolicy_STATUS) error } // Storage version of v1api20230101.BasePolicyRule @@ -992,7 +992,7 @@ type BasePolicyRule struct { } // AssignProperties_From_BasePolicyRule populates our BasePolicyRule from the provided source BasePolicyRule -func (rule *BasePolicyRule) AssignProperties_From_BasePolicyRule(source *v20231201s.BasePolicyRule) error { +func (rule *BasePolicyRule) AssignProperties_From_BasePolicyRule(source *v20231101s.BasePolicyRule) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1041,13 +1041,13 @@ func (rule *BasePolicyRule) AssignProperties_From_BasePolicyRule(source *v202312 } // AssignProperties_To_BasePolicyRule populates the provided destination BasePolicyRule from our BasePolicyRule -func (rule *BasePolicyRule) AssignProperties_To_BasePolicyRule(destination *v20231201s.BasePolicyRule) error { +func (rule *BasePolicyRule) AssignProperties_To_BasePolicyRule(destination *v20231101s.BasePolicyRule) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(rule.PropertyBag) // AzureBackup if rule.AzureBackup != nil { - var azureBackup v20231201s.AzureBackupRule + var azureBackup v20231101s.AzureBackupRule err := rule.AzureBackup.AssignProperties_To_AzureBackupRule(&azureBackup) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureBackupRule() to populate field AzureBackup") @@ -1059,7 +1059,7 @@ func (rule *BasePolicyRule) AssignProperties_To_BasePolicyRule(destination *v202 // AzureRetention if rule.AzureRetention != nil { - var azureRetention v20231201s.AzureRetentionRule + var azureRetention v20231101s.AzureRetentionRule err := rule.AzureRetention.AssignProperties_To_AzureRetentionRule(&azureRetention) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureRetentionRule() to populate field AzureRetention") @@ -1097,7 +1097,7 @@ type BasePolicyRule_STATUS struct { } // AssignProperties_From_BasePolicyRule_STATUS populates our BasePolicyRule_STATUS from the provided source BasePolicyRule_STATUS -func (rule *BasePolicyRule_STATUS) AssignProperties_From_BasePolicyRule_STATUS(source *v20231201s.BasePolicyRule_STATUS) error { +func (rule *BasePolicyRule_STATUS) AssignProperties_From_BasePolicyRule_STATUS(source *v20231101s.BasePolicyRule_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1146,13 +1146,13 @@ func (rule *BasePolicyRule_STATUS) AssignProperties_From_BasePolicyRule_STATUS(s } // AssignProperties_To_BasePolicyRule_STATUS populates the provided destination BasePolicyRule_STATUS from our BasePolicyRule_STATUS -func (rule *BasePolicyRule_STATUS) AssignProperties_To_BasePolicyRule_STATUS(destination *v20231201s.BasePolicyRule_STATUS) error { +func (rule *BasePolicyRule_STATUS) AssignProperties_To_BasePolicyRule_STATUS(destination *v20231101s.BasePolicyRule_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(rule.PropertyBag) // AzureBackup if rule.AzureBackup != nil { - var azureBackup v20231201s.AzureBackupRule_STATUS + var azureBackup v20231101s.AzureBackupRule_STATUS err := rule.AzureBackup.AssignProperties_To_AzureBackupRule_STATUS(&azureBackup) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureBackupRule_STATUS() to populate field AzureBackup") @@ -1164,7 +1164,7 @@ func (rule *BasePolicyRule_STATUS) AssignProperties_To_BasePolicyRule_STATUS(des // AzureRetention if rule.AzureRetention != nil { - var azureRetention v20231201s.AzureRetentionRule_STATUS + var azureRetention v20231101s.AzureRetentionRule_STATUS err := rule.AzureRetention.AssignProperties_To_AzureRetentionRule_STATUS(&azureRetention) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureRetentionRule_STATUS() to populate field AzureRetention") @@ -1195,13 +1195,13 @@ func (rule *BasePolicyRule_STATUS) AssignProperties_To_BasePolicyRule_STATUS(des } type augmentConversionForBasePolicyRule interface { - AssignPropertiesFrom(src *v20231201s.BasePolicyRule) error - AssignPropertiesTo(dst *v20231201s.BasePolicyRule) error + AssignPropertiesFrom(src *v20231101s.BasePolicyRule) error + AssignPropertiesTo(dst *v20231101s.BasePolicyRule) error } type augmentConversionForBasePolicyRule_STATUS interface { - AssignPropertiesFrom(src *v20231201s.BasePolicyRule_STATUS) error - AssignPropertiesTo(dst *v20231201s.BasePolicyRule_STATUS) error + AssignPropertiesFrom(src *v20231101s.BasePolicyRule_STATUS) error + AssignPropertiesTo(dst *v20231101s.BasePolicyRule_STATUS) error } // Storage version of v1api20230101.AzureBackupRule @@ -1215,7 +1215,7 @@ type AzureBackupRule struct { } // AssignProperties_From_AzureBackupRule populates our AzureBackupRule from the provided source AzureBackupRule -func (rule *AzureBackupRule) AssignProperties_From_AzureBackupRule(source *v20231201s.AzureBackupRule) error { +func (rule *AzureBackupRule) AssignProperties_From_AzureBackupRule(source *v20231101s.AzureBackupRule) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1282,13 +1282,13 @@ func (rule *AzureBackupRule) AssignProperties_From_AzureBackupRule(source *v2023 } // AssignProperties_To_AzureBackupRule populates the provided destination AzureBackupRule from our AzureBackupRule -func (rule *AzureBackupRule) AssignProperties_To_AzureBackupRule(destination *v20231201s.AzureBackupRule) error { +func (rule *AzureBackupRule) AssignProperties_To_AzureBackupRule(destination *v20231101s.AzureBackupRule) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(rule.PropertyBag) // BackupParameters if rule.BackupParameters != nil { - var backupParameter v20231201s.BackupParameters + var backupParameter v20231101s.BackupParameters err := rule.BackupParameters.AssignProperties_To_BackupParameters(&backupParameter) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupParameters() to populate field BackupParameters") @@ -1300,7 +1300,7 @@ func (rule *AzureBackupRule) AssignProperties_To_AzureBackupRule(destination *v2 // DataStore if rule.DataStore != nil { - var dataStore v20231201s.DataStoreInfoBase + var dataStore v20231101s.DataStoreInfoBase err := rule.DataStore.AssignProperties_To_DataStoreInfoBase(&dataStore) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DataStoreInfoBase() to populate field DataStore") @@ -1318,7 +1318,7 @@ func (rule *AzureBackupRule) AssignProperties_To_AzureBackupRule(destination *v2 // Trigger if rule.Trigger != nil { - var trigger v20231201s.TriggerContext + var trigger v20231101s.TriggerContext err := rule.Trigger.AssignProperties_To_TriggerContext(&trigger) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_TriggerContext() to populate field Trigger") @@ -1359,7 +1359,7 @@ type AzureBackupRule_STATUS struct { } // AssignProperties_From_AzureBackupRule_STATUS populates our AzureBackupRule_STATUS from the provided source AzureBackupRule_STATUS -func (rule *AzureBackupRule_STATUS) AssignProperties_From_AzureBackupRule_STATUS(source *v20231201s.AzureBackupRule_STATUS) error { +func (rule *AzureBackupRule_STATUS) AssignProperties_From_AzureBackupRule_STATUS(source *v20231101s.AzureBackupRule_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1426,13 +1426,13 @@ func (rule *AzureBackupRule_STATUS) AssignProperties_From_AzureBackupRule_STATUS } // AssignProperties_To_AzureBackupRule_STATUS populates the provided destination AzureBackupRule_STATUS from our AzureBackupRule_STATUS -func (rule *AzureBackupRule_STATUS) AssignProperties_To_AzureBackupRule_STATUS(destination *v20231201s.AzureBackupRule_STATUS) error { +func (rule *AzureBackupRule_STATUS) AssignProperties_To_AzureBackupRule_STATUS(destination *v20231101s.AzureBackupRule_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(rule.PropertyBag) // BackupParameters if rule.BackupParameters != nil { - var backupParameter v20231201s.BackupParameters_STATUS + var backupParameter v20231101s.BackupParameters_STATUS err := rule.BackupParameters.AssignProperties_To_BackupParameters_STATUS(&backupParameter) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupParameters_STATUS() to populate field BackupParameters") @@ -1444,7 +1444,7 @@ func (rule *AzureBackupRule_STATUS) AssignProperties_To_AzureBackupRule_STATUS(d // DataStore if rule.DataStore != nil { - var dataStore v20231201s.DataStoreInfoBase_STATUS + var dataStore v20231101s.DataStoreInfoBase_STATUS err := rule.DataStore.AssignProperties_To_DataStoreInfoBase_STATUS(&dataStore) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DataStoreInfoBase_STATUS() to populate field DataStore") @@ -1462,7 +1462,7 @@ func (rule *AzureBackupRule_STATUS) AssignProperties_To_AzureBackupRule_STATUS(d // Trigger if rule.Trigger != nil { - var trigger v20231201s.TriggerContext_STATUS + var trigger v20231101s.TriggerContext_STATUS err := rule.Trigger.AssignProperties_To_TriggerContext_STATUS(&trigger) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_TriggerContext_STATUS() to populate field Trigger") @@ -1502,7 +1502,7 @@ type AzureRetentionRule struct { } // AssignProperties_From_AzureRetentionRule populates our AzureRetentionRule from the provided source AzureRetentionRule -func (rule *AzureRetentionRule) AssignProperties_From_AzureRetentionRule(source *v20231201s.AzureRetentionRule) error { +func (rule *AzureRetentionRule) AssignProperties_From_AzureRetentionRule(source *v20231101s.AzureRetentionRule) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1559,7 +1559,7 @@ func (rule *AzureRetentionRule) AssignProperties_From_AzureRetentionRule(source } // AssignProperties_To_AzureRetentionRule populates the provided destination AzureRetentionRule from our AzureRetentionRule -func (rule *AzureRetentionRule) AssignProperties_To_AzureRetentionRule(destination *v20231201s.AzureRetentionRule) error { +func (rule *AzureRetentionRule) AssignProperties_To_AzureRetentionRule(destination *v20231101s.AzureRetentionRule) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(rule.PropertyBag) @@ -1573,11 +1573,11 @@ func (rule *AzureRetentionRule) AssignProperties_To_AzureRetentionRule(destinati // Lifecycles if rule.Lifecycles != nil { - lifecycleList := make([]v20231201s.SourceLifeCycle, len(rule.Lifecycles)) + lifecycleList := make([]v20231101s.SourceLifeCycle, len(rule.Lifecycles)) for lifecycleIndex, lifecycleItem := range rule.Lifecycles { // Shadow the loop variable to avoid aliasing lifecycleItem := lifecycleItem - var lifecycle v20231201s.SourceLifeCycle + var lifecycle v20231101s.SourceLifeCycle err := lifecycleItem.AssignProperties_To_SourceLifeCycle(&lifecycle) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SourceLifeCycle() to populate field Lifecycles") @@ -1625,7 +1625,7 @@ type AzureRetentionRule_STATUS struct { } // AssignProperties_From_AzureRetentionRule_STATUS populates our AzureRetentionRule_STATUS from the provided source AzureRetentionRule_STATUS -func (rule *AzureRetentionRule_STATUS) AssignProperties_From_AzureRetentionRule_STATUS(source *v20231201s.AzureRetentionRule_STATUS) error { +func (rule *AzureRetentionRule_STATUS) AssignProperties_From_AzureRetentionRule_STATUS(source *v20231101s.AzureRetentionRule_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1682,7 +1682,7 @@ func (rule *AzureRetentionRule_STATUS) AssignProperties_From_AzureRetentionRule_ } // AssignProperties_To_AzureRetentionRule_STATUS populates the provided destination AzureRetentionRule_STATUS from our AzureRetentionRule_STATUS -func (rule *AzureRetentionRule_STATUS) AssignProperties_To_AzureRetentionRule_STATUS(destination *v20231201s.AzureRetentionRule_STATUS) error { +func (rule *AzureRetentionRule_STATUS) AssignProperties_To_AzureRetentionRule_STATUS(destination *v20231101s.AzureRetentionRule_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(rule.PropertyBag) @@ -1696,11 +1696,11 @@ func (rule *AzureRetentionRule_STATUS) AssignProperties_To_AzureRetentionRule_ST // Lifecycles if rule.Lifecycles != nil { - lifecycleList := make([]v20231201s.SourceLifeCycle_STATUS, len(rule.Lifecycles)) + lifecycleList := make([]v20231101s.SourceLifeCycle_STATUS, len(rule.Lifecycles)) for lifecycleIndex, lifecycleItem := range rule.Lifecycles { // Shadow the loop variable to avoid aliasing lifecycleItem := lifecycleItem - var lifecycle v20231201s.SourceLifeCycle_STATUS + var lifecycle v20231101s.SourceLifeCycle_STATUS err := lifecycleItem.AssignProperties_To_SourceLifeCycle_STATUS(&lifecycle) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SourceLifeCycle_STATUS() to populate field Lifecycles") @@ -1739,23 +1739,23 @@ func (rule *AzureRetentionRule_STATUS) AssignProperties_To_AzureRetentionRule_ST } type augmentConversionForAzureBackupRule interface { - AssignPropertiesFrom(src *v20231201s.AzureBackupRule) error - AssignPropertiesTo(dst *v20231201s.AzureBackupRule) error + AssignPropertiesFrom(src *v20231101s.AzureBackupRule) error + AssignPropertiesTo(dst *v20231101s.AzureBackupRule) error } type augmentConversionForAzureBackupRule_STATUS interface { - AssignPropertiesFrom(src *v20231201s.AzureBackupRule_STATUS) error - AssignPropertiesTo(dst *v20231201s.AzureBackupRule_STATUS) error + AssignPropertiesFrom(src *v20231101s.AzureBackupRule_STATUS) error + AssignPropertiesTo(dst *v20231101s.AzureBackupRule_STATUS) error } type augmentConversionForAzureRetentionRule interface { - AssignPropertiesFrom(src *v20231201s.AzureRetentionRule) error - AssignPropertiesTo(dst *v20231201s.AzureRetentionRule) error + AssignPropertiesFrom(src *v20231101s.AzureRetentionRule) error + AssignPropertiesTo(dst *v20231101s.AzureRetentionRule) error } type augmentConversionForAzureRetentionRule_STATUS interface { - AssignPropertiesFrom(src *v20231201s.AzureRetentionRule_STATUS) error - AssignPropertiesTo(dst *v20231201s.AzureRetentionRule_STATUS) error + AssignPropertiesFrom(src *v20231101s.AzureRetentionRule_STATUS) error + AssignPropertiesTo(dst *v20231101s.AzureRetentionRule_STATUS) error } // Storage version of v1api20230101.BackupParameters @@ -1765,7 +1765,7 @@ type BackupParameters struct { } // AssignProperties_From_BackupParameters populates our BackupParameters from the provided source BackupParameters -func (parameters *BackupParameters) AssignProperties_From_BackupParameters(source *v20231201s.BackupParameters) error { +func (parameters *BackupParameters) AssignProperties_From_BackupParameters(source *v20231101s.BackupParameters) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1802,13 +1802,13 @@ func (parameters *BackupParameters) AssignProperties_From_BackupParameters(sourc } // AssignProperties_To_BackupParameters populates the provided destination BackupParameters from our BackupParameters -func (parameters *BackupParameters) AssignProperties_To_BackupParameters(destination *v20231201s.BackupParameters) error { +func (parameters *BackupParameters) AssignProperties_To_BackupParameters(destination *v20231101s.BackupParameters) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(parameters.PropertyBag) // AzureBackupParams if parameters.AzureBackupParams != nil { - var azureBackupParam v20231201s.AzureBackupParams + var azureBackupParam v20231101s.AzureBackupParams err := parameters.AzureBackupParams.AssignProperties_To_AzureBackupParams(&azureBackupParam) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureBackupParams() to populate field AzureBackupParams") @@ -1845,7 +1845,7 @@ type BackupParameters_STATUS struct { } // AssignProperties_From_BackupParameters_STATUS populates our BackupParameters_STATUS from the provided source BackupParameters_STATUS -func (parameters *BackupParameters_STATUS) AssignProperties_From_BackupParameters_STATUS(source *v20231201s.BackupParameters_STATUS) error { +func (parameters *BackupParameters_STATUS) AssignProperties_From_BackupParameters_STATUS(source *v20231101s.BackupParameters_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1882,13 +1882,13 @@ func (parameters *BackupParameters_STATUS) AssignProperties_From_BackupParameter } // AssignProperties_To_BackupParameters_STATUS populates the provided destination BackupParameters_STATUS from our BackupParameters_STATUS -func (parameters *BackupParameters_STATUS) AssignProperties_To_BackupParameters_STATUS(destination *v20231201s.BackupParameters_STATUS) error { +func (parameters *BackupParameters_STATUS) AssignProperties_To_BackupParameters_STATUS(destination *v20231101s.BackupParameters_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(parameters.PropertyBag) // AzureBackupParams if parameters.AzureBackupParams != nil { - var azureBackupParam v20231201s.AzureBackupParams_STATUS + var azureBackupParam v20231101s.AzureBackupParams_STATUS err := parameters.AzureBackupParams.AssignProperties_To_AzureBackupParams_STATUS(&azureBackupParam) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureBackupParams_STATUS() to populate field AzureBackupParams") @@ -1927,7 +1927,7 @@ type DataStoreInfoBase struct { } // AssignProperties_From_DataStoreInfoBase populates our DataStoreInfoBase from the provided source DataStoreInfoBase -func (base *DataStoreInfoBase) AssignProperties_From_DataStoreInfoBase(source *v20231201s.DataStoreInfoBase) error { +func (base *DataStoreInfoBase) AssignProperties_From_DataStoreInfoBase(source *v20231101s.DataStoreInfoBase) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -1958,7 +1958,7 @@ func (base *DataStoreInfoBase) AssignProperties_From_DataStoreInfoBase(source *v } // AssignProperties_To_DataStoreInfoBase populates the provided destination DataStoreInfoBase from our DataStoreInfoBase -func (base *DataStoreInfoBase) AssignProperties_To_DataStoreInfoBase(destination *v20231201s.DataStoreInfoBase) error { +func (base *DataStoreInfoBase) AssignProperties_To_DataStoreInfoBase(destination *v20231101s.DataStoreInfoBase) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(base.PropertyBag) @@ -1997,7 +1997,7 @@ type DataStoreInfoBase_STATUS struct { } // AssignProperties_From_DataStoreInfoBase_STATUS populates our DataStoreInfoBase_STATUS from the provided source DataStoreInfoBase_STATUS -func (base *DataStoreInfoBase_STATUS) AssignProperties_From_DataStoreInfoBase_STATUS(source *v20231201s.DataStoreInfoBase_STATUS) error { +func (base *DataStoreInfoBase_STATUS) AssignProperties_From_DataStoreInfoBase_STATUS(source *v20231101s.DataStoreInfoBase_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2028,7 +2028,7 @@ func (base *DataStoreInfoBase_STATUS) AssignProperties_From_DataStoreInfoBase_ST } // AssignProperties_To_DataStoreInfoBase_STATUS populates the provided destination DataStoreInfoBase_STATUS from our DataStoreInfoBase_STATUS -func (base *DataStoreInfoBase_STATUS) AssignProperties_To_DataStoreInfoBase_STATUS(destination *v20231201s.DataStoreInfoBase_STATUS) error { +func (base *DataStoreInfoBase_STATUS) AssignProperties_To_DataStoreInfoBase_STATUS(destination *v20231101s.DataStoreInfoBase_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(base.PropertyBag) @@ -2068,7 +2068,7 @@ type SourceLifeCycle struct { } // AssignProperties_From_SourceLifeCycle populates our SourceLifeCycle from the provided source SourceLifeCycle -func (cycle *SourceLifeCycle) AssignProperties_From_SourceLifeCycle(source *v20231201s.SourceLifeCycle) error { +func (cycle *SourceLifeCycle) AssignProperties_From_SourceLifeCycle(source *v20231101s.SourceLifeCycle) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2135,13 +2135,13 @@ func (cycle *SourceLifeCycle) AssignProperties_From_SourceLifeCycle(source *v202 } // AssignProperties_To_SourceLifeCycle populates the provided destination SourceLifeCycle from our SourceLifeCycle -func (cycle *SourceLifeCycle) AssignProperties_To_SourceLifeCycle(destination *v20231201s.SourceLifeCycle) error { +func (cycle *SourceLifeCycle) AssignProperties_To_SourceLifeCycle(destination *v20231101s.SourceLifeCycle) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(cycle.PropertyBag) // DeleteAfter if cycle.DeleteAfter != nil { - var deleteAfter v20231201s.DeleteOption + var deleteAfter v20231101s.DeleteOption err := cycle.DeleteAfter.AssignProperties_To_DeleteOption(&deleteAfter) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DeleteOption() to populate field DeleteAfter") @@ -2153,7 +2153,7 @@ func (cycle *SourceLifeCycle) AssignProperties_To_SourceLifeCycle(destination *v // SourceDataStore if cycle.SourceDataStore != nil { - var sourceDataStore v20231201s.DataStoreInfoBase + var sourceDataStore v20231101s.DataStoreInfoBase err := cycle.SourceDataStore.AssignProperties_To_DataStoreInfoBase(&sourceDataStore) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DataStoreInfoBase() to populate field SourceDataStore") @@ -2165,11 +2165,11 @@ func (cycle *SourceLifeCycle) AssignProperties_To_SourceLifeCycle(destination *v // TargetDataStoreCopySettings if cycle.TargetDataStoreCopySettings != nil { - targetDataStoreCopySettingList := make([]v20231201s.TargetCopySetting, len(cycle.TargetDataStoreCopySettings)) + targetDataStoreCopySettingList := make([]v20231101s.TargetCopySetting, len(cycle.TargetDataStoreCopySettings)) for targetDataStoreCopySettingIndex, targetDataStoreCopySettingItem := range cycle.TargetDataStoreCopySettings { // Shadow the loop variable to avoid aliasing targetDataStoreCopySettingItem := targetDataStoreCopySettingItem - var targetDataStoreCopySetting v20231201s.TargetCopySetting + var targetDataStoreCopySetting v20231101s.TargetCopySetting err := targetDataStoreCopySettingItem.AssignProperties_To_TargetCopySetting(&targetDataStoreCopySetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_TargetCopySetting() to populate field TargetDataStoreCopySettings") @@ -2211,7 +2211,7 @@ type SourceLifeCycle_STATUS struct { } // AssignProperties_From_SourceLifeCycle_STATUS populates our SourceLifeCycle_STATUS from the provided source SourceLifeCycle_STATUS -func (cycle *SourceLifeCycle_STATUS) AssignProperties_From_SourceLifeCycle_STATUS(source *v20231201s.SourceLifeCycle_STATUS) error { +func (cycle *SourceLifeCycle_STATUS) AssignProperties_From_SourceLifeCycle_STATUS(source *v20231101s.SourceLifeCycle_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2278,13 +2278,13 @@ func (cycle *SourceLifeCycle_STATUS) AssignProperties_From_SourceLifeCycle_STATU } // AssignProperties_To_SourceLifeCycle_STATUS populates the provided destination SourceLifeCycle_STATUS from our SourceLifeCycle_STATUS -func (cycle *SourceLifeCycle_STATUS) AssignProperties_To_SourceLifeCycle_STATUS(destination *v20231201s.SourceLifeCycle_STATUS) error { +func (cycle *SourceLifeCycle_STATUS) AssignProperties_To_SourceLifeCycle_STATUS(destination *v20231101s.SourceLifeCycle_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(cycle.PropertyBag) // DeleteAfter if cycle.DeleteAfter != nil { - var deleteAfter v20231201s.DeleteOption_STATUS + var deleteAfter v20231101s.DeleteOption_STATUS err := cycle.DeleteAfter.AssignProperties_To_DeleteOption_STATUS(&deleteAfter) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DeleteOption_STATUS() to populate field DeleteAfter") @@ -2296,7 +2296,7 @@ func (cycle *SourceLifeCycle_STATUS) AssignProperties_To_SourceLifeCycle_STATUS( // SourceDataStore if cycle.SourceDataStore != nil { - var sourceDataStore v20231201s.DataStoreInfoBase_STATUS + var sourceDataStore v20231101s.DataStoreInfoBase_STATUS err := cycle.SourceDataStore.AssignProperties_To_DataStoreInfoBase_STATUS(&sourceDataStore) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DataStoreInfoBase_STATUS() to populate field SourceDataStore") @@ -2308,11 +2308,11 @@ func (cycle *SourceLifeCycle_STATUS) AssignProperties_To_SourceLifeCycle_STATUS( // TargetDataStoreCopySettings if cycle.TargetDataStoreCopySettings != nil { - targetDataStoreCopySettingList := make([]v20231201s.TargetCopySetting_STATUS, len(cycle.TargetDataStoreCopySettings)) + targetDataStoreCopySettingList := make([]v20231101s.TargetCopySetting_STATUS, len(cycle.TargetDataStoreCopySettings)) for targetDataStoreCopySettingIndex, targetDataStoreCopySettingItem := range cycle.TargetDataStoreCopySettings { // Shadow the loop variable to avoid aliasing targetDataStoreCopySettingItem := targetDataStoreCopySettingItem - var targetDataStoreCopySetting v20231201s.TargetCopySetting_STATUS + var targetDataStoreCopySetting v20231101s.TargetCopySetting_STATUS err := targetDataStoreCopySettingItem.AssignProperties_To_TargetCopySetting_STATUS(&targetDataStoreCopySetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_TargetCopySetting_STATUS() to populate field TargetDataStoreCopySettings") @@ -2352,7 +2352,7 @@ type TriggerContext struct { } // AssignProperties_From_TriggerContext populates our TriggerContext from the provided source TriggerContext -func (context *TriggerContext) AssignProperties_From_TriggerContext(source *v20231201s.TriggerContext) error { +func (context *TriggerContext) AssignProperties_From_TriggerContext(source *v20231101s.TriggerContext) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2401,13 +2401,13 @@ func (context *TriggerContext) AssignProperties_From_TriggerContext(source *v202 } // AssignProperties_To_TriggerContext populates the provided destination TriggerContext from our TriggerContext -func (context *TriggerContext) AssignProperties_To_TriggerContext(destination *v20231201s.TriggerContext) error { +func (context *TriggerContext) AssignProperties_To_TriggerContext(destination *v20231101s.TriggerContext) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(context.PropertyBag) // Adhoc if context.Adhoc != nil { - var adhoc v20231201s.AdhocBasedTriggerContext + var adhoc v20231101s.AdhocBasedTriggerContext err := context.Adhoc.AssignProperties_To_AdhocBasedTriggerContext(&adhoc) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AdhocBasedTriggerContext() to populate field Adhoc") @@ -2419,7 +2419,7 @@ func (context *TriggerContext) AssignProperties_To_TriggerContext(destination *v // Schedule if context.Schedule != nil { - var schedule v20231201s.ScheduleBasedTriggerContext + var schedule v20231101s.ScheduleBasedTriggerContext err := context.Schedule.AssignProperties_To_ScheduleBasedTriggerContext(&schedule) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ScheduleBasedTriggerContext() to populate field Schedule") @@ -2457,7 +2457,7 @@ type TriggerContext_STATUS struct { } // AssignProperties_From_TriggerContext_STATUS populates our TriggerContext_STATUS from the provided source TriggerContext_STATUS -func (context *TriggerContext_STATUS) AssignProperties_From_TriggerContext_STATUS(source *v20231201s.TriggerContext_STATUS) error { +func (context *TriggerContext_STATUS) AssignProperties_From_TriggerContext_STATUS(source *v20231101s.TriggerContext_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2506,13 +2506,13 @@ func (context *TriggerContext_STATUS) AssignProperties_From_TriggerContext_STATU } // AssignProperties_To_TriggerContext_STATUS populates the provided destination TriggerContext_STATUS from our TriggerContext_STATUS -func (context *TriggerContext_STATUS) AssignProperties_To_TriggerContext_STATUS(destination *v20231201s.TriggerContext_STATUS) error { +func (context *TriggerContext_STATUS) AssignProperties_To_TriggerContext_STATUS(destination *v20231101s.TriggerContext_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(context.PropertyBag) // Adhoc if context.Adhoc != nil { - var adhoc v20231201s.AdhocBasedTriggerContext_STATUS + var adhoc v20231101s.AdhocBasedTriggerContext_STATUS err := context.Adhoc.AssignProperties_To_AdhocBasedTriggerContext_STATUS(&adhoc) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AdhocBasedTriggerContext_STATUS() to populate field Adhoc") @@ -2524,7 +2524,7 @@ func (context *TriggerContext_STATUS) AssignProperties_To_TriggerContext_STATUS( // Schedule if context.Schedule != nil { - var schedule v20231201s.ScheduleBasedTriggerContext_STATUS + var schedule v20231101s.ScheduleBasedTriggerContext_STATUS err := context.Schedule.AssignProperties_To_ScheduleBasedTriggerContext_STATUS(&schedule) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ScheduleBasedTriggerContext_STATUS() to populate field Schedule") @@ -2562,7 +2562,7 @@ type AdhocBasedTriggerContext struct { } // AssignProperties_From_AdhocBasedTriggerContext populates our AdhocBasedTriggerContext from the provided source AdhocBasedTriggerContext -func (context *AdhocBasedTriggerContext) AssignProperties_From_AdhocBasedTriggerContext(source *v20231201s.AdhocBasedTriggerContext) error { +func (context *AdhocBasedTriggerContext) AssignProperties_From_AdhocBasedTriggerContext(source *v20231101s.AdhocBasedTriggerContext) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2602,7 +2602,7 @@ func (context *AdhocBasedTriggerContext) AssignProperties_From_AdhocBasedTrigger } // AssignProperties_To_AdhocBasedTriggerContext populates the provided destination AdhocBasedTriggerContext from our AdhocBasedTriggerContext -func (context *AdhocBasedTriggerContext) AssignProperties_To_AdhocBasedTriggerContext(destination *v20231201s.AdhocBasedTriggerContext) error { +func (context *AdhocBasedTriggerContext) AssignProperties_To_AdhocBasedTriggerContext(destination *v20231101s.AdhocBasedTriggerContext) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(context.PropertyBag) @@ -2611,7 +2611,7 @@ func (context *AdhocBasedTriggerContext) AssignProperties_To_AdhocBasedTriggerCo // TaggingCriteria if context.TaggingCriteria != nil { - var taggingCriterion v20231201s.AdhocBasedTaggingCriteria + var taggingCriterion v20231101s.AdhocBasedTaggingCriteria err := context.TaggingCriteria.AssignProperties_To_AdhocBasedTaggingCriteria(&taggingCriterion) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AdhocBasedTaggingCriteria() to populate field TaggingCriteria") @@ -2649,7 +2649,7 @@ type AdhocBasedTriggerContext_STATUS struct { } // AssignProperties_From_AdhocBasedTriggerContext_STATUS populates our AdhocBasedTriggerContext_STATUS from the provided source AdhocBasedTriggerContext_STATUS -func (context *AdhocBasedTriggerContext_STATUS) AssignProperties_From_AdhocBasedTriggerContext_STATUS(source *v20231201s.AdhocBasedTriggerContext_STATUS) error { +func (context *AdhocBasedTriggerContext_STATUS) AssignProperties_From_AdhocBasedTriggerContext_STATUS(source *v20231101s.AdhocBasedTriggerContext_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2689,7 +2689,7 @@ func (context *AdhocBasedTriggerContext_STATUS) AssignProperties_From_AdhocBased } // AssignProperties_To_AdhocBasedTriggerContext_STATUS populates the provided destination AdhocBasedTriggerContext_STATUS from our AdhocBasedTriggerContext_STATUS -func (context *AdhocBasedTriggerContext_STATUS) AssignProperties_To_AdhocBasedTriggerContext_STATUS(destination *v20231201s.AdhocBasedTriggerContext_STATUS) error { +func (context *AdhocBasedTriggerContext_STATUS) AssignProperties_To_AdhocBasedTriggerContext_STATUS(destination *v20231101s.AdhocBasedTriggerContext_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(context.PropertyBag) @@ -2698,7 +2698,7 @@ func (context *AdhocBasedTriggerContext_STATUS) AssignProperties_To_AdhocBasedTr // TaggingCriteria if context.TaggingCriteria != nil { - var taggingCriterion v20231201s.AdhocBasedTaggingCriteria_STATUS + var taggingCriterion v20231101s.AdhocBasedTaggingCriteria_STATUS err := context.TaggingCriteria.AssignProperties_To_AdhocBasedTaggingCriteria_STATUS(&taggingCriterion) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AdhocBasedTaggingCriteria_STATUS() to populate field TaggingCriteria") @@ -2729,43 +2729,43 @@ func (context *AdhocBasedTriggerContext_STATUS) AssignProperties_To_AdhocBasedTr } type augmentConversionForBackupParameters interface { - AssignPropertiesFrom(src *v20231201s.BackupParameters) error - AssignPropertiesTo(dst *v20231201s.BackupParameters) error + AssignPropertiesFrom(src *v20231101s.BackupParameters) error + AssignPropertiesTo(dst *v20231101s.BackupParameters) error } type augmentConversionForBackupParameters_STATUS interface { - AssignPropertiesFrom(src *v20231201s.BackupParameters_STATUS) error - AssignPropertiesTo(dst *v20231201s.BackupParameters_STATUS) error + AssignPropertiesFrom(src *v20231101s.BackupParameters_STATUS) error + AssignPropertiesTo(dst *v20231101s.BackupParameters_STATUS) error } type augmentConversionForDataStoreInfoBase interface { - AssignPropertiesFrom(src *v20231201s.DataStoreInfoBase) error - AssignPropertiesTo(dst *v20231201s.DataStoreInfoBase) error + AssignPropertiesFrom(src *v20231101s.DataStoreInfoBase) error + AssignPropertiesTo(dst *v20231101s.DataStoreInfoBase) error } type augmentConversionForDataStoreInfoBase_STATUS interface { - AssignPropertiesFrom(src *v20231201s.DataStoreInfoBase_STATUS) error - AssignPropertiesTo(dst *v20231201s.DataStoreInfoBase_STATUS) error + AssignPropertiesFrom(src *v20231101s.DataStoreInfoBase_STATUS) error + AssignPropertiesTo(dst *v20231101s.DataStoreInfoBase_STATUS) error } type augmentConversionForSourceLifeCycle interface { - AssignPropertiesFrom(src *v20231201s.SourceLifeCycle) error - AssignPropertiesTo(dst *v20231201s.SourceLifeCycle) error + AssignPropertiesFrom(src *v20231101s.SourceLifeCycle) error + AssignPropertiesTo(dst *v20231101s.SourceLifeCycle) error } type augmentConversionForSourceLifeCycle_STATUS interface { - AssignPropertiesFrom(src *v20231201s.SourceLifeCycle_STATUS) error - AssignPropertiesTo(dst *v20231201s.SourceLifeCycle_STATUS) error + AssignPropertiesFrom(src *v20231101s.SourceLifeCycle_STATUS) error + AssignPropertiesTo(dst *v20231101s.SourceLifeCycle_STATUS) error } type augmentConversionForTriggerContext interface { - AssignPropertiesFrom(src *v20231201s.TriggerContext) error - AssignPropertiesTo(dst *v20231201s.TriggerContext) error + AssignPropertiesFrom(src *v20231101s.TriggerContext) error + AssignPropertiesTo(dst *v20231101s.TriggerContext) error } type augmentConversionForTriggerContext_STATUS interface { - AssignPropertiesFrom(src *v20231201s.TriggerContext_STATUS) error - AssignPropertiesTo(dst *v20231201s.TriggerContext_STATUS) error + AssignPropertiesFrom(src *v20231101s.TriggerContext_STATUS) error + AssignPropertiesTo(dst *v20231101s.TriggerContext_STATUS) error } // Storage version of v1api20230101.AzureBackupParams @@ -2776,7 +2776,7 @@ type AzureBackupParams struct { } // AssignProperties_From_AzureBackupParams populates our AzureBackupParams from the provided source AzureBackupParams -func (params *AzureBackupParams) AssignProperties_From_AzureBackupParams(source *v20231201s.AzureBackupParams) error { +func (params *AzureBackupParams) AssignProperties_From_AzureBackupParams(source *v20231101s.AzureBackupParams) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2807,7 +2807,7 @@ func (params *AzureBackupParams) AssignProperties_From_AzureBackupParams(source } // AssignProperties_To_AzureBackupParams populates the provided destination AzureBackupParams from our AzureBackupParams -func (params *AzureBackupParams) AssignProperties_To_AzureBackupParams(destination *v20231201s.AzureBackupParams) error { +func (params *AzureBackupParams) AssignProperties_To_AzureBackupParams(destination *v20231101s.AzureBackupParams) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(params.PropertyBag) @@ -2845,7 +2845,7 @@ type AzureBackupParams_STATUS struct { } // AssignProperties_From_AzureBackupParams_STATUS populates our AzureBackupParams_STATUS from the provided source AzureBackupParams_STATUS -func (params *AzureBackupParams_STATUS) AssignProperties_From_AzureBackupParams_STATUS(source *v20231201s.AzureBackupParams_STATUS) error { +func (params *AzureBackupParams_STATUS) AssignProperties_From_AzureBackupParams_STATUS(source *v20231101s.AzureBackupParams_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2876,7 +2876,7 @@ func (params *AzureBackupParams_STATUS) AssignProperties_From_AzureBackupParams_ } // AssignProperties_To_AzureBackupParams_STATUS populates the provided destination AzureBackupParams_STATUS from our AzureBackupParams_STATUS -func (params *AzureBackupParams_STATUS) AssignProperties_To_AzureBackupParams_STATUS(destination *v20231201s.AzureBackupParams_STATUS) error { +func (params *AzureBackupParams_STATUS) AssignProperties_To_AzureBackupParams_STATUS(destination *v20231101s.AzureBackupParams_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(params.PropertyBag) @@ -2913,7 +2913,7 @@ type DeleteOption struct { } // AssignProperties_From_DeleteOption populates our DeleteOption from the provided source DeleteOption -func (option *DeleteOption) AssignProperties_From_DeleteOption(source *v20231201s.DeleteOption) error { +func (option *DeleteOption) AssignProperties_From_DeleteOption(source *v20231101s.DeleteOption) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -2950,13 +2950,13 @@ func (option *DeleteOption) AssignProperties_From_DeleteOption(source *v20231201 } // AssignProperties_To_DeleteOption populates the provided destination DeleteOption from our DeleteOption -func (option *DeleteOption) AssignProperties_To_DeleteOption(destination *v20231201s.DeleteOption) error { +func (option *DeleteOption) AssignProperties_To_DeleteOption(destination *v20231101s.DeleteOption) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(option.PropertyBag) // AbsoluteDeleteOption if option.AbsoluteDeleteOption != nil { - var absoluteDeleteOption v20231201s.AbsoluteDeleteOption + var absoluteDeleteOption v20231101s.AbsoluteDeleteOption err := option.AbsoluteDeleteOption.AssignProperties_To_AbsoluteDeleteOption(&absoluteDeleteOption) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AbsoluteDeleteOption() to populate field AbsoluteDeleteOption") @@ -2993,7 +2993,7 @@ type DeleteOption_STATUS struct { } // AssignProperties_From_DeleteOption_STATUS populates our DeleteOption_STATUS from the provided source DeleteOption_STATUS -func (option *DeleteOption_STATUS) AssignProperties_From_DeleteOption_STATUS(source *v20231201s.DeleteOption_STATUS) error { +func (option *DeleteOption_STATUS) AssignProperties_From_DeleteOption_STATUS(source *v20231101s.DeleteOption_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -3030,13 +3030,13 @@ func (option *DeleteOption_STATUS) AssignProperties_From_DeleteOption_STATUS(sou } // AssignProperties_To_DeleteOption_STATUS populates the provided destination DeleteOption_STATUS from our DeleteOption_STATUS -func (option *DeleteOption_STATUS) AssignProperties_To_DeleteOption_STATUS(destination *v20231201s.DeleteOption_STATUS) error { +func (option *DeleteOption_STATUS) AssignProperties_To_DeleteOption_STATUS(destination *v20231101s.DeleteOption_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(option.PropertyBag) // AbsoluteDeleteOption if option.AbsoluteDeleteOption != nil { - var absoluteDeleteOption v20231201s.AbsoluteDeleteOption_STATUS + var absoluteDeleteOption v20231101s.AbsoluteDeleteOption_STATUS err := option.AbsoluteDeleteOption.AssignProperties_To_AbsoluteDeleteOption_STATUS(&absoluteDeleteOption) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AbsoluteDeleteOption_STATUS() to populate field AbsoluteDeleteOption") @@ -3075,7 +3075,7 @@ type ScheduleBasedTriggerContext struct { } // AssignProperties_From_ScheduleBasedTriggerContext populates our ScheduleBasedTriggerContext from the provided source ScheduleBasedTriggerContext -func (context *ScheduleBasedTriggerContext) AssignProperties_From_ScheduleBasedTriggerContext(source *v20231201s.ScheduleBasedTriggerContext) error { +func (context *ScheduleBasedTriggerContext) AssignProperties_From_ScheduleBasedTriggerContext(source *v20231101s.ScheduleBasedTriggerContext) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -3133,7 +3133,7 @@ func (context *ScheduleBasedTriggerContext) AssignProperties_From_ScheduleBasedT } // AssignProperties_To_ScheduleBasedTriggerContext populates the provided destination ScheduleBasedTriggerContext from our ScheduleBasedTriggerContext -func (context *ScheduleBasedTriggerContext) AssignProperties_To_ScheduleBasedTriggerContext(destination *v20231201s.ScheduleBasedTriggerContext) error { +func (context *ScheduleBasedTriggerContext) AssignProperties_To_ScheduleBasedTriggerContext(destination *v20231101s.ScheduleBasedTriggerContext) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(context.PropertyBag) @@ -3142,7 +3142,7 @@ func (context *ScheduleBasedTriggerContext) AssignProperties_To_ScheduleBasedTri // Schedule if context.Schedule != nil { - var schedule v20231201s.BackupSchedule + var schedule v20231101s.BackupSchedule err := context.Schedule.AssignProperties_To_BackupSchedule(&schedule) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupSchedule() to populate field Schedule") @@ -3154,11 +3154,11 @@ func (context *ScheduleBasedTriggerContext) AssignProperties_To_ScheduleBasedTri // TaggingCriteria if context.TaggingCriteria != nil { - taggingCriterionList := make([]v20231201s.TaggingCriteria, len(context.TaggingCriteria)) + taggingCriterionList := make([]v20231101s.TaggingCriteria, len(context.TaggingCriteria)) for taggingCriterionIndex, taggingCriterionItem := range context.TaggingCriteria { // Shadow the loop variable to avoid aliasing taggingCriterionItem := taggingCriterionItem - var taggingCriterion v20231201s.TaggingCriteria + var taggingCriterion v20231101s.TaggingCriteria err := taggingCriterionItem.AssignProperties_To_TaggingCriteria(&taggingCriterion) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_TaggingCriteria() to populate field TaggingCriteria") @@ -3199,7 +3199,7 @@ type ScheduleBasedTriggerContext_STATUS struct { } // AssignProperties_From_ScheduleBasedTriggerContext_STATUS populates our ScheduleBasedTriggerContext_STATUS from the provided source ScheduleBasedTriggerContext_STATUS -func (context *ScheduleBasedTriggerContext_STATUS) AssignProperties_From_ScheduleBasedTriggerContext_STATUS(source *v20231201s.ScheduleBasedTriggerContext_STATUS) error { +func (context *ScheduleBasedTriggerContext_STATUS) AssignProperties_From_ScheduleBasedTriggerContext_STATUS(source *v20231101s.ScheduleBasedTriggerContext_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -3257,7 +3257,7 @@ func (context *ScheduleBasedTriggerContext_STATUS) AssignProperties_From_Schedul } // AssignProperties_To_ScheduleBasedTriggerContext_STATUS populates the provided destination ScheduleBasedTriggerContext_STATUS from our ScheduleBasedTriggerContext_STATUS -func (context *ScheduleBasedTriggerContext_STATUS) AssignProperties_To_ScheduleBasedTriggerContext_STATUS(destination *v20231201s.ScheduleBasedTriggerContext_STATUS) error { +func (context *ScheduleBasedTriggerContext_STATUS) AssignProperties_To_ScheduleBasedTriggerContext_STATUS(destination *v20231101s.ScheduleBasedTriggerContext_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(context.PropertyBag) @@ -3266,7 +3266,7 @@ func (context *ScheduleBasedTriggerContext_STATUS) AssignProperties_To_ScheduleB // Schedule if context.Schedule != nil { - var schedule v20231201s.BackupSchedule_STATUS + var schedule v20231101s.BackupSchedule_STATUS err := context.Schedule.AssignProperties_To_BackupSchedule_STATUS(&schedule) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupSchedule_STATUS() to populate field Schedule") @@ -3278,11 +3278,11 @@ func (context *ScheduleBasedTriggerContext_STATUS) AssignProperties_To_ScheduleB // TaggingCriteria if context.TaggingCriteria != nil { - taggingCriterionList := make([]v20231201s.TaggingCriteria_STATUS, len(context.TaggingCriteria)) + taggingCriterionList := make([]v20231101s.TaggingCriteria_STATUS, len(context.TaggingCriteria)) for taggingCriterionIndex, taggingCriterionItem := range context.TaggingCriteria { // Shadow the loop variable to avoid aliasing taggingCriterionItem := taggingCriterionItem - var taggingCriterion v20231201s.TaggingCriteria_STATUS + var taggingCriterion v20231101s.TaggingCriteria_STATUS err := taggingCriterionItem.AssignProperties_To_TaggingCriteria_STATUS(&taggingCriterion) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_TaggingCriteria_STATUS() to populate field TaggingCriteria") @@ -3323,7 +3323,7 @@ type TargetCopySetting struct { } // AssignProperties_From_TargetCopySetting populates our TargetCopySetting from the provided source TargetCopySetting -func (setting *TargetCopySetting) AssignProperties_From_TargetCopySetting(source *v20231201s.TargetCopySetting) error { +func (setting *TargetCopySetting) AssignProperties_From_TargetCopySetting(source *v20231101s.TargetCopySetting) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -3372,13 +3372,13 @@ func (setting *TargetCopySetting) AssignProperties_From_TargetCopySetting(source } // AssignProperties_To_TargetCopySetting populates the provided destination TargetCopySetting from our TargetCopySetting -func (setting *TargetCopySetting) AssignProperties_To_TargetCopySetting(destination *v20231201s.TargetCopySetting) error { +func (setting *TargetCopySetting) AssignProperties_To_TargetCopySetting(destination *v20231101s.TargetCopySetting) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(setting.PropertyBag) // CopyAfter if setting.CopyAfter != nil { - var copyAfter v20231201s.CopyOption + var copyAfter v20231101s.CopyOption err := setting.CopyAfter.AssignProperties_To_CopyOption(©After) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CopyOption() to populate field CopyAfter") @@ -3390,7 +3390,7 @@ func (setting *TargetCopySetting) AssignProperties_To_TargetCopySetting(destinat // DataStore if setting.DataStore != nil { - var dataStore v20231201s.DataStoreInfoBase + var dataStore v20231101s.DataStoreInfoBase err := setting.DataStore.AssignProperties_To_DataStoreInfoBase(&dataStore) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DataStoreInfoBase() to populate field DataStore") @@ -3429,7 +3429,7 @@ type TargetCopySetting_STATUS struct { } // AssignProperties_From_TargetCopySetting_STATUS populates our TargetCopySetting_STATUS from the provided source TargetCopySetting_STATUS -func (setting *TargetCopySetting_STATUS) AssignProperties_From_TargetCopySetting_STATUS(source *v20231201s.TargetCopySetting_STATUS) error { +func (setting *TargetCopySetting_STATUS) AssignProperties_From_TargetCopySetting_STATUS(source *v20231101s.TargetCopySetting_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -3478,13 +3478,13 @@ func (setting *TargetCopySetting_STATUS) AssignProperties_From_TargetCopySetting } // AssignProperties_To_TargetCopySetting_STATUS populates the provided destination TargetCopySetting_STATUS from our TargetCopySetting_STATUS -func (setting *TargetCopySetting_STATUS) AssignProperties_To_TargetCopySetting_STATUS(destination *v20231201s.TargetCopySetting_STATUS) error { +func (setting *TargetCopySetting_STATUS) AssignProperties_To_TargetCopySetting_STATUS(destination *v20231101s.TargetCopySetting_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(setting.PropertyBag) // CopyAfter if setting.CopyAfter != nil { - var copyAfter v20231201s.CopyOption_STATUS + var copyAfter v20231101s.CopyOption_STATUS err := setting.CopyAfter.AssignProperties_To_CopyOption_STATUS(©After) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CopyOption_STATUS() to populate field CopyAfter") @@ -3496,7 +3496,7 @@ func (setting *TargetCopySetting_STATUS) AssignProperties_To_TargetCopySetting_S // DataStore if setting.DataStore != nil { - var dataStore v20231201s.DataStoreInfoBase_STATUS + var dataStore v20231101s.DataStoreInfoBase_STATUS err := setting.DataStore.AssignProperties_To_DataStoreInfoBase_STATUS(&dataStore) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DataStoreInfoBase_STATUS() to populate field DataStore") @@ -3534,7 +3534,7 @@ type AbsoluteDeleteOption struct { } // AssignProperties_From_AbsoluteDeleteOption populates our AbsoluteDeleteOption from the provided source AbsoluteDeleteOption -func (option *AbsoluteDeleteOption) AssignProperties_From_AbsoluteDeleteOption(source *v20231201s.AbsoluteDeleteOption) error { +func (option *AbsoluteDeleteOption) AssignProperties_From_AbsoluteDeleteOption(source *v20231101s.AbsoluteDeleteOption) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -3565,7 +3565,7 @@ func (option *AbsoluteDeleteOption) AssignProperties_From_AbsoluteDeleteOption(s } // AssignProperties_To_AbsoluteDeleteOption populates the provided destination AbsoluteDeleteOption from our AbsoluteDeleteOption -func (option *AbsoluteDeleteOption) AssignProperties_To_AbsoluteDeleteOption(destination *v20231201s.AbsoluteDeleteOption) error { +func (option *AbsoluteDeleteOption) AssignProperties_To_AbsoluteDeleteOption(destination *v20231101s.AbsoluteDeleteOption) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(option.PropertyBag) @@ -3603,7 +3603,7 @@ type AbsoluteDeleteOption_STATUS struct { } // AssignProperties_From_AbsoluteDeleteOption_STATUS populates our AbsoluteDeleteOption_STATUS from the provided source AbsoluteDeleteOption_STATUS -func (option *AbsoluteDeleteOption_STATUS) AssignProperties_From_AbsoluteDeleteOption_STATUS(source *v20231201s.AbsoluteDeleteOption_STATUS) error { +func (option *AbsoluteDeleteOption_STATUS) AssignProperties_From_AbsoluteDeleteOption_STATUS(source *v20231101s.AbsoluteDeleteOption_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -3634,7 +3634,7 @@ func (option *AbsoluteDeleteOption_STATUS) AssignProperties_From_AbsoluteDeleteO } // AssignProperties_To_AbsoluteDeleteOption_STATUS populates the provided destination AbsoluteDeleteOption_STATUS from our AbsoluteDeleteOption_STATUS -func (option *AbsoluteDeleteOption_STATUS) AssignProperties_To_AbsoluteDeleteOption_STATUS(destination *v20231201s.AbsoluteDeleteOption_STATUS) error { +func (option *AbsoluteDeleteOption_STATUS) AssignProperties_To_AbsoluteDeleteOption_STATUS(destination *v20231101s.AbsoluteDeleteOption_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(option.PropertyBag) @@ -3672,7 +3672,7 @@ type AdhocBasedTaggingCriteria struct { } // AssignProperties_From_AdhocBasedTaggingCriteria populates our AdhocBasedTaggingCriteria from the provided source AdhocBasedTaggingCriteria -func (criteria *AdhocBasedTaggingCriteria) AssignProperties_From_AdhocBasedTaggingCriteria(source *v20231201s.AdhocBasedTaggingCriteria) error { +func (criteria *AdhocBasedTaggingCriteria) AssignProperties_From_AdhocBasedTaggingCriteria(source *v20231101s.AdhocBasedTaggingCriteria) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -3709,13 +3709,13 @@ func (criteria *AdhocBasedTaggingCriteria) AssignProperties_From_AdhocBasedTaggi } // AssignProperties_To_AdhocBasedTaggingCriteria populates the provided destination AdhocBasedTaggingCriteria from our AdhocBasedTaggingCriteria -func (criteria *AdhocBasedTaggingCriteria) AssignProperties_To_AdhocBasedTaggingCriteria(destination *v20231201s.AdhocBasedTaggingCriteria) error { +func (criteria *AdhocBasedTaggingCriteria) AssignProperties_To_AdhocBasedTaggingCriteria(destination *v20231101s.AdhocBasedTaggingCriteria) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(criteria.PropertyBag) // TagInfo if criteria.TagInfo != nil { - var tagInfo v20231201s.RetentionTag + var tagInfo v20231101s.RetentionTag err := criteria.TagInfo.AssignProperties_To_RetentionTag(&tagInfo) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_RetentionTag() to populate field TagInfo") @@ -3753,7 +3753,7 @@ type AdhocBasedTaggingCriteria_STATUS struct { } // AssignProperties_From_AdhocBasedTaggingCriteria_STATUS populates our AdhocBasedTaggingCriteria_STATUS from the provided source AdhocBasedTaggingCriteria_STATUS -func (criteria *AdhocBasedTaggingCriteria_STATUS) AssignProperties_From_AdhocBasedTaggingCriteria_STATUS(source *v20231201s.AdhocBasedTaggingCriteria_STATUS) error { +func (criteria *AdhocBasedTaggingCriteria_STATUS) AssignProperties_From_AdhocBasedTaggingCriteria_STATUS(source *v20231101s.AdhocBasedTaggingCriteria_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -3790,13 +3790,13 @@ func (criteria *AdhocBasedTaggingCriteria_STATUS) AssignProperties_From_AdhocBas } // AssignProperties_To_AdhocBasedTaggingCriteria_STATUS populates the provided destination AdhocBasedTaggingCriteria_STATUS from our AdhocBasedTaggingCriteria_STATUS -func (criteria *AdhocBasedTaggingCriteria_STATUS) AssignProperties_To_AdhocBasedTaggingCriteria_STATUS(destination *v20231201s.AdhocBasedTaggingCriteria_STATUS) error { +func (criteria *AdhocBasedTaggingCriteria_STATUS) AssignProperties_To_AdhocBasedTaggingCriteria_STATUS(destination *v20231101s.AdhocBasedTaggingCriteria_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(criteria.PropertyBag) // TagInfo if criteria.TagInfo != nil { - var tagInfo v20231201s.RetentionTag_STATUS + var tagInfo v20231101s.RetentionTag_STATUS err := criteria.TagInfo.AssignProperties_To_RetentionTag_STATUS(&tagInfo) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_RetentionTag_STATUS() to populate field TagInfo") @@ -3827,53 +3827,53 @@ func (criteria *AdhocBasedTaggingCriteria_STATUS) AssignProperties_To_AdhocBased } type augmentConversionForAdhocBasedTriggerContext interface { - AssignPropertiesFrom(src *v20231201s.AdhocBasedTriggerContext) error - AssignPropertiesTo(dst *v20231201s.AdhocBasedTriggerContext) error + AssignPropertiesFrom(src *v20231101s.AdhocBasedTriggerContext) error + AssignPropertiesTo(dst *v20231101s.AdhocBasedTriggerContext) error } type augmentConversionForAdhocBasedTriggerContext_STATUS interface { - AssignPropertiesFrom(src *v20231201s.AdhocBasedTriggerContext_STATUS) error - AssignPropertiesTo(dst *v20231201s.AdhocBasedTriggerContext_STATUS) error + AssignPropertiesFrom(src *v20231101s.AdhocBasedTriggerContext_STATUS) error + AssignPropertiesTo(dst *v20231101s.AdhocBasedTriggerContext_STATUS) error } type augmentConversionForAzureBackupParams interface { - AssignPropertiesFrom(src *v20231201s.AzureBackupParams) error - AssignPropertiesTo(dst *v20231201s.AzureBackupParams) error + AssignPropertiesFrom(src *v20231101s.AzureBackupParams) error + AssignPropertiesTo(dst *v20231101s.AzureBackupParams) error } type augmentConversionForAzureBackupParams_STATUS interface { - AssignPropertiesFrom(src *v20231201s.AzureBackupParams_STATUS) error - AssignPropertiesTo(dst *v20231201s.AzureBackupParams_STATUS) error + AssignPropertiesFrom(src *v20231101s.AzureBackupParams_STATUS) error + AssignPropertiesTo(dst *v20231101s.AzureBackupParams_STATUS) error } type augmentConversionForDeleteOption interface { - AssignPropertiesFrom(src *v20231201s.DeleteOption) error - AssignPropertiesTo(dst *v20231201s.DeleteOption) error + AssignPropertiesFrom(src *v20231101s.DeleteOption) error + AssignPropertiesTo(dst *v20231101s.DeleteOption) error } type augmentConversionForDeleteOption_STATUS interface { - AssignPropertiesFrom(src *v20231201s.DeleteOption_STATUS) error - AssignPropertiesTo(dst *v20231201s.DeleteOption_STATUS) error + AssignPropertiesFrom(src *v20231101s.DeleteOption_STATUS) error + AssignPropertiesTo(dst *v20231101s.DeleteOption_STATUS) error } type augmentConversionForScheduleBasedTriggerContext interface { - AssignPropertiesFrom(src *v20231201s.ScheduleBasedTriggerContext) error - AssignPropertiesTo(dst *v20231201s.ScheduleBasedTriggerContext) error + AssignPropertiesFrom(src *v20231101s.ScheduleBasedTriggerContext) error + AssignPropertiesTo(dst *v20231101s.ScheduleBasedTriggerContext) error } type augmentConversionForScheduleBasedTriggerContext_STATUS interface { - AssignPropertiesFrom(src *v20231201s.ScheduleBasedTriggerContext_STATUS) error - AssignPropertiesTo(dst *v20231201s.ScheduleBasedTriggerContext_STATUS) error + AssignPropertiesFrom(src *v20231101s.ScheduleBasedTriggerContext_STATUS) error + AssignPropertiesTo(dst *v20231101s.ScheduleBasedTriggerContext_STATUS) error } type augmentConversionForTargetCopySetting interface { - AssignPropertiesFrom(src *v20231201s.TargetCopySetting) error - AssignPropertiesTo(dst *v20231201s.TargetCopySetting) error + AssignPropertiesFrom(src *v20231101s.TargetCopySetting) error + AssignPropertiesTo(dst *v20231101s.TargetCopySetting) error } type augmentConversionForTargetCopySetting_STATUS interface { - AssignPropertiesFrom(src *v20231201s.TargetCopySetting_STATUS) error - AssignPropertiesTo(dst *v20231201s.TargetCopySetting_STATUS) error + AssignPropertiesFrom(src *v20231101s.TargetCopySetting_STATUS) error + AssignPropertiesTo(dst *v20231101s.TargetCopySetting_STATUS) error } // Storage version of v1api20230101.BackupSchedule @@ -3885,7 +3885,7 @@ type BackupSchedule struct { } // AssignProperties_From_BackupSchedule populates our BackupSchedule from the provided source BackupSchedule -func (schedule *BackupSchedule) AssignProperties_From_BackupSchedule(source *v20231201s.BackupSchedule) error { +func (schedule *BackupSchedule) AssignProperties_From_BackupSchedule(source *v20231101s.BackupSchedule) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -3916,7 +3916,7 @@ func (schedule *BackupSchedule) AssignProperties_From_BackupSchedule(source *v20 } // AssignProperties_To_BackupSchedule populates the provided destination BackupSchedule from our BackupSchedule -func (schedule *BackupSchedule) AssignProperties_To_BackupSchedule(destination *v20231201s.BackupSchedule) error { +func (schedule *BackupSchedule) AssignProperties_To_BackupSchedule(destination *v20231101s.BackupSchedule) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(schedule.PropertyBag) @@ -3955,7 +3955,7 @@ type BackupSchedule_STATUS struct { } // AssignProperties_From_BackupSchedule_STATUS populates our BackupSchedule_STATUS from the provided source BackupSchedule_STATUS -func (schedule *BackupSchedule_STATUS) AssignProperties_From_BackupSchedule_STATUS(source *v20231201s.BackupSchedule_STATUS) error { +func (schedule *BackupSchedule_STATUS) AssignProperties_From_BackupSchedule_STATUS(source *v20231101s.BackupSchedule_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -3986,7 +3986,7 @@ func (schedule *BackupSchedule_STATUS) AssignProperties_From_BackupSchedule_STAT } // AssignProperties_To_BackupSchedule_STATUS populates the provided destination BackupSchedule_STATUS from our BackupSchedule_STATUS -func (schedule *BackupSchedule_STATUS) AssignProperties_To_BackupSchedule_STATUS(destination *v20231201s.BackupSchedule_STATUS) error { +func (schedule *BackupSchedule_STATUS) AssignProperties_To_BackupSchedule_STATUS(destination *v20231101s.BackupSchedule_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(schedule.PropertyBag) @@ -4025,7 +4025,7 @@ type CopyOption struct { } // AssignProperties_From_CopyOption populates our CopyOption from the provided source CopyOption -func (option *CopyOption) AssignProperties_From_CopyOption(source *v20231201s.CopyOption) error { +func (option *CopyOption) AssignProperties_From_CopyOption(source *v20231101s.CopyOption) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -4086,13 +4086,13 @@ func (option *CopyOption) AssignProperties_From_CopyOption(source *v20231201s.Co } // AssignProperties_To_CopyOption populates the provided destination CopyOption from our CopyOption -func (option *CopyOption) AssignProperties_To_CopyOption(destination *v20231201s.CopyOption) error { +func (option *CopyOption) AssignProperties_To_CopyOption(destination *v20231101s.CopyOption) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(option.PropertyBag) // CopyOnExpiry if option.CopyOnExpiry != nil { - var copyOnExpiry v20231201s.CopyOnExpiryOption + var copyOnExpiry v20231101s.CopyOnExpiryOption err := option.CopyOnExpiry.AssignProperties_To_CopyOnExpiryOption(©OnExpiry) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CopyOnExpiryOption() to populate field CopyOnExpiry") @@ -4104,7 +4104,7 @@ func (option *CopyOption) AssignProperties_To_CopyOption(destination *v20231201s // CustomCopy if option.CustomCopy != nil { - var customCopy v20231201s.CustomCopyOption + var customCopy v20231101s.CustomCopyOption err := option.CustomCopy.AssignProperties_To_CustomCopyOption(&customCopy) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CustomCopyOption() to populate field CustomCopy") @@ -4116,7 +4116,7 @@ func (option *CopyOption) AssignProperties_To_CopyOption(destination *v20231201s // ImmediateCopy if option.ImmediateCopy != nil { - var immediateCopy v20231201s.ImmediateCopyOption + var immediateCopy v20231101s.ImmediateCopyOption err := option.ImmediateCopy.AssignProperties_To_ImmediateCopyOption(&immediateCopy) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ImmediateCopyOption() to populate field ImmediateCopy") @@ -4155,7 +4155,7 @@ type CopyOption_STATUS struct { } // AssignProperties_From_CopyOption_STATUS populates our CopyOption_STATUS from the provided source CopyOption_STATUS -func (option *CopyOption_STATUS) AssignProperties_From_CopyOption_STATUS(source *v20231201s.CopyOption_STATUS) error { +func (option *CopyOption_STATUS) AssignProperties_From_CopyOption_STATUS(source *v20231101s.CopyOption_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -4216,13 +4216,13 @@ func (option *CopyOption_STATUS) AssignProperties_From_CopyOption_STATUS(source } // AssignProperties_To_CopyOption_STATUS populates the provided destination CopyOption_STATUS from our CopyOption_STATUS -func (option *CopyOption_STATUS) AssignProperties_To_CopyOption_STATUS(destination *v20231201s.CopyOption_STATUS) error { +func (option *CopyOption_STATUS) AssignProperties_To_CopyOption_STATUS(destination *v20231101s.CopyOption_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(option.PropertyBag) // CopyOnExpiry if option.CopyOnExpiry != nil { - var copyOnExpiry v20231201s.CopyOnExpiryOption_STATUS + var copyOnExpiry v20231101s.CopyOnExpiryOption_STATUS err := option.CopyOnExpiry.AssignProperties_To_CopyOnExpiryOption_STATUS(©OnExpiry) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CopyOnExpiryOption_STATUS() to populate field CopyOnExpiry") @@ -4234,7 +4234,7 @@ func (option *CopyOption_STATUS) AssignProperties_To_CopyOption_STATUS(destinati // CustomCopy if option.CustomCopy != nil { - var customCopy v20231201s.CustomCopyOption_STATUS + var customCopy v20231101s.CustomCopyOption_STATUS err := option.CustomCopy.AssignProperties_To_CustomCopyOption_STATUS(&customCopy) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CustomCopyOption_STATUS() to populate field CustomCopy") @@ -4246,7 +4246,7 @@ func (option *CopyOption_STATUS) AssignProperties_To_CopyOption_STATUS(destinati // ImmediateCopy if option.ImmediateCopy != nil { - var immediateCopy v20231201s.ImmediateCopyOption_STATUS + var immediateCopy v20231101s.ImmediateCopyOption_STATUS err := option.ImmediateCopy.AssignProperties_To_ImmediateCopyOption_STATUS(&immediateCopy) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ImmediateCopyOption_STATUS() to populate field ImmediateCopy") @@ -4287,7 +4287,7 @@ type TaggingCriteria struct { } // AssignProperties_From_TaggingCriteria populates our TaggingCriteria from the provided source TaggingCriteria -func (criteria *TaggingCriteria) AssignProperties_From_TaggingCriteria(source *v20231201s.TaggingCriteria) error { +func (criteria *TaggingCriteria) AssignProperties_From_TaggingCriteria(source *v20231101s.TaggingCriteria) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -4353,17 +4353,17 @@ func (criteria *TaggingCriteria) AssignProperties_From_TaggingCriteria(source *v } // AssignProperties_To_TaggingCriteria populates the provided destination TaggingCriteria from our TaggingCriteria -func (criteria *TaggingCriteria) AssignProperties_To_TaggingCriteria(destination *v20231201s.TaggingCriteria) error { +func (criteria *TaggingCriteria) AssignProperties_To_TaggingCriteria(destination *v20231101s.TaggingCriteria) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(criteria.PropertyBag) // Criteria if criteria.Criteria != nil { - criterionList := make([]v20231201s.BackupCriteria, len(criteria.Criteria)) + criterionList := make([]v20231101s.BackupCriteria, len(criteria.Criteria)) for criterionIndex, criterionItem := range criteria.Criteria { // Shadow the loop variable to avoid aliasing criterionItem := criterionItem - var criterion v20231201s.BackupCriteria + var criterion v20231101s.BackupCriteria err := criterionItem.AssignProperties_To_BackupCriteria(&criterion) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupCriteria() to populate field Criteria") @@ -4385,7 +4385,7 @@ func (criteria *TaggingCriteria) AssignProperties_To_TaggingCriteria(destination // TagInfo if criteria.TagInfo != nil { - var tagInfo v20231201s.RetentionTag + var tagInfo v20231101s.RetentionTag err := criteria.TagInfo.AssignProperties_To_RetentionTag(&tagInfo) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_RetentionTag() to populate field TagInfo") @@ -4429,7 +4429,7 @@ type TaggingCriteria_STATUS struct { } // AssignProperties_From_TaggingCriteria_STATUS populates our TaggingCriteria_STATUS from the provided source TaggingCriteria_STATUS -func (criteria *TaggingCriteria_STATUS) AssignProperties_From_TaggingCriteria_STATUS(source *v20231201s.TaggingCriteria_STATUS) error { +func (criteria *TaggingCriteria_STATUS) AssignProperties_From_TaggingCriteria_STATUS(source *v20231101s.TaggingCriteria_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -4495,17 +4495,17 @@ func (criteria *TaggingCriteria_STATUS) AssignProperties_From_TaggingCriteria_ST } // AssignProperties_To_TaggingCriteria_STATUS populates the provided destination TaggingCriteria_STATUS from our TaggingCriteria_STATUS -func (criteria *TaggingCriteria_STATUS) AssignProperties_To_TaggingCriteria_STATUS(destination *v20231201s.TaggingCriteria_STATUS) error { +func (criteria *TaggingCriteria_STATUS) AssignProperties_To_TaggingCriteria_STATUS(destination *v20231101s.TaggingCriteria_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(criteria.PropertyBag) // Criteria if criteria.Criteria != nil { - criterionList := make([]v20231201s.BackupCriteria_STATUS, len(criteria.Criteria)) + criterionList := make([]v20231101s.BackupCriteria_STATUS, len(criteria.Criteria)) for criterionIndex, criterionItem := range criteria.Criteria { // Shadow the loop variable to avoid aliasing criterionItem := criterionItem - var criterion v20231201s.BackupCriteria_STATUS + var criterion v20231101s.BackupCriteria_STATUS err := criterionItem.AssignProperties_To_BackupCriteria_STATUS(&criterion) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupCriteria_STATUS() to populate field Criteria") @@ -4527,7 +4527,7 @@ func (criteria *TaggingCriteria_STATUS) AssignProperties_To_TaggingCriteria_STAT // TagInfo if criteria.TagInfo != nil { - var tagInfo v20231201s.RetentionTag_STATUS + var tagInfo v20231101s.RetentionTag_STATUS err := criteria.TagInfo.AssignProperties_To_RetentionTag_STATUS(&tagInfo) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_RetentionTag_STATUS() to populate field TagInfo") @@ -4561,53 +4561,53 @@ func (criteria *TaggingCriteria_STATUS) AssignProperties_To_TaggingCriteria_STAT } type augmentConversionForAbsoluteDeleteOption interface { - AssignPropertiesFrom(src *v20231201s.AbsoluteDeleteOption) error - AssignPropertiesTo(dst *v20231201s.AbsoluteDeleteOption) error + AssignPropertiesFrom(src *v20231101s.AbsoluteDeleteOption) error + AssignPropertiesTo(dst *v20231101s.AbsoluteDeleteOption) error } type augmentConversionForAbsoluteDeleteOption_STATUS interface { - AssignPropertiesFrom(src *v20231201s.AbsoluteDeleteOption_STATUS) error - AssignPropertiesTo(dst *v20231201s.AbsoluteDeleteOption_STATUS) error + AssignPropertiesFrom(src *v20231101s.AbsoluteDeleteOption_STATUS) error + AssignPropertiesTo(dst *v20231101s.AbsoluteDeleteOption_STATUS) error } type augmentConversionForAdhocBasedTaggingCriteria interface { - AssignPropertiesFrom(src *v20231201s.AdhocBasedTaggingCriteria) error - AssignPropertiesTo(dst *v20231201s.AdhocBasedTaggingCriteria) error + AssignPropertiesFrom(src *v20231101s.AdhocBasedTaggingCriteria) error + AssignPropertiesTo(dst *v20231101s.AdhocBasedTaggingCriteria) error } type augmentConversionForAdhocBasedTaggingCriteria_STATUS interface { - AssignPropertiesFrom(src *v20231201s.AdhocBasedTaggingCriteria_STATUS) error - AssignPropertiesTo(dst *v20231201s.AdhocBasedTaggingCriteria_STATUS) error + AssignPropertiesFrom(src *v20231101s.AdhocBasedTaggingCriteria_STATUS) error + AssignPropertiesTo(dst *v20231101s.AdhocBasedTaggingCriteria_STATUS) error } type augmentConversionForBackupSchedule interface { - AssignPropertiesFrom(src *v20231201s.BackupSchedule) error - AssignPropertiesTo(dst *v20231201s.BackupSchedule) error + AssignPropertiesFrom(src *v20231101s.BackupSchedule) error + AssignPropertiesTo(dst *v20231101s.BackupSchedule) error } type augmentConversionForBackupSchedule_STATUS interface { - AssignPropertiesFrom(src *v20231201s.BackupSchedule_STATUS) error - AssignPropertiesTo(dst *v20231201s.BackupSchedule_STATUS) error + AssignPropertiesFrom(src *v20231101s.BackupSchedule_STATUS) error + AssignPropertiesTo(dst *v20231101s.BackupSchedule_STATUS) error } type augmentConversionForCopyOption interface { - AssignPropertiesFrom(src *v20231201s.CopyOption) error - AssignPropertiesTo(dst *v20231201s.CopyOption) error + AssignPropertiesFrom(src *v20231101s.CopyOption) error + AssignPropertiesTo(dst *v20231101s.CopyOption) error } type augmentConversionForCopyOption_STATUS interface { - AssignPropertiesFrom(src *v20231201s.CopyOption_STATUS) error - AssignPropertiesTo(dst *v20231201s.CopyOption_STATUS) error + AssignPropertiesFrom(src *v20231101s.CopyOption_STATUS) error + AssignPropertiesTo(dst *v20231101s.CopyOption_STATUS) error } type augmentConversionForTaggingCriteria interface { - AssignPropertiesFrom(src *v20231201s.TaggingCriteria) error - AssignPropertiesTo(dst *v20231201s.TaggingCriteria) error + AssignPropertiesFrom(src *v20231101s.TaggingCriteria) error + AssignPropertiesTo(dst *v20231101s.TaggingCriteria) error } type augmentConversionForTaggingCriteria_STATUS interface { - AssignPropertiesFrom(src *v20231201s.TaggingCriteria_STATUS) error - AssignPropertiesTo(dst *v20231201s.TaggingCriteria_STATUS) error + AssignPropertiesFrom(src *v20231101s.TaggingCriteria_STATUS) error + AssignPropertiesTo(dst *v20231101s.TaggingCriteria_STATUS) error } // Storage version of v1api20230101.BackupCriteria @@ -4617,7 +4617,7 @@ type BackupCriteria struct { } // AssignProperties_From_BackupCriteria populates our BackupCriteria from the provided source BackupCriteria -func (criteria *BackupCriteria) AssignProperties_From_BackupCriteria(source *v20231201s.BackupCriteria) error { +func (criteria *BackupCriteria) AssignProperties_From_BackupCriteria(source *v20231101s.BackupCriteria) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -4654,13 +4654,13 @@ func (criteria *BackupCriteria) AssignProperties_From_BackupCriteria(source *v20 } // AssignProperties_To_BackupCriteria populates the provided destination BackupCriteria from our BackupCriteria -func (criteria *BackupCriteria) AssignProperties_To_BackupCriteria(destination *v20231201s.BackupCriteria) error { +func (criteria *BackupCriteria) AssignProperties_To_BackupCriteria(destination *v20231101s.BackupCriteria) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(criteria.PropertyBag) // ScheduleBasedBackupCriteria if criteria.ScheduleBasedBackupCriteria != nil { - var scheduleBasedBackupCriterion v20231201s.ScheduleBasedBackupCriteria + var scheduleBasedBackupCriterion v20231101s.ScheduleBasedBackupCriteria err := criteria.ScheduleBasedBackupCriteria.AssignProperties_To_ScheduleBasedBackupCriteria(&scheduleBasedBackupCriterion) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ScheduleBasedBackupCriteria() to populate field ScheduleBasedBackupCriteria") @@ -4697,7 +4697,7 @@ type BackupCriteria_STATUS struct { } // AssignProperties_From_BackupCriteria_STATUS populates our BackupCriteria_STATUS from the provided source BackupCriteria_STATUS -func (criteria *BackupCriteria_STATUS) AssignProperties_From_BackupCriteria_STATUS(source *v20231201s.BackupCriteria_STATUS) error { +func (criteria *BackupCriteria_STATUS) AssignProperties_From_BackupCriteria_STATUS(source *v20231101s.BackupCriteria_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -4734,13 +4734,13 @@ func (criteria *BackupCriteria_STATUS) AssignProperties_From_BackupCriteria_STAT } // AssignProperties_To_BackupCriteria_STATUS populates the provided destination BackupCriteria_STATUS from our BackupCriteria_STATUS -func (criteria *BackupCriteria_STATUS) AssignProperties_To_BackupCriteria_STATUS(destination *v20231201s.BackupCriteria_STATUS) error { +func (criteria *BackupCriteria_STATUS) AssignProperties_To_BackupCriteria_STATUS(destination *v20231101s.BackupCriteria_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(criteria.PropertyBag) // ScheduleBasedBackupCriteria if criteria.ScheduleBasedBackupCriteria != nil { - var scheduleBasedBackupCriterion v20231201s.ScheduleBasedBackupCriteria_STATUS + var scheduleBasedBackupCriterion v20231101s.ScheduleBasedBackupCriteria_STATUS err := criteria.ScheduleBasedBackupCriteria.AssignProperties_To_ScheduleBasedBackupCriteria_STATUS(&scheduleBasedBackupCriterion) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ScheduleBasedBackupCriteria_STATUS() to populate field ScheduleBasedBackupCriteria") @@ -4777,7 +4777,7 @@ type CopyOnExpiryOption struct { } // AssignProperties_From_CopyOnExpiryOption populates our CopyOnExpiryOption from the provided source CopyOnExpiryOption -func (option *CopyOnExpiryOption) AssignProperties_From_CopyOnExpiryOption(source *v20231201s.CopyOnExpiryOption) error { +func (option *CopyOnExpiryOption) AssignProperties_From_CopyOnExpiryOption(source *v20231101s.CopyOnExpiryOption) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -4805,7 +4805,7 @@ func (option *CopyOnExpiryOption) AssignProperties_From_CopyOnExpiryOption(sourc } // AssignProperties_To_CopyOnExpiryOption populates the provided destination CopyOnExpiryOption from our CopyOnExpiryOption -func (option *CopyOnExpiryOption) AssignProperties_To_CopyOnExpiryOption(destination *v20231201s.CopyOnExpiryOption) error { +func (option *CopyOnExpiryOption) AssignProperties_To_CopyOnExpiryOption(destination *v20231101s.CopyOnExpiryOption) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(option.PropertyBag) @@ -4839,7 +4839,7 @@ type CopyOnExpiryOption_STATUS struct { } // AssignProperties_From_CopyOnExpiryOption_STATUS populates our CopyOnExpiryOption_STATUS from the provided source CopyOnExpiryOption_STATUS -func (option *CopyOnExpiryOption_STATUS) AssignProperties_From_CopyOnExpiryOption_STATUS(source *v20231201s.CopyOnExpiryOption_STATUS) error { +func (option *CopyOnExpiryOption_STATUS) AssignProperties_From_CopyOnExpiryOption_STATUS(source *v20231101s.CopyOnExpiryOption_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -4867,7 +4867,7 @@ func (option *CopyOnExpiryOption_STATUS) AssignProperties_From_CopyOnExpiryOptio } // AssignProperties_To_CopyOnExpiryOption_STATUS populates the provided destination CopyOnExpiryOption_STATUS from our CopyOnExpiryOption_STATUS -func (option *CopyOnExpiryOption_STATUS) AssignProperties_To_CopyOnExpiryOption_STATUS(destination *v20231201s.CopyOnExpiryOption_STATUS) error { +func (option *CopyOnExpiryOption_STATUS) AssignProperties_To_CopyOnExpiryOption_STATUS(destination *v20231101s.CopyOnExpiryOption_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(option.PropertyBag) @@ -4902,7 +4902,7 @@ type CustomCopyOption struct { } // AssignProperties_From_CustomCopyOption populates our CustomCopyOption from the provided source CustomCopyOption -func (option *CustomCopyOption) AssignProperties_From_CustomCopyOption(source *v20231201s.CustomCopyOption) error { +func (option *CustomCopyOption) AssignProperties_From_CustomCopyOption(source *v20231101s.CustomCopyOption) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -4933,7 +4933,7 @@ func (option *CustomCopyOption) AssignProperties_From_CustomCopyOption(source *v } // AssignProperties_To_CustomCopyOption populates the provided destination CustomCopyOption from our CustomCopyOption -func (option *CustomCopyOption) AssignProperties_To_CustomCopyOption(destination *v20231201s.CustomCopyOption) error { +func (option *CustomCopyOption) AssignProperties_To_CustomCopyOption(destination *v20231101s.CustomCopyOption) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(option.PropertyBag) @@ -4971,7 +4971,7 @@ type CustomCopyOption_STATUS struct { } // AssignProperties_From_CustomCopyOption_STATUS populates our CustomCopyOption_STATUS from the provided source CustomCopyOption_STATUS -func (option *CustomCopyOption_STATUS) AssignProperties_From_CustomCopyOption_STATUS(source *v20231201s.CustomCopyOption_STATUS) error { +func (option *CustomCopyOption_STATUS) AssignProperties_From_CustomCopyOption_STATUS(source *v20231101s.CustomCopyOption_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -5002,7 +5002,7 @@ func (option *CustomCopyOption_STATUS) AssignProperties_From_CustomCopyOption_ST } // AssignProperties_To_CustomCopyOption_STATUS populates the provided destination CustomCopyOption_STATUS from our CustomCopyOption_STATUS -func (option *CustomCopyOption_STATUS) AssignProperties_To_CustomCopyOption_STATUS(destination *v20231201s.CustomCopyOption_STATUS) error { +func (option *CustomCopyOption_STATUS) AssignProperties_To_CustomCopyOption_STATUS(destination *v20231101s.CustomCopyOption_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(option.PropertyBag) @@ -5039,7 +5039,7 @@ type ImmediateCopyOption struct { } // AssignProperties_From_ImmediateCopyOption populates our ImmediateCopyOption from the provided source ImmediateCopyOption -func (option *ImmediateCopyOption) AssignProperties_From_ImmediateCopyOption(source *v20231201s.ImmediateCopyOption) error { +func (option *ImmediateCopyOption) AssignProperties_From_ImmediateCopyOption(source *v20231101s.ImmediateCopyOption) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -5067,7 +5067,7 @@ func (option *ImmediateCopyOption) AssignProperties_From_ImmediateCopyOption(sou } // AssignProperties_To_ImmediateCopyOption populates the provided destination ImmediateCopyOption from our ImmediateCopyOption -func (option *ImmediateCopyOption) AssignProperties_To_ImmediateCopyOption(destination *v20231201s.ImmediateCopyOption) error { +func (option *ImmediateCopyOption) AssignProperties_To_ImmediateCopyOption(destination *v20231101s.ImmediateCopyOption) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(option.PropertyBag) @@ -5101,7 +5101,7 @@ type ImmediateCopyOption_STATUS struct { } // AssignProperties_From_ImmediateCopyOption_STATUS populates our ImmediateCopyOption_STATUS from the provided source ImmediateCopyOption_STATUS -func (option *ImmediateCopyOption_STATUS) AssignProperties_From_ImmediateCopyOption_STATUS(source *v20231201s.ImmediateCopyOption_STATUS) error { +func (option *ImmediateCopyOption_STATUS) AssignProperties_From_ImmediateCopyOption_STATUS(source *v20231101s.ImmediateCopyOption_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -5129,7 +5129,7 @@ func (option *ImmediateCopyOption_STATUS) AssignProperties_From_ImmediateCopyOpt } // AssignProperties_To_ImmediateCopyOption_STATUS populates the provided destination ImmediateCopyOption_STATUS from our ImmediateCopyOption_STATUS -func (option *ImmediateCopyOption_STATUS) AssignProperties_To_ImmediateCopyOption_STATUS(destination *v20231201s.ImmediateCopyOption_STATUS) error { +func (option *ImmediateCopyOption_STATUS) AssignProperties_To_ImmediateCopyOption_STATUS(destination *v20231101s.ImmediateCopyOption_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(option.PropertyBag) @@ -5164,7 +5164,7 @@ type RetentionTag struct { } // AssignProperties_From_RetentionTag populates our RetentionTag from the provided source RetentionTag -func (retentionTag *RetentionTag) AssignProperties_From_RetentionTag(source *v20231201s.RetentionTag) error { +func (retentionTag *RetentionTag) AssignProperties_From_RetentionTag(source *v20231101s.RetentionTag) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -5192,7 +5192,7 @@ func (retentionTag *RetentionTag) AssignProperties_From_RetentionTag(source *v20 } // AssignProperties_To_RetentionTag populates the provided destination RetentionTag from our RetentionTag -func (retentionTag *RetentionTag) AssignProperties_To_RetentionTag(destination *v20231201s.RetentionTag) error { +func (retentionTag *RetentionTag) AssignProperties_To_RetentionTag(destination *v20231101s.RetentionTag) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(retentionTag.PropertyBag) @@ -5229,7 +5229,7 @@ type RetentionTag_STATUS struct { } // AssignProperties_From_RetentionTag_STATUS populates our RetentionTag_STATUS from the provided source RetentionTag_STATUS -func (retentionTag *RetentionTag_STATUS) AssignProperties_From_RetentionTag_STATUS(source *v20231201s.RetentionTag_STATUS) error { +func (retentionTag *RetentionTag_STATUS) AssignProperties_From_RetentionTag_STATUS(source *v20231101s.RetentionTag_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -5263,7 +5263,7 @@ func (retentionTag *RetentionTag_STATUS) AssignProperties_From_RetentionTag_STAT } // AssignProperties_To_RetentionTag_STATUS populates the provided destination RetentionTag_STATUS from our RetentionTag_STATUS -func (retentionTag *RetentionTag_STATUS) AssignProperties_To_RetentionTag_STATUS(destination *v20231201s.RetentionTag_STATUS) error { +func (retentionTag *RetentionTag_STATUS) AssignProperties_To_RetentionTag_STATUS(destination *v20231101s.RetentionTag_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(retentionTag.PropertyBag) @@ -5297,53 +5297,53 @@ func (retentionTag *RetentionTag_STATUS) AssignProperties_To_RetentionTag_STATUS } type augmentConversionForBackupCriteria interface { - AssignPropertiesFrom(src *v20231201s.BackupCriteria) error - AssignPropertiesTo(dst *v20231201s.BackupCriteria) error + AssignPropertiesFrom(src *v20231101s.BackupCriteria) error + AssignPropertiesTo(dst *v20231101s.BackupCriteria) error } type augmentConversionForBackupCriteria_STATUS interface { - AssignPropertiesFrom(src *v20231201s.BackupCriteria_STATUS) error - AssignPropertiesTo(dst *v20231201s.BackupCriteria_STATUS) error + AssignPropertiesFrom(src *v20231101s.BackupCriteria_STATUS) error + AssignPropertiesTo(dst *v20231101s.BackupCriteria_STATUS) error } type augmentConversionForCopyOnExpiryOption interface { - AssignPropertiesFrom(src *v20231201s.CopyOnExpiryOption) error - AssignPropertiesTo(dst *v20231201s.CopyOnExpiryOption) error + AssignPropertiesFrom(src *v20231101s.CopyOnExpiryOption) error + AssignPropertiesTo(dst *v20231101s.CopyOnExpiryOption) error } type augmentConversionForCopyOnExpiryOption_STATUS interface { - AssignPropertiesFrom(src *v20231201s.CopyOnExpiryOption_STATUS) error - AssignPropertiesTo(dst *v20231201s.CopyOnExpiryOption_STATUS) error + AssignPropertiesFrom(src *v20231101s.CopyOnExpiryOption_STATUS) error + AssignPropertiesTo(dst *v20231101s.CopyOnExpiryOption_STATUS) error } type augmentConversionForCustomCopyOption interface { - AssignPropertiesFrom(src *v20231201s.CustomCopyOption) error - AssignPropertiesTo(dst *v20231201s.CustomCopyOption) error + AssignPropertiesFrom(src *v20231101s.CustomCopyOption) error + AssignPropertiesTo(dst *v20231101s.CustomCopyOption) error } type augmentConversionForCustomCopyOption_STATUS interface { - AssignPropertiesFrom(src *v20231201s.CustomCopyOption_STATUS) error - AssignPropertiesTo(dst *v20231201s.CustomCopyOption_STATUS) error + AssignPropertiesFrom(src *v20231101s.CustomCopyOption_STATUS) error + AssignPropertiesTo(dst *v20231101s.CustomCopyOption_STATUS) error } type augmentConversionForImmediateCopyOption interface { - AssignPropertiesFrom(src *v20231201s.ImmediateCopyOption) error - AssignPropertiesTo(dst *v20231201s.ImmediateCopyOption) error + AssignPropertiesFrom(src *v20231101s.ImmediateCopyOption) error + AssignPropertiesTo(dst *v20231101s.ImmediateCopyOption) error } type augmentConversionForImmediateCopyOption_STATUS interface { - AssignPropertiesFrom(src *v20231201s.ImmediateCopyOption_STATUS) error - AssignPropertiesTo(dst *v20231201s.ImmediateCopyOption_STATUS) error + AssignPropertiesFrom(src *v20231101s.ImmediateCopyOption_STATUS) error + AssignPropertiesTo(dst *v20231101s.ImmediateCopyOption_STATUS) error } type augmentConversionForRetentionTag interface { - AssignPropertiesFrom(src *v20231201s.RetentionTag) error - AssignPropertiesTo(dst *v20231201s.RetentionTag) error + AssignPropertiesFrom(src *v20231101s.RetentionTag) error + AssignPropertiesTo(dst *v20231101s.RetentionTag) error } type augmentConversionForRetentionTag_STATUS interface { - AssignPropertiesFrom(src *v20231201s.RetentionTag_STATUS) error - AssignPropertiesTo(dst *v20231201s.RetentionTag_STATUS) error + AssignPropertiesFrom(src *v20231101s.RetentionTag_STATUS) error + AssignPropertiesTo(dst *v20231101s.RetentionTag_STATUS) error } // Storage version of v1api20230101.ScheduleBasedBackupCriteria @@ -5359,7 +5359,7 @@ type ScheduleBasedBackupCriteria struct { } // AssignProperties_From_ScheduleBasedBackupCriteria populates our ScheduleBasedBackupCriteria from the provided source ScheduleBasedBackupCriteria -func (criteria *ScheduleBasedBackupCriteria) AssignProperties_From_ScheduleBasedBackupCriteria(source *v20231201s.ScheduleBasedBackupCriteria) error { +func (criteria *ScheduleBasedBackupCriteria) AssignProperties_From_ScheduleBasedBackupCriteria(source *v20231101s.ScheduleBasedBackupCriteria) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -5420,7 +5420,7 @@ func (criteria *ScheduleBasedBackupCriteria) AssignProperties_From_ScheduleBased } // AssignProperties_To_ScheduleBasedBackupCriteria populates the provided destination ScheduleBasedBackupCriteria from our ScheduleBasedBackupCriteria -func (criteria *ScheduleBasedBackupCriteria) AssignProperties_To_ScheduleBasedBackupCriteria(destination *v20231201s.ScheduleBasedBackupCriteria) error { +func (criteria *ScheduleBasedBackupCriteria) AssignProperties_To_ScheduleBasedBackupCriteria(destination *v20231101s.ScheduleBasedBackupCriteria) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(criteria.PropertyBag) @@ -5429,11 +5429,11 @@ func (criteria *ScheduleBasedBackupCriteria) AssignProperties_To_ScheduleBasedBa // DaysOfMonth if criteria.DaysOfMonth != nil { - daysOfMonthList := make([]v20231201s.Day, len(criteria.DaysOfMonth)) + daysOfMonthList := make([]v20231101s.Day, len(criteria.DaysOfMonth)) for daysOfMonthIndex, daysOfMonthItem := range criteria.DaysOfMonth { // Shadow the loop variable to avoid aliasing daysOfMonthItem := daysOfMonthItem - var daysOfMonth v20231201s.Day + var daysOfMonth v20231101s.Day err := daysOfMonthItem.AssignProperties_To_Day(&daysOfMonth) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_Day() to populate field DaysOfMonth") @@ -5493,7 +5493,7 @@ type ScheduleBasedBackupCriteria_STATUS struct { } // AssignProperties_From_ScheduleBasedBackupCriteria_STATUS populates our ScheduleBasedBackupCriteria_STATUS from the provided source ScheduleBasedBackupCriteria_STATUS -func (criteria *ScheduleBasedBackupCriteria_STATUS) AssignProperties_From_ScheduleBasedBackupCriteria_STATUS(source *v20231201s.ScheduleBasedBackupCriteria_STATUS) error { +func (criteria *ScheduleBasedBackupCriteria_STATUS) AssignProperties_From_ScheduleBasedBackupCriteria_STATUS(source *v20231101s.ScheduleBasedBackupCriteria_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -5554,7 +5554,7 @@ func (criteria *ScheduleBasedBackupCriteria_STATUS) AssignProperties_From_Schedu } // AssignProperties_To_ScheduleBasedBackupCriteria_STATUS populates the provided destination ScheduleBasedBackupCriteria_STATUS from our ScheduleBasedBackupCriteria_STATUS -func (criteria *ScheduleBasedBackupCriteria_STATUS) AssignProperties_To_ScheduleBasedBackupCriteria_STATUS(destination *v20231201s.ScheduleBasedBackupCriteria_STATUS) error { +func (criteria *ScheduleBasedBackupCriteria_STATUS) AssignProperties_To_ScheduleBasedBackupCriteria_STATUS(destination *v20231101s.ScheduleBasedBackupCriteria_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(criteria.PropertyBag) @@ -5563,11 +5563,11 @@ func (criteria *ScheduleBasedBackupCriteria_STATUS) AssignProperties_To_Schedule // DaysOfMonth if criteria.DaysOfMonth != nil { - daysOfMonthList := make([]v20231201s.Day_STATUS, len(criteria.DaysOfMonth)) + daysOfMonthList := make([]v20231101s.Day_STATUS, len(criteria.DaysOfMonth)) for daysOfMonthIndex, daysOfMonthItem := range criteria.DaysOfMonth { // Shadow the loop variable to avoid aliasing daysOfMonthItem := daysOfMonthItem - var daysOfMonth v20231201s.Day_STATUS + var daysOfMonth v20231101s.Day_STATUS err := daysOfMonthItem.AssignProperties_To_Day_STATUS(&daysOfMonth) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_Day_STATUS() to populate field DaysOfMonth") @@ -5615,13 +5615,13 @@ func (criteria *ScheduleBasedBackupCriteria_STATUS) AssignProperties_To_Schedule } type augmentConversionForScheduleBasedBackupCriteria interface { - AssignPropertiesFrom(src *v20231201s.ScheduleBasedBackupCriteria) error - AssignPropertiesTo(dst *v20231201s.ScheduleBasedBackupCriteria) error + AssignPropertiesFrom(src *v20231101s.ScheduleBasedBackupCriteria) error + AssignPropertiesTo(dst *v20231101s.ScheduleBasedBackupCriteria) error } type augmentConversionForScheduleBasedBackupCriteria_STATUS interface { - AssignPropertiesFrom(src *v20231201s.ScheduleBasedBackupCriteria_STATUS) error - AssignPropertiesTo(dst *v20231201s.ScheduleBasedBackupCriteria_STATUS) error + AssignPropertiesFrom(src *v20231101s.ScheduleBasedBackupCriteria_STATUS) error + AssignPropertiesTo(dst *v20231101s.ScheduleBasedBackupCriteria_STATUS) error } // Storage version of v1api20230101.Day @@ -5633,7 +5633,7 @@ type Day struct { } // AssignProperties_From_Day populates our Day from the provided source Day -func (day *Day) AssignProperties_From_Day(source *v20231201s.Day) error { +func (day *Day) AssignProperties_From_Day(source *v20231101s.Day) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -5669,7 +5669,7 @@ func (day *Day) AssignProperties_From_Day(source *v20231201s.Day) error { } // AssignProperties_To_Day populates the provided destination Day from our Day -func (day *Day) AssignProperties_To_Day(destination *v20231201s.Day) error { +func (day *Day) AssignProperties_To_Day(destination *v20231101s.Day) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(day.PropertyBag) @@ -5713,7 +5713,7 @@ type Day_STATUS struct { } // AssignProperties_From_Day_STATUS populates our Day_STATUS from the provided source Day_STATUS -func (day *Day_STATUS) AssignProperties_From_Day_STATUS(source *v20231201s.Day_STATUS) error { +func (day *Day_STATUS) AssignProperties_From_Day_STATUS(source *v20231101s.Day_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(source.PropertyBag) @@ -5749,7 +5749,7 @@ func (day *Day_STATUS) AssignProperties_From_Day_STATUS(source *v20231201s.Day_S } // AssignProperties_To_Day_STATUS populates the provided destination Day_STATUS from our Day_STATUS -func (day *Day_STATUS) AssignProperties_To_Day_STATUS(destination *v20231201s.Day_STATUS) error { +func (day *Day_STATUS) AssignProperties_To_Day_STATUS(destination *v20231101s.Day_STATUS) error { // Clone the existing property bag propertyBag := genruntime.NewPropertyBag(day.PropertyBag) @@ -5785,13 +5785,13 @@ func (day *Day_STATUS) AssignProperties_To_Day_STATUS(destination *v20231201s.Da } type augmentConversionForDay interface { - AssignPropertiesFrom(src *v20231201s.Day) error - AssignPropertiesTo(dst *v20231201s.Day) error + AssignPropertiesFrom(src *v20231101s.Day) error + AssignPropertiesTo(dst *v20231101s.Day) error } type augmentConversionForDay_STATUS interface { - AssignPropertiesFrom(src *v20231201s.Day_STATUS) error - AssignPropertiesTo(dst *v20231201s.Day_STATUS) error + AssignPropertiesFrom(src *v20231101s.Day_STATUS) error + AssignPropertiesTo(dst *v20231101s.Day_STATUS) error } func init() { diff --git a/v2/api/dataprotection/v1api20230101/storage/backup_vaults_backup_policy_types_gen_test.go b/v2/api/dataprotection/v1api20230101/storage/backup_vaults_backup_policy_types_gen_test.go index 3ea81ce6024..1ff42e77bfd 100644 --- a/v2/api/dataprotection/v1api20230101/storage/backup_vaults_backup_policy_types_gen_test.go +++ b/v2/api/dataprotection/v1api20230101/storage/backup_vaults_backup_policy_types_gen_test.go @@ -5,7 +5,7 @@ package storage import ( "encoding/json" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" + v20231101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/kr/pretty" @@ -36,7 +36,7 @@ func RunResourceConversionTestForBackupVaultsBackupPolicy(subject BackupVaultsBa copied := subject.DeepCopy() // Convert to our hub version - var hub v20231201s.BackupVaultsBackupPolicy + var hub v20231101s.BackupVaultsBackupPolicy err := copied.ConvertTo(&hub) if err != nil { return err.Error() @@ -78,7 +78,7 @@ func RunPropertyAssignmentTestForBackupVaultsBackupPolicy(subject BackupVaultsBa copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaultsBackupPolicy + var other v20231101s.BackupVaultsBackupPolicy err := copied.AssignProperties_To_BackupVaultsBackupPolicy(&other) if err != nil { return err.Error() @@ -182,7 +182,7 @@ func RunPropertyAssignmentTestForBackupVaults_BackupPolicy_Spec(subject BackupVa copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaults_BackupPolicy_Spec + var other v20231101s.BackupVaults_BackupPolicy_Spec err := copied.AssignProperties_To_BackupVaults_BackupPolicy_Spec(&other) if err != nil { return err.Error() @@ -300,7 +300,7 @@ func RunPropertyAssignmentTestForBackupVaults_BackupPolicy_STATUS(subject Backup copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaults_BackupPolicy_STATUS + var other v20231101s.BackupVaults_BackupPolicy_STATUS err := copied.AssignProperties_To_BackupVaults_BackupPolicy_STATUS(&other) if err != nil { return err.Error() @@ -420,7 +420,7 @@ func RunPropertyAssignmentTestForBaseBackupPolicy(subject BaseBackupPolicy) stri copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BaseBackupPolicy + var other v20231101s.BaseBackupPolicy err := copied.AssignProperties_To_BaseBackupPolicy(&other) if err != nil { return err.Error() @@ -530,7 +530,7 @@ func RunPropertyAssignmentTestForBaseBackupPolicy_STATUS(subject BaseBackupPolic copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BaseBackupPolicy_STATUS + var other v20231101s.BaseBackupPolicy_STATUS err := copied.AssignProperties_To_BaseBackupPolicy_STATUS(&other) if err != nil { return err.Error() @@ -641,7 +641,7 @@ func RunPropertyAssignmentTestForBackupPolicy(subject BackupPolicy) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupPolicy + var other v20231101s.BackupPolicy err := copied.AssignProperties_To_BackupPolicy(&other) if err != nil { return err.Error() @@ -758,7 +758,7 @@ func RunPropertyAssignmentTestForBackupPolicy_STATUS(subject BackupPolicy_STATUS copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupPolicy_STATUS + var other v20231101s.BackupPolicy_STATUS err := copied.AssignProperties_To_BackupPolicy_STATUS(&other) if err != nil { return err.Error() @@ -876,7 +876,7 @@ func RunPropertyAssignmentTestForBasePolicyRule(subject BasePolicyRule) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BasePolicyRule + var other v20231101s.BasePolicyRule err := copied.AssignProperties_To_BasePolicyRule(&other) if err != nil { return err.Error() @@ -989,7 +989,7 @@ func RunPropertyAssignmentTestForBasePolicyRule_STATUS(subject BasePolicyRule_ST copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BasePolicyRule_STATUS + var other v20231101s.BasePolicyRule_STATUS err := copied.AssignProperties_To_BasePolicyRule_STATUS(&other) if err != nil { return err.Error() @@ -1103,7 +1103,7 @@ func RunPropertyAssignmentTestForAzureBackupRule(subject AzureBackupRule) string copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureBackupRule + var other v20231101s.AzureBackupRule err := copied.AssignProperties_To_AzureBackupRule(&other) if err != nil { return err.Error() @@ -1222,7 +1222,7 @@ func RunPropertyAssignmentTestForAzureBackupRule_STATUS(subject AzureBackupRule_ copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureBackupRule_STATUS + var other v20231101s.AzureBackupRule_STATUS err := copied.AssignProperties_To_AzureBackupRule_STATUS(&other) if err != nil { return err.Error() @@ -1342,7 +1342,7 @@ func RunPropertyAssignmentTestForAzureRetentionRule(subject AzureRetentionRule) copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureRetentionRule + var other v20231101s.AzureRetentionRule err := copied.AssignProperties_To_AzureRetentionRule(&other) if err != nil { return err.Error() @@ -1460,7 +1460,7 @@ func RunPropertyAssignmentTestForAzureRetentionRule_STATUS(subject AzureRetentio copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureRetentionRule_STATUS + var other v20231101s.AzureRetentionRule_STATUS err := copied.AssignProperties_To_AzureRetentionRule_STATUS(&other) if err != nil { return err.Error() @@ -1579,7 +1579,7 @@ func RunPropertyAssignmentTestForBackupParameters(subject BackupParameters) stri copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupParameters + var other v20231101s.BackupParameters err := copied.AssignProperties_To_BackupParameters(&other) if err != nil { return err.Error() @@ -1689,7 +1689,7 @@ func RunPropertyAssignmentTestForBackupParameters_STATUS(subject BackupParameter copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupParameters_STATUS + var other v20231101s.BackupParameters_STATUS err := copied.AssignProperties_To_BackupParameters_STATUS(&other) if err != nil { return err.Error() @@ -1800,7 +1800,7 @@ func RunPropertyAssignmentTestForDataStoreInfoBase(subject DataStoreInfoBase) st copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DataStoreInfoBase + var other v20231101s.DataStoreInfoBase err := copied.AssignProperties_To_DataStoreInfoBase(&other) if err != nil { return err.Error() @@ -1903,7 +1903,7 @@ func RunPropertyAssignmentTestForDataStoreInfoBase_STATUS(subject DataStoreInfoB copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DataStoreInfoBase_STATUS + var other v20231101s.DataStoreInfoBase_STATUS err := copied.AssignProperties_To_DataStoreInfoBase_STATUS(&other) if err != nil { return err.Error() @@ -2007,7 +2007,7 @@ func RunPropertyAssignmentTestForSourceLifeCycle(subject SourceLifeCycle) string copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SourceLifeCycle + var other v20231101s.SourceLifeCycle err := copied.AssignProperties_To_SourceLifeCycle(&other) if err != nil { return err.Error() @@ -2111,7 +2111,7 @@ func RunPropertyAssignmentTestForSourceLifeCycle_STATUS(subject SourceLifeCycle_ copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SourceLifeCycle_STATUS + var other v20231101s.SourceLifeCycle_STATUS err := copied.AssignProperties_To_SourceLifeCycle_STATUS(&other) if err != nil { return err.Error() @@ -2216,7 +2216,7 @@ func RunPropertyAssignmentTestForTriggerContext(subject TriggerContext) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.TriggerContext + var other v20231101s.TriggerContext err := copied.AssignProperties_To_TriggerContext(&other) if err != nil { return err.Error() @@ -2329,7 +2329,7 @@ func RunPropertyAssignmentTestForTriggerContext_STATUS(subject TriggerContext_ST copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.TriggerContext_STATUS + var other v20231101s.TriggerContext_STATUS err := copied.AssignProperties_To_TriggerContext_STATUS(&other) if err != nil { return err.Error() @@ -2443,7 +2443,7 @@ func RunPropertyAssignmentTestForAdhocBasedTriggerContext(subject AdhocBasedTrig copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AdhocBasedTriggerContext + var other v20231101s.AdhocBasedTriggerContext err := copied.AssignProperties_To_AdhocBasedTriggerContext(&other) if err != nil { return err.Error() @@ -2560,7 +2560,7 @@ func RunPropertyAssignmentTestForAdhocBasedTriggerContext_STATUS(subject AdhocBa copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AdhocBasedTriggerContext_STATUS + var other v20231101s.AdhocBasedTriggerContext_STATUS err := copied.AssignProperties_To_AdhocBasedTriggerContext_STATUS(&other) if err != nil { return err.Error() @@ -2677,7 +2677,7 @@ func RunPropertyAssignmentTestForAzureBackupParams(subject AzureBackupParams) st copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureBackupParams + var other v20231101s.AzureBackupParams err := copied.AssignProperties_To_AzureBackupParams(&other) if err != nil { return err.Error() @@ -2780,7 +2780,7 @@ func RunPropertyAssignmentTestForAzureBackupParams_STATUS(subject AzureBackupPar copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureBackupParams_STATUS + var other v20231101s.AzureBackupParams_STATUS err := copied.AssignProperties_To_AzureBackupParams_STATUS(&other) if err != nil { return err.Error() @@ -2884,7 +2884,7 @@ func RunPropertyAssignmentTestForDeleteOption(subject DeleteOption) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DeleteOption + var other v20231101s.DeleteOption err := copied.AssignProperties_To_DeleteOption(&other) if err != nil { return err.Error() @@ -2994,7 +2994,7 @@ func RunPropertyAssignmentTestForDeleteOption_STATUS(subject DeleteOption_STATUS copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DeleteOption_STATUS + var other v20231101s.DeleteOption_STATUS err := copied.AssignProperties_To_DeleteOption_STATUS(&other) if err != nil { return err.Error() @@ -3105,7 +3105,7 @@ func RunPropertyAssignmentTestForScheduleBasedTriggerContext(subject ScheduleBas copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ScheduleBasedTriggerContext + var other v20231101s.ScheduleBasedTriggerContext err := copied.AssignProperties_To_ScheduleBasedTriggerContext(&other) if err != nil { return err.Error() @@ -3223,7 +3223,7 @@ func RunPropertyAssignmentTestForScheduleBasedTriggerContext_STATUS(subject Sche copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ScheduleBasedTriggerContext_STATUS + var other v20231101s.ScheduleBasedTriggerContext_STATUS err := copied.AssignProperties_To_ScheduleBasedTriggerContext_STATUS(&other) if err != nil { return err.Error() @@ -3341,7 +3341,7 @@ func RunPropertyAssignmentTestForTargetCopySetting(subject TargetCopySetting) st copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.TargetCopySetting + var other v20231101s.TargetCopySetting err := copied.AssignProperties_To_TargetCopySetting(&other) if err != nil { return err.Error() @@ -3444,7 +3444,7 @@ func RunPropertyAssignmentTestForTargetCopySetting_STATUS(subject TargetCopySett copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.TargetCopySetting_STATUS + var other v20231101s.TargetCopySetting_STATUS err := copied.AssignProperties_To_TargetCopySetting_STATUS(&other) if err != nil { return err.Error() @@ -3548,7 +3548,7 @@ func RunPropertyAssignmentTestForAbsoluteDeleteOption(subject AbsoluteDeleteOpti copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AbsoluteDeleteOption + var other v20231101s.AbsoluteDeleteOption err := copied.AssignProperties_To_AbsoluteDeleteOption(&other) if err != nil { return err.Error() @@ -3652,7 +3652,7 @@ func RunPropertyAssignmentTestForAbsoluteDeleteOption_STATUS(subject AbsoluteDel copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AbsoluteDeleteOption_STATUS + var other v20231101s.AbsoluteDeleteOption_STATUS err := copied.AssignProperties_To_AbsoluteDeleteOption_STATUS(&other) if err != nil { return err.Error() @@ -3756,7 +3756,7 @@ func RunPropertyAssignmentTestForAdhocBasedTaggingCriteria(subject AdhocBasedTag copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AdhocBasedTaggingCriteria + var other v20231101s.AdhocBasedTaggingCriteria err := copied.AssignProperties_To_AdhocBasedTaggingCriteria(&other) if err != nil { return err.Error() @@ -3859,7 +3859,7 @@ func RunPropertyAssignmentTestForAdhocBasedTaggingCriteria_STATUS(subject AdhocB copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AdhocBasedTaggingCriteria_STATUS + var other v20231101s.AdhocBasedTaggingCriteria_STATUS err := copied.AssignProperties_To_AdhocBasedTaggingCriteria_STATUS(&other) if err != nil { return err.Error() @@ -3962,7 +3962,7 @@ func RunPropertyAssignmentTestForBackupSchedule(subject BackupSchedule) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupSchedule + var other v20231101s.BackupSchedule err := copied.AssignProperties_To_BackupSchedule(&other) if err != nil { return err.Error() @@ -4065,7 +4065,7 @@ func RunPropertyAssignmentTestForBackupSchedule_STATUS(subject BackupSchedule_ST copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupSchedule_STATUS + var other v20231101s.BackupSchedule_STATUS err := copied.AssignProperties_To_BackupSchedule_STATUS(&other) if err != nil { return err.Error() @@ -4169,7 +4169,7 @@ func RunPropertyAssignmentTestForCopyOption(subject CopyOption) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CopyOption + var other v20231101s.CopyOption err := copied.AssignProperties_To_CopyOption(&other) if err != nil { return err.Error() @@ -4285,7 +4285,7 @@ func RunPropertyAssignmentTestForCopyOption_STATUS(subject CopyOption_STATUS) st copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CopyOption_STATUS + var other v20231101s.CopyOption_STATUS err := copied.AssignProperties_To_CopyOption_STATUS(&other) if err != nil { return err.Error() @@ -4401,7 +4401,7 @@ func RunPropertyAssignmentTestForTaggingCriteria(subject TaggingCriteria) string copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.TaggingCriteria + var other v20231101s.TaggingCriteria err := copied.AssignProperties_To_TaggingCriteria(&other) if err != nil { return err.Error() @@ -4519,7 +4519,7 @@ func RunPropertyAssignmentTestForTaggingCriteria_STATUS(subject TaggingCriteria_ copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.TaggingCriteria_STATUS + var other v20231101s.TaggingCriteria_STATUS err := copied.AssignProperties_To_TaggingCriteria_STATUS(&other) if err != nil { return err.Error() @@ -4638,7 +4638,7 @@ func RunPropertyAssignmentTestForBackupCriteria(subject BackupCriteria) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupCriteria + var other v20231101s.BackupCriteria err := copied.AssignProperties_To_BackupCriteria(&other) if err != nil { return err.Error() @@ -4748,7 +4748,7 @@ func RunPropertyAssignmentTestForBackupCriteria_STATUS(subject BackupCriteria_ST copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupCriteria_STATUS + var other v20231101s.BackupCriteria_STATUS err := copied.AssignProperties_To_BackupCriteria_STATUS(&other) if err != nil { return err.Error() @@ -4859,7 +4859,7 @@ func RunPropertyAssignmentTestForCopyOnExpiryOption(subject CopyOnExpiryOption) copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CopyOnExpiryOption + var other v20231101s.CopyOnExpiryOption err := copied.AssignProperties_To_CopyOnExpiryOption(&other) if err != nil { return err.Error() @@ -4961,7 +4961,7 @@ func RunPropertyAssignmentTestForCopyOnExpiryOption_STATUS(subject CopyOnExpiryO copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CopyOnExpiryOption_STATUS + var other v20231101s.CopyOnExpiryOption_STATUS err := copied.AssignProperties_To_CopyOnExpiryOption_STATUS(&other) if err != nil { return err.Error() @@ -5064,7 +5064,7 @@ func RunPropertyAssignmentTestForCustomCopyOption(subject CustomCopyOption) stri copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CustomCopyOption + var other v20231101s.CustomCopyOption err := copied.AssignProperties_To_CustomCopyOption(&other) if err != nil { return err.Error() @@ -5167,7 +5167,7 @@ func RunPropertyAssignmentTestForCustomCopyOption_STATUS(subject CustomCopyOptio copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CustomCopyOption_STATUS + var other v20231101s.CustomCopyOption_STATUS err := copied.AssignProperties_To_CustomCopyOption_STATUS(&other) if err != nil { return err.Error() @@ -5271,7 +5271,7 @@ func RunPropertyAssignmentTestForImmediateCopyOption(subject ImmediateCopyOption copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ImmediateCopyOption + var other v20231101s.ImmediateCopyOption err := copied.AssignProperties_To_ImmediateCopyOption(&other) if err != nil { return err.Error() @@ -5374,7 +5374,7 @@ func RunPropertyAssignmentTestForImmediateCopyOption_STATUS(subject ImmediateCop copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ImmediateCopyOption_STATUS + var other v20231101s.ImmediateCopyOption_STATUS err := copied.AssignProperties_To_ImmediateCopyOption_STATUS(&other) if err != nil { return err.Error() @@ -5477,7 +5477,7 @@ func RunPropertyAssignmentTestForRetentionTag(subject RetentionTag) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.RetentionTag + var other v20231101s.RetentionTag err := copied.AssignProperties_To_RetentionTag(&other) if err != nil { return err.Error() @@ -5579,7 +5579,7 @@ func RunPropertyAssignmentTestForRetentionTag_STATUS(subject RetentionTag_STATUS copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.RetentionTag_STATUS + var other v20231101s.RetentionTag_STATUS err := copied.AssignProperties_To_RetentionTag_STATUS(&other) if err != nil { return err.Error() @@ -5684,7 +5684,7 @@ func RunPropertyAssignmentTestForScheduleBasedBackupCriteria(subject ScheduleBas copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ScheduleBasedBackupCriteria + var other v20231101s.ScheduleBasedBackupCriteria err := copied.AssignProperties_To_ScheduleBasedBackupCriteria(&other) if err != nil { return err.Error() @@ -5806,7 +5806,7 @@ func RunPropertyAssignmentTestForScheduleBasedBackupCriteria_STATUS(subject Sche copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ScheduleBasedBackupCriteria_STATUS + var other v20231101s.ScheduleBasedBackupCriteria_STATUS err := copied.AssignProperties_To_ScheduleBasedBackupCriteria_STATUS(&other) if err != nil { return err.Error() @@ -5928,7 +5928,7 @@ func RunPropertyAssignmentTestForDay(subject Day) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.Day + var other v20231101s.Day err := copied.AssignProperties_To_Day(&other) if err != nil { return err.Error() @@ -6031,7 +6031,7 @@ func RunPropertyAssignmentTestForDay_STATUS(subject Day_STATUS) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.Day_STATUS + var other v20231101s.Day_STATUS err := copied.AssignProperties_To_Day_STATUS(&other) if err != nil { return err.Error() diff --git a/v2/api/dataprotection/v1api20230101/storage/structure.txt b/v2/api/dataprotection/v1api20230101/storage/structure.txt index 3fad0c94e73..af9790623b3 100644 --- a/v2/api/dataprotection/v1api20230101/storage/structure.txt +++ b/v2/api/dataprotection/v1api20230101/storage/structure.txt @@ -101,225 +101,6 @@ github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101/stor │ │ └── PropertyBag: genruntime.PropertyBag │ ├── Tags: map[string]string │ └── Type: *string -├── BackupVaultsBackupInstance: Resource -│ ├── Owner: dataprotection/v1api20230101.BackupVault -│ ├── Spec: Object (6 properties) -│ │ ├── AzureName: string -│ │ ├── OriginalVersion: string -│ │ ├── Owner: *genruntime.KnownResourceReference -│ │ ├── Properties: *Object (8 properties) -│ │ │ ├── DataSourceInfo: *Object (8 properties) -│ │ │ │ ├── DatasourceType: *string -│ │ │ │ ├── ObjectType: *string -│ │ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ │ ├── ResourceLocation: *string -│ │ │ │ ├── ResourceName: *string -│ │ │ │ ├── ResourceReference: *genruntime.ResourceReference -│ │ │ │ ├── ResourceType: *string -│ │ │ │ └── ResourceUri: *string -│ │ │ ├── DataSourceSetInfo: *Object (8 properties) -│ │ │ │ ├── DatasourceType: *string -│ │ │ │ ├── ObjectType: *string -│ │ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ │ ├── ResourceLocation: *string -│ │ │ │ ├── ResourceName: *string -│ │ │ │ ├── ResourceReference: *genruntime.ResourceReference -│ │ │ │ ├── ResourceType: *string -│ │ │ │ └── ResourceUri: *string -│ │ │ ├── DatasourceAuthCredentials: *Object (2 properties) -│ │ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ │ └── SecretStoreBasedAuthCredentials: *Object (3 properties) -│ │ │ │ ├── ObjectType: *string -│ │ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ │ └── SecretStoreResource: *Object (4 properties) -│ │ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ │ ├── SecretStoreType: *string -│ │ │ │ ├── Uri: *string -│ │ │ │ └── Value: *string -│ │ │ ├── FriendlyName: *string -│ │ │ ├── ObjectType: *string -│ │ │ ├── PolicyInfo: *Object (3 properties) -│ │ │ │ ├── PolicyParameters: *Object (3 properties) -│ │ │ │ │ ├── BackupDatasourceParametersList: Object (3 properties)[] -│ │ │ │ │ │ ├── Blob: *Object (3 properties) -│ │ │ │ │ │ │ ├── ContainersList: string[] -│ │ │ │ │ │ │ ├── ObjectType: *string -│ │ │ │ │ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ │ │ │ │ ├── KubernetesCluster: *Object (9 properties) -│ │ │ │ │ │ │ ├── ExcludedNamespaces: string[] -│ │ │ │ │ │ │ ├── ExcludedResourceTypes: string[] -│ │ │ │ │ │ │ ├── IncludeClusterScopeResources: *bool -│ │ │ │ │ │ │ ├── IncludedNamespaces: string[] -│ │ │ │ │ │ │ ├── IncludedResourceTypes: string[] -│ │ │ │ │ │ │ ├── LabelSelectors: string[] -│ │ │ │ │ │ │ ├── ObjectType: *string -│ │ │ │ │ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ │ │ │ │ └── SnapshotVolumes: *bool -│ │ │ │ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ │ │ │ ├── DataStoreParametersList: Object (2 properties)[] -│ │ │ │ │ │ ├── AzureOperationalStoreParameters: *Object (4 properties) -│ │ │ │ │ │ │ ├── DataStoreType: *string -│ │ │ │ │ │ │ ├── ObjectType: *string -│ │ │ │ │ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ │ │ │ │ └── ResourceGroupId: *string -│ │ │ │ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ │ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ │ │ ├── PolicyReference: *genruntime.ResourceReference -│ │ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ └── ValidationType: *string -│ │ ├── PropertyBag: genruntime.PropertyBag -│ │ └── Tags: map[string]string -│ └── Status: Object (8 properties) -│ ├── Conditions: conditions.Condition[] -│ ├── Id: *string -│ ├── Name: *string -│ ├── Properties: *Object (12 properties) -│ │ ├── CurrentProtectionState: *string -│ │ ├── DataSourceInfo: *Object (8 properties) -│ │ │ ├── DatasourceType: *string -│ │ │ ├── ObjectType: *string -│ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ ├── ResourceID: *string -│ │ │ ├── ResourceLocation: *string -│ │ │ ├── ResourceName: *string -│ │ │ ├── ResourceType: *string -│ │ │ └── ResourceUri: *string -│ │ ├── DataSourceSetInfo: *Object (8 properties) -│ │ │ ├── DatasourceType: *string -│ │ │ ├── ObjectType: *string -│ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ ├── ResourceID: *string -│ │ │ ├── ResourceLocation: *string -│ │ │ ├── ResourceName: *string -│ │ │ ├── ResourceType: *string -│ │ │ └── ResourceUri: *string -│ │ ├── DatasourceAuthCredentials: *Object (2 properties) -│ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ └── SecretStoreBasedAuthCredentials: *Object (3 properties) -│ │ │ ├── ObjectType: *string -│ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ └── SecretStoreResource: *Object (4 properties) -│ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ ├── SecretStoreType: *string -│ │ │ ├── Uri: *string -│ │ │ └── Value: *string -│ │ ├── FriendlyName: *string -│ │ ├── ObjectType: *string -│ │ ├── PolicyInfo: *Object (4 properties) -│ │ │ ├── PolicyId: *string -│ │ │ ├── PolicyParameters: *Object (3 properties) -│ │ │ │ ├── BackupDatasourceParametersList: Object (3 properties)[] -│ │ │ │ │ ├── Blob: *Object (3 properties) -│ │ │ │ │ │ ├── ContainersList: string[] -│ │ │ │ │ │ ├── ObjectType: *string -│ │ │ │ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ │ │ │ ├── KubernetesCluster: *Object (9 properties) -│ │ │ │ │ │ ├── ExcludedNamespaces: string[] -│ │ │ │ │ │ ├── ExcludedResourceTypes: string[] -│ │ │ │ │ │ ├── IncludeClusterScopeResources: *bool -│ │ │ │ │ │ ├── IncludedNamespaces: string[] -│ │ │ │ │ │ ├── IncludedResourceTypes: string[] -│ │ │ │ │ │ ├── LabelSelectors: string[] -│ │ │ │ │ │ ├── ObjectType: *string -│ │ │ │ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ │ │ │ └── SnapshotVolumes: *bool -│ │ │ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ │ │ ├── DataStoreParametersList: Object (2 properties)[] -│ │ │ │ │ ├── AzureOperationalStoreParameters: *Object (4 properties) -│ │ │ │ │ │ ├── DataStoreType: *string -│ │ │ │ │ │ ├── ObjectType: *string -│ │ │ │ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ │ │ │ └── ResourceGroupId: *string -│ │ │ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ │ ├── PolicyVersion: *string -│ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ ├── PropertyBag: genruntime.PropertyBag -│ │ ├── ProtectionErrorDetails: *Object (10 properties) -│ │ │ ├── Code: *string -│ │ │ ├── Details: Object (9 properties)[] -│ │ │ │ ├── Code: *string -│ │ │ │ ├── InnerError: *Object (4 properties) -│ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ ├── Code: *string -│ │ │ │ │ ├── EmbeddedInnerError: *Object (3 properties) -│ │ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ │ ├── Code: *string -│ │ │ │ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ │ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ │ │ ├── IsRetryable: *bool -│ │ │ │ ├── IsUserError: *bool -│ │ │ │ ├── Message: *string -│ │ │ │ ├── Properties: map[string]string -│ │ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ │ ├── RecommendedAction: string[] -│ │ │ │ └── Target: *string -│ │ │ ├── InnerError: *Object (4 properties) -│ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ ├── Code: *string -│ │ │ │ ├── EmbeddedInnerError: *Object (3 properties) -│ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ ├── Code: *string -│ │ │ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ │ ├── IsRetryable: *bool -│ │ │ ├── IsUserError: *bool -│ │ │ ├── Message: *string -│ │ │ ├── Properties: map[string]string -│ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ ├── RecommendedAction: string[] -│ │ │ └── Target: *string -│ │ ├── ProtectionStatus: *Object (3 properties) -│ │ │ ├── ErrorDetails: *Object (10 properties) -│ │ │ │ ├── Code: *string -│ │ │ │ ├── Details: Object (9 properties)[] -│ │ │ │ │ ├── Code: *string -│ │ │ │ │ ├── InnerError: *Object (4 properties) -│ │ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ │ ├── Code: *string -│ │ │ │ │ │ ├── EmbeddedInnerError: *Object (3 properties) -│ │ │ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ │ │ ├── Code: *string -│ │ │ │ │ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ │ │ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ │ │ │ ├── IsRetryable: *bool -│ │ │ │ │ ├── IsUserError: *bool -│ │ │ │ │ ├── Message: *string -│ │ │ │ │ ├── Properties: map[string]string -│ │ │ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ │ │ ├── RecommendedAction: string[] -│ │ │ │ │ └── Target: *string -│ │ │ │ ├── InnerError: *Object (4 properties) -│ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ ├── Code: *string -│ │ │ │ │ ├── EmbeddedInnerError: *Object (3 properties) -│ │ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ │ ├── Code: *string -│ │ │ │ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ │ │ │ └── PropertyBag: genruntime.PropertyBag -│ │ │ │ ├── IsRetryable: *bool -│ │ │ │ ├── IsUserError: *bool -│ │ │ │ ├── Message: *string -│ │ │ │ ├── Properties: map[string]string -│ │ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ │ ├── RecommendedAction: string[] -│ │ │ │ └── Target: *string -│ │ │ ├── PropertyBag: genruntime.PropertyBag -│ │ │ └── Status: *string -│ │ ├── ProvisioningState: *string -│ │ └── ValidationType: *string -│ ├── PropertyBag: genruntime.PropertyBag -│ ├── SystemData: *Object (7 properties) -│ │ ├── CreatedAt: *string -│ │ ├── CreatedBy: *string -│ │ ├── CreatedByType: *string -│ │ ├── LastModifiedAt: *string -│ │ ├── LastModifiedBy: *string -│ │ ├── LastModifiedByType: *string -│ │ └── PropertyBag: genruntime.PropertyBag -│ ├── Tags: map[string]string -│ └── Type: *string ├── BackupVaultsBackupPolicy: Resource │ ├── Owner: dataprotection/v1api20230101.BackupVault │ ├── Spec: Object (5 properties) @@ -541,24 +322,16 @@ github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101/stor ├── augmentConversionForAdhocBasedTaggingCriteria_STATUS: Interface ├── augmentConversionForAdhocBasedTriggerContext: Interface ├── augmentConversionForAdhocBasedTriggerContext_STATUS: Interface -├── augmentConversionForAuthCredentials: Interface -├── augmentConversionForAuthCredentials_STATUS: Interface ├── augmentConversionForAzureBackupParams: Interface ├── augmentConversionForAzureBackupParams_STATUS: Interface ├── augmentConversionForAzureBackupRule: Interface ├── augmentConversionForAzureBackupRule_STATUS: Interface ├── augmentConversionForAzureMonitorAlertSettings: Interface ├── augmentConversionForAzureMonitorAlertSettings_STATUS: Interface -├── augmentConversionForAzureOperationalStoreParameters: Interface -├── augmentConversionForAzureOperationalStoreParameters_STATUS: Interface ├── augmentConversionForAzureRetentionRule: Interface ├── augmentConversionForAzureRetentionRule_STATUS: Interface ├── augmentConversionForBackupCriteria: Interface ├── augmentConversionForBackupCriteria_STATUS: Interface -├── augmentConversionForBackupDatasourceParameters: Interface -├── augmentConversionForBackupDatasourceParameters_STATUS: Interface -├── augmentConversionForBackupInstance: Interface -├── augmentConversionForBackupInstance_STATUS: Interface ├── augmentConversionForBackupParameters: Interface ├── augmentConversionForBackupParameters_STATUS: Interface ├── augmentConversionForBackupPolicy: Interface @@ -572,18 +345,13 @@ github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101/stor ├── augmentConversionForBackupVaultSpec: Interface ├── augmentConversionForBackupVault_STATUS: Interface ├── augmentConversionForBackupVault_Spec: Interface -├── augmentConversionForBackupVaultsBackupInstance: Interface ├── augmentConversionForBackupVaultsBackupPolicy: Interface -├── augmentConversionForBackupVaults_BackupInstance_STATUS: Interface -├── augmentConversionForBackupVaults_BackupInstance_Spec: Interface ├── augmentConversionForBackupVaults_BackupPolicy_STATUS: Interface ├── augmentConversionForBackupVaults_BackupPolicy_Spec: Interface ├── augmentConversionForBaseBackupPolicy: Interface ├── augmentConversionForBaseBackupPolicy_STATUS: Interface ├── augmentConversionForBasePolicyRule: Interface ├── augmentConversionForBasePolicyRule_STATUS: Interface -├── augmentConversionForBlobBackupDatasourceParameters: Interface -├── augmentConversionForBlobBackupDatasourceParameters_STATUS: Interface ├── augmentConversionForCopyOnExpiryOption: Interface ├── augmentConversionForCopyOnExpiryOption_STATUS: Interface ├── augmentConversionForCopyOption: Interface @@ -594,12 +362,6 @@ github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101/stor ├── augmentConversionForCustomCopyOption_STATUS: Interface ├── augmentConversionForDataStoreInfoBase: Interface ├── augmentConversionForDataStoreInfoBase_STATUS: Interface -├── augmentConversionForDataStoreParameters: Interface -├── augmentConversionForDataStoreParameters_STATUS: Interface -├── augmentConversionForDatasource: Interface -├── augmentConversionForDatasourceSet: Interface -├── augmentConversionForDatasourceSet_STATUS: Interface -├── augmentConversionForDatasource_STATUS: Interface ├── augmentConversionForDay: Interface ├── augmentConversionForDay_STATUS: Interface ├── augmentConversionForDeleteOption: Interface @@ -612,17 +374,8 @@ github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101/stor ├── augmentConversionForImmediateCopyOption_STATUS: Interface ├── augmentConversionForImmutabilitySettings: Interface ├── augmentConversionForImmutabilitySettings_STATUS: Interface -├── augmentConversionForInnerError_STATUS: Interface -├── augmentConversionForInnerError_STATUS_Unrolled: Interface -├── augmentConversionForKubernetesClusterBackupDatasourceParameters: Interface -├── augmentConversionForKubernetesClusterBackupDatasourceParameters_STATUS: Interface ├── augmentConversionForMonitoringSettings: Interface ├── augmentConversionForMonitoringSettings_STATUS: Interface -├── augmentConversionForPolicyInfo: Interface -├── augmentConversionForPolicyInfo_STATUS: Interface -├── augmentConversionForPolicyParameters: Interface -├── augmentConversionForPolicyParameters_STATUS: Interface -├── augmentConversionForProtectionStatusDetails_STATUS: Interface ├── augmentConversionForResourceMoveDetails_STATUS: Interface ├── augmentConversionForRetentionTag: Interface ├── augmentConversionForRetentionTag_STATUS: Interface @@ -630,10 +383,6 @@ github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101/stor ├── augmentConversionForScheduleBasedBackupCriteria_STATUS: Interface ├── augmentConversionForScheduleBasedTriggerContext: Interface ├── augmentConversionForScheduleBasedTriggerContext_STATUS: Interface -├── augmentConversionForSecretStoreBasedAuthCredentials: Interface -├── augmentConversionForSecretStoreBasedAuthCredentials_STATUS: Interface -├── augmentConversionForSecretStoreResource: Interface -├── augmentConversionForSecretStoreResource_STATUS: Interface ├── augmentConversionForSecuritySettings: Interface ├── augmentConversionForSecuritySettings_STATUS: Interface ├── augmentConversionForSoftDeleteSettings: Interface @@ -648,6 +397,4 @@ github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101/stor ├── augmentConversionForTargetCopySetting: Interface ├── augmentConversionForTargetCopySetting_STATUS: Interface ├── augmentConversionForTriggerContext: Interface -├── augmentConversionForTriggerContext_STATUS: Interface -├── augmentConversionForUserFacingError_STATUS: Interface -└── augmentConversionForUserFacingError_STATUS_Unrolled: Interface +└── augmentConversionForTriggerContext_STATUS: Interface diff --git a/v2/api/dataprotection/v1api20230101/structure.txt b/v2/api/dataprotection/v1api20230101/structure.txt index 56a5f9c2283..354854f7443 100644 --- a/v2/api/dataprotection/v1api20230101/structure.txt +++ b/v2/api/dataprotection/v1api20230101/structure.txt @@ -253,230 +253,6 @@ github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101 │ │ ├── "LocallyRedundant" │ │ └── "ZoneRedundant" │ └── Tags: map[string]string -├── BackupVaultsBackupInstance: Resource -│ ├── Owner: BackupVault -│ ├── Spec: Object (4 properties) -│ │ ├── AzureName: string -│ │ ├── Owner: *genruntime.KnownResourceReference -│ │ ├── Properties: *Object (7 properties) -│ │ │ ├── DataSourceInfo: *Object (7 properties) -│ │ │ │ ├── DatasourceType: *string -│ │ │ │ ├── ObjectType: *string -│ │ │ │ ├── ResourceLocation: *string -│ │ │ │ ├── ResourceName: *string -│ │ │ │ ├── ResourceReference: *genruntime.ResourceReference -│ │ │ │ ├── ResourceType: *string -│ │ │ │ └── ResourceUri: *string -│ │ │ ├── DataSourceSetInfo: *Object (7 properties) -│ │ │ │ ├── DatasourceType: *string -│ │ │ │ ├── ObjectType: *string -│ │ │ │ ├── ResourceLocation: *string -│ │ │ │ ├── ResourceName: *string -│ │ │ │ ├── ResourceReference: *genruntime.ResourceReference -│ │ │ │ ├── ResourceType: *string -│ │ │ │ └── ResourceUri: *string -│ │ │ ├── DatasourceAuthCredentials: *Object (1 property) -│ │ │ │ └── SecretStoreBasedAuthCredentials: *Object (2 properties) -│ │ │ │ ├── ObjectType: *Enum (1 value) -│ │ │ │ │ └── "SecretStoreBasedAuthCredentials" -│ │ │ │ └── SecretStoreResource: *Object (3 properties) -│ │ │ │ ├── SecretStoreType: *Enum (2 values) -│ │ │ │ │ ├── "AzureKeyVault" -│ │ │ │ │ └── "Invalid" -│ │ │ │ ├── Uri: *string -│ │ │ │ └── Value: *string -│ │ │ ├── FriendlyName: *string -│ │ │ ├── ObjectType: *string -│ │ │ ├── PolicyInfo: *Object (2 properties) -│ │ │ │ ├── PolicyParameters: *Object (2 properties) -│ │ │ │ │ ├── BackupDatasourceParametersList: Object (2 properties)[] -│ │ │ │ │ │ ├── Blob: *Object (2 properties) -│ │ │ │ │ │ │ ├── ContainersList: string[] -│ │ │ │ │ │ │ └── ObjectType: *Enum (1 value) -│ │ │ │ │ │ │ └── "BlobBackupDatasourceParameters" -│ │ │ │ │ │ └── KubernetesCluster: *Object (8 properties) -│ │ │ │ │ │ ├── ExcludedNamespaces: string[] -│ │ │ │ │ │ ├── ExcludedResourceTypes: string[] -│ │ │ │ │ │ ├── IncludeClusterScopeResources: *bool -│ │ │ │ │ │ ├── IncludedNamespaces: string[] -│ │ │ │ │ │ ├── IncludedResourceTypes: string[] -│ │ │ │ │ │ ├── LabelSelectors: string[] -│ │ │ │ │ │ ├── ObjectType: *Enum (1 value) -│ │ │ │ │ │ │ └── "KubernetesClusterBackupDatasourceParameters" -│ │ │ │ │ │ └── SnapshotVolumes: *bool -│ │ │ │ │ └── DataStoreParametersList: Object (1 property)[] -│ │ │ │ │ └── AzureOperationalStoreParameters: *Object (3 properties) -│ │ │ │ │ ├── DataStoreType: *Enum (3 values) -│ │ │ │ │ │ ├── "ArchiveStore" -│ │ │ │ │ │ ├── "OperationalStore" -│ │ │ │ │ │ └── "VaultStore" -│ │ │ │ │ ├── ObjectType: *Enum (1 value) -│ │ │ │ │ │ └── "AzureOperationalStoreParameters" -│ │ │ │ │ └── ResourceGroupId: *string -│ │ │ │ └── PolicyReference: *genruntime.ResourceReference -│ │ │ └── ValidationType: *Enum (2 values) -│ │ │ ├── "DeepValidation" -│ │ │ └── "ShallowValidation" -│ │ └── Tags: map[string]string -│ └── Status: Object (7 properties) -│ ├── Conditions: conditions.Condition[] -│ ├── Id: *string -│ ├── Name: *string -│ ├── Properties: *Object (11 properties) -│ │ ├── CurrentProtectionState: *Enum (12 values) -│ │ │ ├── "BackupSchedulesSuspended" -│ │ │ ├── "ConfiguringProtection" -│ │ │ ├── "ConfiguringProtectionFailed" -│ │ │ ├── "Invalid" -│ │ │ ├── "NotProtected" -│ │ │ ├── "ProtectionConfigured" -│ │ │ ├── "ProtectionError" -│ │ │ ├── "ProtectionStopped" -│ │ │ ├── "RetentionSchedulesSuspended" -│ │ │ ├── "SoftDeleted" -│ │ │ ├── "SoftDeleting" -│ │ │ └── "UpdatingProtection" -│ │ ├── DataSourceInfo: *Object (7 properties) -│ │ │ ├── DatasourceType: *string -│ │ │ ├── ObjectType: *string -│ │ │ ├── ResourceID: *string -│ │ │ ├── ResourceLocation: *string -│ │ │ ├── ResourceName: *string -│ │ │ ├── ResourceType: *string -│ │ │ └── ResourceUri: *string -│ │ ├── DataSourceSetInfo: *Object (7 properties) -│ │ │ ├── DatasourceType: *string -│ │ │ ├── ObjectType: *string -│ │ │ ├── ResourceID: *string -│ │ │ ├── ResourceLocation: *string -│ │ │ ├── ResourceName: *string -│ │ │ ├── ResourceType: *string -│ │ │ └── ResourceUri: *string -│ │ ├── DatasourceAuthCredentials: *Object (1 property) -│ │ │ └── SecretStoreBasedAuthCredentials: *Object (2 properties) -│ │ │ ├── ObjectType: *Enum (1 value) -│ │ │ │ └── "SecretStoreBasedAuthCredentials" -│ │ │ └── SecretStoreResource: *Object (3 properties) -│ │ │ ├── SecretStoreType: *Enum (2 values) -│ │ │ │ ├── "AzureKeyVault" -│ │ │ │ └── "Invalid" -│ │ │ ├── Uri: *string -│ │ │ └── Value: *string -│ │ ├── FriendlyName: *string -│ │ ├── ObjectType: *string -│ │ ├── PolicyInfo: *Object (3 properties) -│ │ │ ├── PolicyId: *string -│ │ │ ├── PolicyParameters: *Object (2 properties) -│ │ │ │ ├── BackupDatasourceParametersList: Object (2 properties)[] -│ │ │ │ │ ├── Blob: *Object (2 properties) -│ │ │ │ │ │ ├── ContainersList: string[] -│ │ │ │ │ │ └── ObjectType: *Enum (1 value) -│ │ │ │ │ │ └── "BlobBackupDatasourceParameters" -│ │ │ │ │ └── KubernetesCluster: *Object (8 properties) -│ │ │ │ │ ├── ExcludedNamespaces: string[] -│ │ │ │ │ ├── ExcludedResourceTypes: string[] -│ │ │ │ │ ├── IncludeClusterScopeResources: *bool -│ │ │ │ │ ├── IncludedNamespaces: string[] -│ │ │ │ │ ├── IncludedResourceTypes: string[] -│ │ │ │ │ ├── LabelSelectors: string[] -│ │ │ │ │ ├── ObjectType: *Enum (1 value) -│ │ │ │ │ │ └── "KubernetesClusterBackupDatasourceParameters" -│ │ │ │ │ └── SnapshotVolumes: *bool -│ │ │ │ └── DataStoreParametersList: Object (1 property)[] -│ │ │ │ └── AzureOperationalStoreParameters: *Object (3 properties) -│ │ │ │ ├── DataStoreType: *Enum (3 values) -│ │ │ │ │ ├── "ArchiveStore" -│ │ │ │ │ ├── "OperationalStore" -│ │ │ │ │ └── "VaultStore" -│ │ │ │ ├── ObjectType: *Enum (1 value) -│ │ │ │ │ └── "AzureOperationalStoreParameters" -│ │ │ │ └── ResourceGroupId: *string -│ │ │ └── PolicyVersion: *string -│ │ ├── ProtectionErrorDetails: *Object (9 properties) -│ │ │ ├── Code: *string -│ │ │ ├── Details: Object (8 properties)[] -│ │ │ │ ├── Code: *string -│ │ │ │ ├── InnerError: *Object (3 properties) -│ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ ├── Code: *string -│ │ │ │ │ └── EmbeddedInnerError: *Object (2 properties) -│ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ └── Code: *string -│ │ │ │ ├── IsRetryable: *bool -│ │ │ │ ├── IsUserError: *bool -│ │ │ │ ├── Message: *string -│ │ │ │ ├── Properties: map[string]string -│ │ │ │ ├── RecommendedAction: string[] -│ │ │ │ └── Target: *string -│ │ │ ├── InnerError: *Object (3 properties) -│ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ ├── Code: *string -│ │ │ │ └── EmbeddedInnerError: *Object (2 properties) -│ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ └── Code: *string -│ │ │ ├── IsRetryable: *bool -│ │ │ ├── IsUserError: *bool -│ │ │ ├── Message: *string -│ │ │ ├── Properties: map[string]string -│ │ │ ├── RecommendedAction: string[] -│ │ │ └── Target: *string -│ │ ├── ProtectionStatus: *Object (2 properties) -│ │ │ ├── ErrorDetails: *Object (9 properties) -│ │ │ │ ├── Code: *string -│ │ │ │ ├── Details: Object (8 properties)[] -│ │ │ │ │ ├── Code: *string -│ │ │ │ │ ├── InnerError: *Object (3 properties) -│ │ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ │ ├── Code: *string -│ │ │ │ │ │ └── EmbeddedInnerError: *Object (2 properties) -│ │ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ │ └── Code: *string -│ │ │ │ │ ├── IsRetryable: *bool -│ │ │ │ │ ├── IsUserError: *bool -│ │ │ │ │ ├── Message: *string -│ │ │ │ │ ├── Properties: map[string]string -│ │ │ │ │ ├── RecommendedAction: string[] -│ │ │ │ │ └── Target: *string -│ │ │ │ ├── InnerError: *Object (3 properties) -│ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ ├── Code: *string -│ │ │ │ │ └── EmbeddedInnerError: *Object (2 properties) -│ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ └── Code: *string -│ │ │ │ ├── IsRetryable: *bool -│ │ │ │ ├── IsUserError: *bool -│ │ │ │ ├── Message: *string -│ │ │ │ ├── Properties: map[string]string -│ │ │ │ ├── RecommendedAction: string[] -│ │ │ │ └── Target: *string -│ │ │ └── Status: *Enum (6 values) -│ │ │ ├── "ConfiguringProtection" -│ │ │ ├── "ConfiguringProtectionFailed" -│ │ │ ├── "ProtectionConfigured" -│ │ │ ├── "ProtectionStopped" -│ │ │ ├── "SoftDeleted" -│ │ │ └── "SoftDeleting" -│ │ ├── ProvisioningState: *string -│ │ └── ValidationType: *Enum (2 values) -│ │ ├── "DeepValidation" -│ │ └── "ShallowValidation" -│ ├── SystemData: *Object (6 properties) -│ │ ├── CreatedAt: *string -│ │ ├── CreatedBy: *string -│ │ ├── CreatedByType: *Enum (4 values) -│ │ │ ├── "Application" -│ │ │ ├── "Key" -│ │ │ ├── "ManagedIdentity" -│ │ │ └── "User" -│ │ ├── LastModifiedAt: *string -│ │ ├── LastModifiedBy: *string -│ │ └── LastModifiedByType: *Enum (4 values) -│ │ ├── "Application" -│ │ ├── "Key" -│ │ ├── "ManagedIdentity" -│ │ └── "User" -│ ├── Tags: map[string]string -│ └── Type: *string ├── BackupVaultsBackupPolicy: Resource │ ├── Owner: BackupVault │ ├── Spec: Object (3 properties) @@ -736,226 +512,6 @@ github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101 │ │ ├── "ManagedIdentity" │ │ └── "User" │ └── Type: *string -├── BackupVaults_BackupInstance_STATUS_ARM: Object (6 properties) -│ ├── Id: *string -│ ├── Name: *string -│ ├── Properties: *Object (11 properties) -│ │ ├── CurrentProtectionState: *Enum (12 values) -│ │ │ ├── "BackupSchedulesSuspended" -│ │ │ ├── "ConfiguringProtection" -│ │ │ ├── "ConfiguringProtectionFailed" -│ │ │ ├── "Invalid" -│ │ │ ├── "NotProtected" -│ │ │ ├── "ProtectionConfigured" -│ │ │ ├── "ProtectionError" -│ │ │ ├── "ProtectionStopped" -│ │ │ ├── "RetentionSchedulesSuspended" -│ │ │ ├── "SoftDeleted" -│ │ │ ├── "SoftDeleting" -│ │ │ └── "UpdatingProtection" -│ │ ├── DataSourceInfo: *Object (7 properties) -│ │ │ ├── DatasourceType: *string -│ │ │ ├── ObjectType: *string -│ │ │ ├── ResourceID: *string -│ │ │ ├── ResourceLocation: *string -│ │ │ ├── ResourceName: *string -│ │ │ ├── ResourceType: *string -│ │ │ └── ResourceUri: *string -│ │ ├── DataSourceSetInfo: *Object (7 properties) -│ │ │ ├── DatasourceType: *string -│ │ │ ├── ObjectType: *string -│ │ │ ├── ResourceID: *string -│ │ │ ├── ResourceLocation: *string -│ │ │ ├── ResourceName: *string -│ │ │ ├── ResourceType: *string -│ │ │ └── ResourceUri: *string -│ │ ├── DatasourceAuthCredentials: *Object (1 property) -│ │ │ └── SecretStoreBasedAuthCredentials: *Object (2 properties) -│ │ │ ├── ObjectType: Enum (1 value) -│ │ │ │ └── "SecretStoreBasedAuthCredentials" -│ │ │ └── SecretStoreResource: *Object (3 properties) -│ │ │ ├── SecretStoreType: *Enum (2 values) -│ │ │ │ ├── "AzureKeyVault" -│ │ │ │ └── "Invalid" -│ │ │ ├── Uri: *string -│ │ │ └── Value: *string -│ │ ├── FriendlyName: *string -│ │ ├── ObjectType: *string -│ │ ├── PolicyInfo: *Object (3 properties) -│ │ │ ├── PolicyId: *string -│ │ │ ├── PolicyParameters: *Object (2 properties) -│ │ │ │ ├── BackupDatasourceParametersList: Object (2 properties)[] -│ │ │ │ │ ├── Blob: *Object (2 properties) -│ │ │ │ │ │ ├── ContainersList: string[] -│ │ │ │ │ │ └── ObjectType: Enum (1 value) -│ │ │ │ │ │ └── "BlobBackupDatasourceParameters" -│ │ │ │ │ └── KubernetesCluster: *Object (8 properties) -│ │ │ │ │ ├── ExcludedNamespaces: string[] -│ │ │ │ │ ├── ExcludedResourceTypes: string[] -│ │ │ │ │ ├── IncludeClusterScopeResources: *bool -│ │ │ │ │ ├── IncludedNamespaces: string[] -│ │ │ │ │ ├── IncludedResourceTypes: string[] -│ │ │ │ │ ├── LabelSelectors: string[] -│ │ │ │ │ ├── ObjectType: Enum (1 value) -│ │ │ │ │ │ └── "KubernetesClusterBackupDatasourceParameters" -│ │ │ │ │ └── SnapshotVolumes: *bool -│ │ │ │ └── DataStoreParametersList: Object (1 property)[] -│ │ │ │ └── AzureOperationalStoreParameters: *Object (3 properties) -│ │ │ │ ├── DataStoreType: *Enum (3 values) -│ │ │ │ │ ├── "ArchiveStore" -│ │ │ │ │ ├── "OperationalStore" -│ │ │ │ │ └── "VaultStore" -│ │ │ │ ├── ObjectType: Enum (1 value) -│ │ │ │ │ └── "AzureOperationalStoreParameters" -│ │ │ │ └── ResourceGroupId: *string -│ │ │ └── PolicyVersion: *string -│ │ ├── ProtectionErrorDetails: *Object (9 properties) -│ │ │ ├── Code: *string -│ │ │ ├── Details: Object (8 properties)[] -│ │ │ │ ├── Code: *string -│ │ │ │ ├── InnerError: *Object (3 properties) -│ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ ├── Code: *string -│ │ │ │ │ └── EmbeddedInnerError: *Object (2 properties) -│ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ └── Code: *string -│ │ │ │ ├── IsRetryable: *bool -│ │ │ │ ├── IsUserError: *bool -│ │ │ │ ├── Message: *string -│ │ │ │ ├── Properties: map[string]string -│ │ │ │ ├── RecommendedAction: string[] -│ │ │ │ └── Target: *string -│ │ │ ├── InnerError: *Object (3 properties) -│ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ ├── Code: *string -│ │ │ │ └── EmbeddedInnerError: *Object (2 properties) -│ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ └── Code: *string -│ │ │ ├── IsRetryable: *bool -│ │ │ ├── IsUserError: *bool -│ │ │ ├── Message: *string -│ │ │ ├── Properties: map[string]string -│ │ │ ├── RecommendedAction: string[] -│ │ │ └── Target: *string -│ │ ├── ProtectionStatus: *Object (2 properties) -│ │ │ ├── ErrorDetails: *Object (9 properties) -│ │ │ │ ├── Code: *string -│ │ │ │ ├── Details: Object (8 properties)[] -│ │ │ │ │ ├── Code: *string -│ │ │ │ │ ├── InnerError: *Object (3 properties) -│ │ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ │ ├── Code: *string -│ │ │ │ │ │ └── EmbeddedInnerError: *Object (2 properties) -│ │ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ │ └── Code: *string -│ │ │ │ │ ├── IsRetryable: *bool -│ │ │ │ │ ├── IsUserError: *bool -│ │ │ │ │ ├── Message: *string -│ │ │ │ │ ├── Properties: map[string]string -│ │ │ │ │ ├── RecommendedAction: string[] -│ │ │ │ │ └── Target: *string -│ │ │ │ ├── InnerError: *Object (3 properties) -│ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ ├── Code: *string -│ │ │ │ │ └── EmbeddedInnerError: *Object (2 properties) -│ │ │ │ │ ├── AdditionalInfo: map[string]string -│ │ │ │ │ └── Code: *string -│ │ │ │ ├── IsRetryable: *bool -│ │ │ │ ├── IsUserError: *bool -│ │ │ │ ├── Message: *string -│ │ │ │ ├── Properties: map[string]string -│ │ │ │ ├── RecommendedAction: string[] -│ │ │ │ └── Target: *string -│ │ │ └── Status: *Enum (6 values) -│ │ │ ├── "ConfiguringProtection" -│ │ │ ├── "ConfiguringProtectionFailed" -│ │ │ ├── "ProtectionConfigured" -│ │ │ ├── "ProtectionStopped" -│ │ │ ├── "SoftDeleted" -│ │ │ └── "SoftDeleting" -│ │ ├── ProvisioningState: *string -│ │ └── ValidationType: *Enum (2 values) -│ │ ├── "DeepValidation" -│ │ └── "ShallowValidation" -│ ├── SystemData: *Object (6 properties) -│ │ ├── CreatedAt: *string -│ │ ├── CreatedBy: *string -│ │ ├── CreatedByType: *Enum (4 values) -│ │ │ ├── "Application" -│ │ │ ├── "Key" -│ │ │ ├── "ManagedIdentity" -│ │ │ └── "User" -│ │ ├── LastModifiedAt: *string -│ │ ├── LastModifiedBy: *string -│ │ └── LastModifiedByType: *Enum (4 values) -│ │ ├── "Application" -│ │ ├── "Key" -│ │ ├── "ManagedIdentity" -│ │ └── "User" -│ ├── Tags: map[string]string -│ └── Type: *string -├── BackupVaults_BackupInstance_Spec_ARM: Object (3 properties) -│ ├── Name: string -│ ├── Properties: *Object (7 properties) -│ │ ├── DataSourceInfo: *Object (7 properties) -│ │ │ ├── DatasourceType: *string -│ │ │ ├── ObjectType: *string -│ │ │ ├── ResourceID: *string -│ │ │ ├── ResourceLocation: *string -│ │ │ ├── ResourceName: *string -│ │ │ ├── ResourceType: *string -│ │ │ └── ResourceUri: *string -│ │ ├── DataSourceSetInfo: *Object (7 properties) -│ │ │ ├── DatasourceType: *string -│ │ │ ├── ObjectType: *string -│ │ │ ├── ResourceID: *string -│ │ │ ├── ResourceLocation: *string -│ │ │ ├── ResourceName: *string -│ │ │ ├── ResourceType: *string -│ │ │ └── ResourceUri: *string -│ │ ├── DatasourceAuthCredentials: *Object (1 property) -│ │ │ └── SecretStoreBasedAuthCredentials: *Object (2 properties) -│ │ │ ├── ObjectType: Enum (1 value) -│ │ │ │ └── "SecretStoreBasedAuthCredentials" -│ │ │ └── SecretStoreResource: *Object (3 properties) -│ │ │ ├── SecretStoreType: *Enum (2 values) -│ │ │ │ ├── "AzureKeyVault" -│ │ │ │ └── "Invalid" -│ │ │ ├── Uri: *string -│ │ │ └── Value: *string -│ │ ├── FriendlyName: *string -│ │ ├── ObjectType: *string -│ │ ├── PolicyInfo: *Object (2 properties) -│ │ │ ├── PolicyId: *string -│ │ │ └── PolicyParameters: *Object (2 properties) -│ │ │ ├── BackupDatasourceParametersList: Object (2 properties)[] -│ │ │ │ ├── Blob: *Object (2 properties) -│ │ │ │ │ ├── ContainersList: string[] -│ │ │ │ │ └── ObjectType: Enum (1 value) -│ │ │ │ │ └── "BlobBackupDatasourceParameters" -│ │ │ │ └── KubernetesCluster: *Object (8 properties) -│ │ │ │ ├── ExcludedNamespaces: string[] -│ │ │ │ ├── ExcludedResourceTypes: string[] -│ │ │ │ ├── IncludeClusterScopeResources: *bool -│ │ │ │ ├── IncludedNamespaces: string[] -│ │ │ │ ├── IncludedResourceTypes: string[] -│ │ │ │ ├── LabelSelectors: string[] -│ │ │ │ ├── ObjectType: Enum (1 value) -│ │ │ │ │ └── "KubernetesClusterBackupDatasourceParameters" -│ │ │ │ └── SnapshotVolumes: *bool -│ │ │ └── DataStoreParametersList: Object (1 property)[] -│ │ │ └── AzureOperationalStoreParameters: *Object (3 properties) -│ │ │ ├── DataStoreType: *Enum (3 values) -│ │ │ │ ├── "ArchiveStore" -│ │ │ │ ├── "OperationalStore" -│ │ │ │ └── "VaultStore" -│ │ │ ├── ObjectType: Enum (1 value) -│ │ │ │ └── "AzureOperationalStoreParameters" -│ │ │ └── ResourceGroupId: *string -│ │ └── ValidationType: *Enum (2 values) -│ │ ├── "DeepValidation" -│ │ └── "ShallowValidation" -│ └── Tags: map[string]string ├── BackupVaults_BackupPolicy_STATUS_ARM: Object (5 properties) │ ├── Id: *string │ ├── Name: *string diff --git a/v2/api/dataprotection/v1api20231201/backup_vault_resource_status_arm_types_gen.go b/v2/api/dataprotection/v1api20231101/backup_vault_resource_status_arm_types_gen.go similarity index 99% rename from v2/api/dataprotection/v1api20231201/backup_vault_resource_status_arm_types_gen.go rename to v2/api/dataprotection/v1api20231101/backup_vault_resource_status_arm_types_gen.go index 4bda04a21f0..954e21a7636 100644 --- a/v2/api/dataprotection/v1api20231201/backup_vault_resource_status_arm_types_gen.go +++ b/v2/api/dataprotection/v1api20231101/backup_vault_resource_status_arm_types_gen.go @@ -1,7 +1,7 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 // Backup Vault Resource type BackupVaultResource_STATUS_ARM struct { diff --git a/v2/api/dataprotection/v1api20231201/backup_vault_resource_status_arm_types_gen_test.go b/v2/api/dataprotection/v1api20231101/backup_vault_resource_status_arm_types_gen_test.go similarity index 99% rename from v2/api/dataprotection/v1api20231201/backup_vault_resource_status_arm_types_gen_test.go rename to v2/api/dataprotection/v1api20231101/backup_vault_resource_status_arm_types_gen_test.go index cd01177d6ac..82c50e8d030 100644 --- a/v2/api/dataprotection/v1api20231201/backup_vault_resource_status_arm_types_gen_test.go +++ b/v2/api/dataprotection/v1api20231101/backup_vault_resource_status_arm_types_gen_test.go @@ -1,7 +1,7 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 import ( "encoding/json" diff --git a/v2/api/dataprotection/v1api20231201/backup_vault_spec_arm_types_gen.go b/v2/api/dataprotection/v1api20231101/backup_vault_spec_arm_types_gen.go similarity index 99% rename from v2/api/dataprotection/v1api20231201/backup_vault_spec_arm_types_gen.go rename to v2/api/dataprotection/v1api20231101/backup_vault_spec_arm_types_gen.go index 49eb8a6177b..be6557c2246 100644 --- a/v2/api/dataprotection/v1api20231201/backup_vault_spec_arm_types_gen.go +++ b/v2/api/dataprotection/v1api20231101/backup_vault_spec_arm_types_gen.go @@ -1,7 +1,7 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 import "github.com/Azure/azure-service-operator/v2/pkg/genruntime" @@ -22,7 +22,7 @@ type BackupVault_Spec_ARM struct { var _ genruntime.ARMResourceSpec = &BackupVault_Spec_ARM{} -// GetAPIVersion returns the ARM API version of the resource. This is always "2023-12-01" +// GetAPIVersion returns the ARM API version of the resource. This is always "2023-11-01" func (vault BackupVault_Spec_ARM) GetAPIVersion() string { return string(APIVersion_Value) } diff --git a/v2/api/dataprotection/v1api20231201/backup_vault_spec_arm_types_gen_test.go b/v2/api/dataprotection/v1api20231101/backup_vault_spec_arm_types_gen_test.go similarity index 99% rename from v2/api/dataprotection/v1api20231201/backup_vault_spec_arm_types_gen_test.go rename to v2/api/dataprotection/v1api20231101/backup_vault_spec_arm_types_gen_test.go index 746e297fa8c..6ca2ac31198 100644 --- a/v2/api/dataprotection/v1api20231201/backup_vault_spec_arm_types_gen_test.go +++ b/v2/api/dataprotection/v1api20231101/backup_vault_spec_arm_types_gen_test.go @@ -1,7 +1,7 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 import ( "encoding/json" diff --git a/v2/api/dataprotection/v1api20231201/backup_vault_types_gen.go b/v2/api/dataprotection/v1api20231101/backup_vault_types_gen.go similarity index 95% rename from v2/api/dataprotection/v1api20231201/backup_vault_types_gen.go rename to v2/api/dataprotection/v1api20231101/backup_vault_types_gen.go index 9cc45abb756..b8b1bdc6d6f 100644 --- a/v2/api/dataprotection/v1api20231201/backup_vault_types_gen.go +++ b/v2/api/dataprotection/v1api20231101/backup_vault_types_gen.go @@ -1,12 +1,12 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 import ( "context" "fmt" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" + v20231101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage" "github.com/Azure/azure-service-operator/v2/internal/genericarmclient" "github.com/Azure/azure-service-operator/v2/internal/reflecthelpers" "github.com/Azure/azure-service-operator/v2/pkg/genruntime" @@ -29,7 +29,7 @@ import ( // +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason" // +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message" // Generator information: -// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-12-01/dataprotection.json +// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-11-01/dataprotection.json // - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName} type BackupVault struct { metav1.TypeMeta `json:",inline"` @@ -54,9 +54,9 @@ var _ conversion.Convertible = &BackupVault{} // ConvertFrom populates our BackupVault from the provided hub BackupVault func (vault *BackupVault) ConvertFrom(hub conversion.Hub) error { - source, ok := hub.(*v20231201s.BackupVault) + source, ok := hub.(*v20231101s.BackupVault) if !ok { - return fmt.Errorf("expected dataprotection/v1api20231201/storage/BackupVault but received %T instead", hub) + return fmt.Errorf("expected dataprotection/v1api20231101/storage/BackupVault but received %T instead", hub) } return vault.AssignProperties_From_BackupVault(source) @@ -64,15 +64,15 @@ func (vault *BackupVault) ConvertFrom(hub conversion.Hub) error { // ConvertTo populates the provided hub BackupVault from our BackupVault func (vault *BackupVault) ConvertTo(hub conversion.Hub) error { - destination, ok := hub.(*v20231201s.BackupVault) + destination, ok := hub.(*v20231101s.BackupVault) if !ok { - return fmt.Errorf("expected dataprotection/v1api20231201/storage/BackupVault but received %T instead", hub) + return fmt.Errorf("expected dataprotection/v1api20231101/storage/BackupVault but received %T instead", hub) } return vault.AssignProperties_To_BackupVault(destination) } -// +kubebuilder:webhook:path=/mutate-dataprotection-azure-com-v1api20231201-backupvault,mutating=true,sideEffects=None,matchPolicy=Exact,failurePolicy=fail,groups=dataprotection.azure.com,resources=backupvaults,verbs=create;update,versions=v1api20231201,name=default.v1api20231201.backupvaults.dataprotection.azure.com,admissionReviewVersions=v1 +// +kubebuilder:webhook:path=/mutate-dataprotection-azure-com-v1api20231101-backupvault,mutating=true,sideEffects=None,matchPolicy=Exact,failurePolicy=fail,groups=dataprotection.azure.com,resources=backupvaults,verbs=create;update,versions=v1api20231101,name=default.v1api20231101.backupvaults.dataprotection.azure.com,admissionReviewVersions=v1 var _ admission.Defaulter = &BackupVault{} @@ -132,7 +132,7 @@ func (vault *BackupVault) AzureName() string { return vault.Spec.AzureName } -// GetAPIVersion returns the ARM API version of the resource. This is always "2023-12-01" +// GetAPIVersion returns the ARM API version of the resource. This is always "2023-11-01" func (vault BackupVault) GetAPIVersion() string { return string(APIVersion_Value) } @@ -196,7 +196,7 @@ func (vault *BackupVault) SetStatus(status genruntime.ConvertibleStatus) error { return nil } -// +kubebuilder:webhook:path=/validate-dataprotection-azure-com-v1api20231201-backupvault,mutating=false,sideEffects=None,matchPolicy=Exact,failurePolicy=fail,groups=dataprotection.azure.com,resources=backupvaults,verbs=create;update,versions=v1api20231201,name=validate.v1api20231201.backupvaults.dataprotection.azure.com,admissionReviewVersions=v1 +// +kubebuilder:webhook:path=/validate-dataprotection-azure-com-v1api20231101-backupvault,mutating=false,sideEffects=None,matchPolicy=Exact,failurePolicy=fail,groups=dataprotection.azure.com,resources=backupvaults,verbs=create;update,versions=v1api20231101,name=validate.v1api20231101.backupvaults.dataprotection.azure.com,admissionReviewVersions=v1 var _ admission.Validator = &BackupVault{} @@ -295,7 +295,7 @@ func (vault *BackupVault) validateWriteOnceProperties(old runtime.Object) (admis } // AssignProperties_From_BackupVault populates our BackupVault from the provided source BackupVault -func (vault *BackupVault) AssignProperties_From_BackupVault(source *v20231201s.BackupVault) error { +func (vault *BackupVault) AssignProperties_From_BackupVault(source *v20231101s.BackupVault) error { // ObjectMeta vault.ObjectMeta = *source.ObjectMeta.DeepCopy() @@ -321,13 +321,13 @@ func (vault *BackupVault) AssignProperties_From_BackupVault(source *v20231201s.B } // AssignProperties_To_BackupVault populates the provided destination BackupVault from our BackupVault -func (vault *BackupVault) AssignProperties_To_BackupVault(destination *v20231201s.BackupVault) error { +func (vault *BackupVault) AssignProperties_To_BackupVault(destination *v20231101s.BackupVault) error { // ObjectMeta destination.ObjectMeta = *vault.ObjectMeta.DeepCopy() // Spec - var spec v20231201s.BackupVault_Spec + var spec v20231101s.BackupVault_Spec err := vault.Spec.AssignProperties_To_BackupVault_Spec(&spec) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVault_Spec() to populate field Spec") @@ -335,7 +335,7 @@ func (vault *BackupVault) AssignProperties_To_BackupVault(destination *v20231201 destination.Spec = spec // Status - var status v20231201s.BackupVaultResource_STATUS + var status v20231101s.BackupVaultResource_STATUS err = vault.Status.AssignProperties_To_BackupVaultResource_STATUS(&status) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVaultResource_STATUS() to populate field Status") @@ -357,7 +357,7 @@ func (vault *BackupVault) OriginalGVK() *schema.GroupVersionKind { // +kubebuilder:object:root=true // Generator information: -// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-12-01/dataprotection.json +// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-11-01/dataprotection.json // - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName} type BackupVaultList struct { metav1.TypeMeta `json:",inline"` @@ -365,10 +365,10 @@ type BackupVaultList struct { Items []BackupVault `json:"items"` } -// +kubebuilder:validation:Enum={"2023-12-01"} +// +kubebuilder:validation:Enum={"2023-11-01"} type APIVersion string -const APIVersion_Value = APIVersion("2023-12-01") +const APIVersion_Value = APIVersion("2023-11-01") type BackupVault_Spec struct { // AzureName: The name of the resource in Azure. This is often the same as the name of the resource in Kubernetes but it @@ -514,14 +514,14 @@ var _ genruntime.ConvertibleSpec = &BackupVault_Spec{} // ConvertSpecFrom populates our BackupVault_Spec from the provided source func (vault *BackupVault_Spec) ConvertSpecFrom(source genruntime.ConvertibleSpec) error { - src, ok := source.(*v20231201s.BackupVault_Spec) + src, ok := source.(*v20231101s.BackupVault_Spec) if ok { // Populate our instance from source return vault.AssignProperties_From_BackupVault_Spec(src) } // Convert to an intermediate form - src = &v20231201s.BackupVault_Spec{} + src = &v20231101s.BackupVault_Spec{} err := src.ConvertSpecFrom(source) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertSpecFrom()") @@ -538,14 +538,14 @@ func (vault *BackupVault_Spec) ConvertSpecFrom(source genruntime.ConvertibleSpec // ConvertSpecTo populates the provided destination from our BackupVault_Spec func (vault *BackupVault_Spec) ConvertSpecTo(destination genruntime.ConvertibleSpec) error { - dst, ok := destination.(*v20231201s.BackupVault_Spec) + dst, ok := destination.(*v20231101s.BackupVault_Spec) if ok { // Populate destination from our instance return vault.AssignProperties_To_BackupVault_Spec(dst) } // Convert to an intermediate form - dst = &v20231201s.BackupVault_Spec{} + dst = &v20231101s.BackupVault_Spec{} err := vault.AssignProperties_To_BackupVault_Spec(dst) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertSpecTo()") @@ -561,7 +561,7 @@ func (vault *BackupVault_Spec) ConvertSpecTo(destination genruntime.ConvertibleS } // AssignProperties_From_BackupVault_Spec populates our BackupVault_Spec from the provided source BackupVault_Spec -func (vault *BackupVault_Spec) AssignProperties_From_BackupVault_Spec(source *v20231201s.BackupVault_Spec) error { +func (vault *BackupVault_Spec) AssignProperties_From_BackupVault_Spec(source *v20231101s.BackupVault_Spec) error { // AzureName vault.AzureName = source.AzureName @@ -621,7 +621,7 @@ func (vault *BackupVault_Spec) AssignProperties_From_BackupVault_Spec(source *v2 } // AssignProperties_To_BackupVault_Spec populates the provided destination BackupVault_Spec from our BackupVault_Spec -func (vault *BackupVault_Spec) AssignProperties_To_BackupVault_Spec(destination *v20231201s.BackupVault_Spec) error { +func (vault *BackupVault_Spec) AssignProperties_To_BackupVault_Spec(destination *v20231101s.BackupVault_Spec) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -630,7 +630,7 @@ func (vault *BackupVault_Spec) AssignProperties_To_BackupVault_Spec(destination // Identity if vault.Identity != nil { - var identity v20231201s.DppIdentityDetails + var identity v20231101s.DppIdentityDetails err := vault.Identity.AssignProperties_To_DppIdentityDetails(&identity) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DppIdentityDetails() to populate field Identity") @@ -645,7 +645,7 @@ func (vault *BackupVault_Spec) AssignProperties_To_BackupVault_Spec(destination // OperatorSpec if vault.OperatorSpec != nil { - var operatorSpec v20231201s.BackupVaultOperatorSpec + var operatorSpec v20231101s.BackupVaultOperatorSpec err := vault.OperatorSpec.AssignProperties_To_BackupVaultOperatorSpec(&operatorSpec) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVaultOperatorSpec() to populate field OperatorSpec") @@ -668,7 +668,7 @@ func (vault *BackupVault_Spec) AssignProperties_To_BackupVault_Spec(destination // Properties if vault.Properties != nil { - var property v20231201s.BackupVaultSpec + var property v20231101s.BackupVaultSpec err := vault.Properties.AssignProperties_To_BackupVaultSpec(&property) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVaultSpec() to populate field Properties") @@ -774,14 +774,14 @@ var _ genruntime.ConvertibleStatus = &BackupVaultResource_STATUS{} // ConvertStatusFrom populates our BackupVaultResource_STATUS from the provided source func (resource *BackupVaultResource_STATUS) ConvertStatusFrom(source genruntime.ConvertibleStatus) error { - src, ok := source.(*v20231201s.BackupVaultResource_STATUS) + src, ok := source.(*v20231101s.BackupVaultResource_STATUS) if ok { // Populate our instance from source return resource.AssignProperties_From_BackupVaultResource_STATUS(src) } // Convert to an intermediate form - src = &v20231201s.BackupVaultResource_STATUS{} + src = &v20231101s.BackupVaultResource_STATUS{} err := src.ConvertStatusFrom(source) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertStatusFrom()") @@ -798,14 +798,14 @@ func (resource *BackupVaultResource_STATUS) ConvertStatusFrom(source genruntime. // ConvertStatusTo populates the provided destination from our BackupVaultResource_STATUS func (resource *BackupVaultResource_STATUS) ConvertStatusTo(destination genruntime.ConvertibleStatus) error { - dst, ok := destination.(*v20231201s.BackupVaultResource_STATUS) + dst, ok := destination.(*v20231101s.BackupVaultResource_STATUS) if ok { // Populate destination from our instance return resource.AssignProperties_To_BackupVaultResource_STATUS(dst) } // Convert to an intermediate form - dst = &v20231201s.BackupVaultResource_STATUS{} + dst = &v20231101s.BackupVaultResource_STATUS{} err := resource.AssignProperties_To_BackupVaultResource_STATUS(dst) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertStatusTo()") @@ -912,7 +912,7 @@ func (resource *BackupVaultResource_STATUS) PopulateFromARM(owner genruntime.Arb } // AssignProperties_From_BackupVaultResource_STATUS populates our BackupVaultResource_STATUS from the provided source BackupVaultResource_STATUS -func (resource *BackupVaultResource_STATUS) AssignProperties_From_BackupVaultResource_STATUS(source *v20231201s.BackupVaultResource_STATUS) error { +func (resource *BackupVaultResource_STATUS) AssignProperties_From_BackupVaultResource_STATUS(source *v20231101s.BackupVaultResource_STATUS) error { // Conditions resource.Conditions = genruntime.CloneSliceOfCondition(source.Conditions) @@ -976,7 +976,7 @@ func (resource *BackupVaultResource_STATUS) AssignProperties_From_BackupVaultRes } // AssignProperties_To_BackupVaultResource_STATUS populates the provided destination BackupVaultResource_STATUS from our BackupVaultResource_STATUS -func (resource *BackupVaultResource_STATUS) AssignProperties_To_BackupVaultResource_STATUS(destination *v20231201s.BackupVaultResource_STATUS) error { +func (resource *BackupVaultResource_STATUS) AssignProperties_To_BackupVaultResource_STATUS(destination *v20231101s.BackupVaultResource_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -991,7 +991,7 @@ func (resource *BackupVaultResource_STATUS) AssignProperties_To_BackupVaultResou // Identity if resource.Identity != nil { - var identity v20231201s.DppIdentityDetails_STATUS + var identity v20231101s.DppIdentityDetails_STATUS err := resource.Identity.AssignProperties_To_DppIdentityDetails_STATUS(&identity) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DppIdentityDetails_STATUS() to populate field Identity") @@ -1009,7 +1009,7 @@ func (resource *BackupVaultResource_STATUS) AssignProperties_To_BackupVaultResou // Properties if resource.Properties != nil { - var property v20231201s.BackupVault_STATUS + var property v20231101s.BackupVault_STATUS err := resource.Properties.AssignProperties_To_BackupVault_STATUS(&property) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVault_STATUS() to populate field Properties") @@ -1021,7 +1021,7 @@ func (resource *BackupVaultResource_STATUS) AssignProperties_To_BackupVaultResou // SystemData if resource.SystemData != nil { - var systemDatum v20231201s.SystemData_STATUS + var systemDatum v20231101s.SystemData_STATUS err := resource.SystemData.AssignProperties_To_SystemData_STATUS(&systemDatum) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SystemData_STATUS() to populate field SystemData") @@ -1183,7 +1183,7 @@ func (vault *BackupVault_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwner } // AssignProperties_From_BackupVault_STATUS populates our BackupVault_STATUS from the provided source BackupVault_STATUS -func (vault *BackupVault_STATUS) AssignProperties_From_BackupVault_STATUS(source *v20231201s.BackupVault_STATUS) error { +func (vault *BackupVault_STATUS) AssignProperties_From_BackupVault_STATUS(source *v20231101s.BackupVault_STATUS) error { // FeatureSettings if source.FeatureSettings != nil { @@ -1291,13 +1291,13 @@ func (vault *BackupVault_STATUS) AssignProperties_From_BackupVault_STATUS(source } // AssignProperties_To_BackupVault_STATUS populates the provided destination BackupVault_STATUS from our BackupVault_STATUS -func (vault *BackupVault_STATUS) AssignProperties_To_BackupVault_STATUS(destination *v20231201s.BackupVault_STATUS) error { +func (vault *BackupVault_STATUS) AssignProperties_To_BackupVault_STATUS(destination *v20231101s.BackupVault_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // FeatureSettings if vault.FeatureSettings != nil { - var featureSetting v20231201s.FeatureSettings_STATUS + var featureSetting v20231101s.FeatureSettings_STATUS err := vault.FeatureSettings.AssignProperties_To_FeatureSettings_STATUS(&featureSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_FeatureSettings_STATUS() to populate field FeatureSettings") @@ -1317,7 +1317,7 @@ func (vault *BackupVault_STATUS) AssignProperties_To_BackupVault_STATUS(destinat // MonitoringSettings if vault.MonitoringSettings != nil { - var monitoringSetting v20231201s.MonitoringSettings_STATUS + var monitoringSetting v20231101s.MonitoringSettings_STATUS err := vault.MonitoringSettings.AssignProperties_To_MonitoringSettings_STATUS(&monitoringSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_MonitoringSettings_STATUS() to populate field MonitoringSettings") @@ -1340,7 +1340,7 @@ func (vault *BackupVault_STATUS) AssignProperties_To_BackupVault_STATUS(destinat // ResourceMoveDetails if vault.ResourceMoveDetails != nil { - var resourceMoveDetail v20231201s.ResourceMoveDetails_STATUS + var resourceMoveDetail v20231101s.ResourceMoveDetails_STATUS err := vault.ResourceMoveDetails.AssignProperties_To_ResourceMoveDetails_STATUS(&resourceMoveDetail) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ResourceMoveDetails_STATUS() to populate field ResourceMoveDetails") @@ -1368,7 +1368,7 @@ func (vault *BackupVault_STATUS) AssignProperties_To_BackupVault_STATUS(destinat // SecuritySettings if vault.SecuritySettings != nil { - var securitySetting v20231201s.SecuritySettings_STATUS + var securitySetting v20231101s.SecuritySettings_STATUS err := vault.SecuritySettings.AssignProperties_To_SecuritySettings_STATUS(&securitySetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SecuritySettings_STATUS() to populate field SecuritySettings") @@ -1380,11 +1380,11 @@ func (vault *BackupVault_STATUS) AssignProperties_To_BackupVault_STATUS(destinat // StorageSettings if vault.StorageSettings != nil { - storageSettingList := make([]v20231201s.StorageSetting_STATUS, len(vault.StorageSettings)) + storageSettingList := make([]v20231101s.StorageSetting_STATUS, len(vault.StorageSettings)) for storageSettingIndex, storageSettingItem := range vault.StorageSettings { // Shadow the loop variable to avoid aliasing storageSettingItem := storageSettingItem - var storageSetting v20231201s.StorageSetting_STATUS + var storageSetting v20231101s.StorageSetting_STATUS err := storageSettingItem.AssignProperties_To_StorageSetting_STATUS(&storageSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_StorageSetting_STATUS() to populate field StorageSettings") @@ -1414,7 +1414,7 @@ type BackupVaultOperatorSpec struct { } // AssignProperties_From_BackupVaultOperatorSpec populates our BackupVaultOperatorSpec from the provided source BackupVaultOperatorSpec -func (operator *BackupVaultOperatorSpec) AssignProperties_From_BackupVaultOperatorSpec(source *v20231201s.BackupVaultOperatorSpec) error { +func (operator *BackupVaultOperatorSpec) AssignProperties_From_BackupVaultOperatorSpec(source *v20231101s.BackupVaultOperatorSpec) error { // ConfigMaps if source.ConfigMaps != nil { @@ -1433,13 +1433,13 @@ func (operator *BackupVaultOperatorSpec) AssignProperties_From_BackupVaultOperat } // AssignProperties_To_BackupVaultOperatorSpec populates the provided destination BackupVaultOperatorSpec from our BackupVaultOperatorSpec -func (operator *BackupVaultOperatorSpec) AssignProperties_To_BackupVaultOperatorSpec(destination *v20231201s.BackupVaultOperatorSpec) error { +func (operator *BackupVaultOperatorSpec) AssignProperties_To_BackupVaultOperatorSpec(destination *v20231101s.BackupVaultOperatorSpec) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // ConfigMaps if operator.ConfigMaps != nil { - var configMap v20231201s.BackupVaultOperatorConfigMaps + var configMap v20231101s.BackupVaultOperatorConfigMaps err := operator.ConfigMaps.AssignProperties_To_BackupVaultOperatorConfigMaps(&configMap) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVaultOperatorConfigMaps() to populate field ConfigMaps") @@ -1599,7 +1599,7 @@ func (vault *BackupVaultSpec) PopulateFromARM(owner genruntime.ArbitraryOwnerRef } // AssignProperties_From_BackupVaultSpec populates our BackupVaultSpec from the provided source BackupVaultSpec -func (vault *BackupVaultSpec) AssignProperties_From_BackupVaultSpec(source *v20231201s.BackupVaultSpec) error { +func (vault *BackupVaultSpec) AssignProperties_From_BackupVaultSpec(source *v20231101s.BackupVaultSpec) error { // FeatureSettings if source.FeatureSettings != nil { @@ -1663,13 +1663,13 @@ func (vault *BackupVaultSpec) AssignProperties_From_BackupVaultSpec(source *v202 } // AssignProperties_To_BackupVaultSpec populates the provided destination BackupVaultSpec from our BackupVaultSpec -func (vault *BackupVaultSpec) AssignProperties_To_BackupVaultSpec(destination *v20231201s.BackupVaultSpec) error { +func (vault *BackupVaultSpec) AssignProperties_To_BackupVaultSpec(destination *v20231101s.BackupVaultSpec) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // FeatureSettings if vault.FeatureSettings != nil { - var featureSetting v20231201s.FeatureSettings + var featureSetting v20231101s.FeatureSettings err := vault.FeatureSettings.AssignProperties_To_FeatureSettings(&featureSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_FeatureSettings() to populate field FeatureSettings") @@ -1681,7 +1681,7 @@ func (vault *BackupVaultSpec) AssignProperties_To_BackupVaultSpec(destination *v // MonitoringSettings if vault.MonitoringSettings != nil { - var monitoringSetting v20231201s.MonitoringSettings + var monitoringSetting v20231101s.MonitoringSettings err := vault.MonitoringSettings.AssignProperties_To_MonitoringSettings(&monitoringSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_MonitoringSettings() to populate field MonitoringSettings") @@ -1696,7 +1696,7 @@ func (vault *BackupVaultSpec) AssignProperties_To_BackupVaultSpec(destination *v // SecuritySettings if vault.SecuritySettings != nil { - var securitySetting v20231201s.SecuritySettings + var securitySetting v20231101s.SecuritySettings err := vault.SecuritySettings.AssignProperties_To_SecuritySettings(&securitySetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SecuritySettings() to populate field SecuritySettings") @@ -1708,11 +1708,11 @@ func (vault *BackupVaultSpec) AssignProperties_To_BackupVaultSpec(destination *v // StorageSettings if vault.StorageSettings != nil { - storageSettingList := make([]v20231201s.StorageSetting, len(vault.StorageSettings)) + storageSettingList := make([]v20231101s.StorageSetting, len(vault.StorageSettings)) for storageSettingIndex, storageSettingItem := range vault.StorageSettings { // Shadow the loop variable to avoid aliasing storageSettingItem := storageSettingItem - var storageSetting v20231201s.StorageSetting + var storageSetting v20231101s.StorageSetting err := storageSettingItem.AssignProperties_To_StorageSetting(&storageSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_StorageSetting() to populate field StorageSettings") @@ -1861,7 +1861,7 @@ func (details *DppIdentityDetails) PopulateFromARM(owner genruntime.ArbitraryOwn } // AssignProperties_From_DppIdentityDetails populates our DppIdentityDetails from the provided source DppIdentityDetails -func (details *DppIdentityDetails) AssignProperties_From_DppIdentityDetails(source *v20231201s.DppIdentityDetails) error { +func (details *DppIdentityDetails) AssignProperties_From_DppIdentityDetails(source *v20231101s.DppIdentityDetails) error { // Type details.Type = genruntime.ClonePointerToString(source.Type) @@ -1889,7 +1889,7 @@ func (details *DppIdentityDetails) AssignProperties_From_DppIdentityDetails(sour } // AssignProperties_To_DppIdentityDetails populates the provided destination DppIdentityDetails from our DppIdentityDetails -func (details *DppIdentityDetails) AssignProperties_To_DppIdentityDetails(destination *v20231201s.DppIdentityDetails) error { +func (details *DppIdentityDetails) AssignProperties_To_DppIdentityDetails(destination *v20231101s.DppIdentityDetails) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -1898,11 +1898,11 @@ func (details *DppIdentityDetails) AssignProperties_To_DppIdentityDetails(destin // UserAssignedIdentities if details.UserAssignedIdentities != nil { - userAssignedIdentityList := make([]v20231201s.UserAssignedIdentityDetails, len(details.UserAssignedIdentities)) + userAssignedIdentityList := make([]v20231101s.UserAssignedIdentityDetails, len(details.UserAssignedIdentities)) for userAssignedIdentityIndex, userAssignedIdentityItem := range details.UserAssignedIdentities { // Shadow the loop variable to avoid aliasing userAssignedIdentityItem := userAssignedIdentityItem - var userAssignedIdentity v20231201s.UserAssignedIdentityDetails + var userAssignedIdentity v20231101s.UserAssignedIdentityDetails err := userAssignedIdentityItem.AssignProperties_To_UserAssignedIdentityDetails(&userAssignedIdentity) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_UserAssignedIdentityDetails() to populate field UserAssignedIdentities") @@ -2013,7 +2013,7 @@ func (details *DppIdentityDetails_STATUS) PopulateFromARM(owner genruntime.Arbit } // AssignProperties_From_DppIdentityDetails_STATUS populates our DppIdentityDetails_STATUS from the provided source DppIdentityDetails_STATUS -func (details *DppIdentityDetails_STATUS) AssignProperties_From_DppIdentityDetails_STATUS(source *v20231201s.DppIdentityDetails_STATUS) error { +func (details *DppIdentityDetails_STATUS) AssignProperties_From_DppIdentityDetails_STATUS(source *v20231101s.DppIdentityDetails_STATUS) error { // PrincipalId details.PrincipalId = genruntime.ClonePointerToString(source.PrincipalId) @@ -2047,7 +2047,7 @@ func (details *DppIdentityDetails_STATUS) AssignProperties_From_DppIdentityDetai } // AssignProperties_To_DppIdentityDetails_STATUS populates the provided destination DppIdentityDetails_STATUS from our DppIdentityDetails_STATUS -func (details *DppIdentityDetails_STATUS) AssignProperties_To_DppIdentityDetails_STATUS(destination *v20231201s.DppIdentityDetails_STATUS) error { +func (details *DppIdentityDetails_STATUS) AssignProperties_To_DppIdentityDetails_STATUS(destination *v20231101s.DppIdentityDetails_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -2062,11 +2062,11 @@ func (details *DppIdentityDetails_STATUS) AssignProperties_To_DppIdentityDetails // UserAssignedIdentities if details.UserAssignedIdentities != nil { - userAssignedIdentityMap := make(map[string]v20231201s.UserAssignedIdentity_STATUS, len(details.UserAssignedIdentities)) + userAssignedIdentityMap := make(map[string]v20231101s.UserAssignedIdentity_STATUS, len(details.UserAssignedIdentities)) for userAssignedIdentityKey, userAssignedIdentityValue := range details.UserAssignedIdentities { // Shadow the loop variable to avoid aliasing userAssignedIdentityValue := userAssignedIdentityValue - var userAssignedIdentity v20231201s.UserAssignedIdentity_STATUS + var userAssignedIdentity v20231101s.UserAssignedIdentity_STATUS err := userAssignedIdentityValue.AssignProperties_To_UserAssignedIdentity_STATUS(&userAssignedIdentity) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_UserAssignedIdentity_STATUS() to populate field UserAssignedIdentities") @@ -2165,7 +2165,7 @@ func (data *SystemData_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerRe } // AssignProperties_From_SystemData_STATUS populates our SystemData_STATUS from the provided source SystemData_STATUS -func (data *SystemData_STATUS) AssignProperties_From_SystemData_STATUS(source *v20231201s.SystemData_STATUS) error { +func (data *SystemData_STATUS) AssignProperties_From_SystemData_STATUS(source *v20231101s.SystemData_STATUS) error { // CreatedAt data.CreatedAt = genruntime.ClonePointerToString(source.CreatedAt) @@ -2200,7 +2200,7 @@ func (data *SystemData_STATUS) AssignProperties_From_SystemData_STATUS(source *v } // AssignProperties_To_SystemData_STATUS populates the provided destination SystemData_STATUS from our SystemData_STATUS -func (data *SystemData_STATUS) AssignProperties_To_SystemData_STATUS(destination *v20231201s.SystemData_STATUS) error { +func (data *SystemData_STATUS) AssignProperties_To_SystemData_STATUS(destination *v20231101s.SystemData_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -2249,7 +2249,7 @@ type BackupVaultOperatorConfigMaps struct { } // AssignProperties_From_BackupVaultOperatorConfigMaps populates our BackupVaultOperatorConfigMaps from the provided source BackupVaultOperatorConfigMaps -func (maps *BackupVaultOperatorConfigMaps) AssignProperties_From_BackupVaultOperatorConfigMaps(source *v20231201s.BackupVaultOperatorConfigMaps) error { +func (maps *BackupVaultOperatorConfigMaps) AssignProperties_From_BackupVaultOperatorConfigMaps(source *v20231101s.BackupVaultOperatorConfigMaps) error { // PrincipalId if source.PrincipalId != nil { @@ -2264,7 +2264,7 @@ func (maps *BackupVaultOperatorConfigMaps) AssignProperties_From_BackupVaultOper } // AssignProperties_To_BackupVaultOperatorConfigMaps populates the provided destination BackupVaultOperatorConfigMaps from our BackupVaultOperatorConfigMaps -func (maps *BackupVaultOperatorConfigMaps) AssignProperties_To_BackupVaultOperatorConfigMaps(destination *v20231201s.BackupVaultOperatorConfigMaps) error { +func (maps *BackupVaultOperatorConfigMaps) AssignProperties_To_BackupVaultOperatorConfigMaps(destination *v20231101s.BackupVaultOperatorConfigMaps) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -2365,7 +2365,7 @@ func (settings *FeatureSettings) PopulateFromARM(owner genruntime.ArbitraryOwner } // AssignProperties_From_FeatureSettings populates our FeatureSettings from the provided source FeatureSettings -func (settings *FeatureSettings) AssignProperties_From_FeatureSettings(source *v20231201s.FeatureSettings) error { +func (settings *FeatureSettings) AssignProperties_From_FeatureSettings(source *v20231101s.FeatureSettings) error { // CrossRegionRestoreSettings if source.CrossRegionRestoreSettings != nil { @@ -2396,13 +2396,13 @@ func (settings *FeatureSettings) AssignProperties_From_FeatureSettings(source *v } // AssignProperties_To_FeatureSettings populates the provided destination FeatureSettings from our FeatureSettings -func (settings *FeatureSettings) AssignProperties_To_FeatureSettings(destination *v20231201s.FeatureSettings) error { +func (settings *FeatureSettings) AssignProperties_To_FeatureSettings(destination *v20231101s.FeatureSettings) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // CrossRegionRestoreSettings if settings.CrossRegionRestoreSettings != nil { - var crossRegionRestoreSetting v20231201s.CrossRegionRestoreSettings + var crossRegionRestoreSetting v20231101s.CrossRegionRestoreSettings err := settings.CrossRegionRestoreSettings.AssignProperties_To_CrossRegionRestoreSettings(&crossRegionRestoreSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CrossRegionRestoreSettings() to populate field CrossRegionRestoreSettings") @@ -2414,7 +2414,7 @@ func (settings *FeatureSettings) AssignProperties_To_FeatureSettings(destination // CrossSubscriptionRestoreSettings if settings.CrossSubscriptionRestoreSettings != nil { - var crossSubscriptionRestoreSetting v20231201s.CrossSubscriptionRestoreSettings + var crossSubscriptionRestoreSetting v20231101s.CrossSubscriptionRestoreSettings err := settings.CrossSubscriptionRestoreSettings.AssignProperties_To_CrossSubscriptionRestoreSettings(&crossSubscriptionRestoreSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CrossSubscriptionRestoreSettings() to populate field CrossSubscriptionRestoreSettings") @@ -2515,7 +2515,7 @@ func (settings *FeatureSettings_STATUS) PopulateFromARM(owner genruntime.Arbitra } // AssignProperties_From_FeatureSettings_STATUS populates our FeatureSettings_STATUS from the provided source FeatureSettings_STATUS -func (settings *FeatureSettings_STATUS) AssignProperties_From_FeatureSettings_STATUS(source *v20231201s.FeatureSettings_STATUS) error { +func (settings *FeatureSettings_STATUS) AssignProperties_From_FeatureSettings_STATUS(source *v20231101s.FeatureSettings_STATUS) error { // CrossRegionRestoreSettings if source.CrossRegionRestoreSettings != nil { @@ -2546,13 +2546,13 @@ func (settings *FeatureSettings_STATUS) AssignProperties_From_FeatureSettings_ST } // AssignProperties_To_FeatureSettings_STATUS populates the provided destination FeatureSettings_STATUS from our FeatureSettings_STATUS -func (settings *FeatureSettings_STATUS) AssignProperties_To_FeatureSettings_STATUS(destination *v20231201s.FeatureSettings_STATUS) error { +func (settings *FeatureSettings_STATUS) AssignProperties_To_FeatureSettings_STATUS(destination *v20231101s.FeatureSettings_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // CrossRegionRestoreSettings if settings.CrossRegionRestoreSettings != nil { - var crossRegionRestoreSetting v20231201s.CrossRegionRestoreSettings_STATUS + var crossRegionRestoreSetting v20231101s.CrossRegionRestoreSettings_STATUS err := settings.CrossRegionRestoreSettings.AssignProperties_To_CrossRegionRestoreSettings_STATUS(&crossRegionRestoreSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CrossRegionRestoreSettings_STATUS() to populate field CrossRegionRestoreSettings") @@ -2564,7 +2564,7 @@ func (settings *FeatureSettings_STATUS) AssignProperties_To_FeatureSettings_STAT // CrossSubscriptionRestoreSettings if settings.CrossSubscriptionRestoreSettings != nil { - var crossSubscriptionRestoreSetting v20231201s.CrossSubscriptionRestoreSettings_STATUS + var crossSubscriptionRestoreSetting v20231101s.CrossSubscriptionRestoreSettings_STATUS err := settings.CrossSubscriptionRestoreSettings.AssignProperties_To_CrossSubscriptionRestoreSettings_STATUS(&crossSubscriptionRestoreSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CrossSubscriptionRestoreSettings_STATUS() to populate field CrossSubscriptionRestoreSettings") @@ -2640,7 +2640,7 @@ func (settings *MonitoringSettings) PopulateFromARM(owner genruntime.ArbitraryOw } // AssignProperties_From_MonitoringSettings populates our MonitoringSettings from the provided source MonitoringSettings -func (settings *MonitoringSettings) AssignProperties_From_MonitoringSettings(source *v20231201s.MonitoringSettings) error { +func (settings *MonitoringSettings) AssignProperties_From_MonitoringSettings(source *v20231101s.MonitoringSettings) error { // AzureMonitorAlertSettings if source.AzureMonitorAlertSettings != nil { @@ -2659,13 +2659,13 @@ func (settings *MonitoringSettings) AssignProperties_From_MonitoringSettings(sou } // AssignProperties_To_MonitoringSettings populates the provided destination MonitoringSettings from our MonitoringSettings -func (settings *MonitoringSettings) AssignProperties_To_MonitoringSettings(destination *v20231201s.MonitoringSettings) error { +func (settings *MonitoringSettings) AssignProperties_To_MonitoringSettings(destination *v20231101s.MonitoringSettings) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // AzureMonitorAlertSettings if settings.AzureMonitorAlertSettings != nil { - var azureMonitorAlertSetting v20231201s.AzureMonitorAlertSettings + var azureMonitorAlertSetting v20231101s.AzureMonitorAlertSettings err := settings.AzureMonitorAlertSettings.AssignProperties_To_AzureMonitorAlertSettings(&azureMonitorAlertSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureMonitorAlertSettings() to populate field AzureMonitorAlertSettings") @@ -2741,7 +2741,7 @@ func (settings *MonitoringSettings_STATUS) PopulateFromARM(owner genruntime.Arbi } // AssignProperties_From_MonitoringSettings_STATUS populates our MonitoringSettings_STATUS from the provided source MonitoringSettings_STATUS -func (settings *MonitoringSettings_STATUS) AssignProperties_From_MonitoringSettings_STATUS(source *v20231201s.MonitoringSettings_STATUS) error { +func (settings *MonitoringSettings_STATUS) AssignProperties_From_MonitoringSettings_STATUS(source *v20231101s.MonitoringSettings_STATUS) error { // AzureMonitorAlertSettings if source.AzureMonitorAlertSettings != nil { @@ -2760,13 +2760,13 @@ func (settings *MonitoringSettings_STATUS) AssignProperties_From_MonitoringSetti } // AssignProperties_To_MonitoringSettings_STATUS populates the provided destination MonitoringSettings_STATUS from our MonitoringSettings_STATUS -func (settings *MonitoringSettings_STATUS) AssignProperties_To_MonitoringSettings_STATUS(destination *v20231201s.MonitoringSettings_STATUS) error { +func (settings *MonitoringSettings_STATUS) AssignProperties_To_MonitoringSettings_STATUS(destination *v20231101s.MonitoringSettings_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // AzureMonitorAlertSettings if settings.AzureMonitorAlertSettings != nil { - var azureMonitorAlertSetting v20231201s.AzureMonitorAlertSettings_STATUS + var azureMonitorAlertSetting v20231101s.AzureMonitorAlertSettings_STATUS err := settings.AzureMonitorAlertSettings.AssignProperties_To_AzureMonitorAlertSettings_STATUS(&azureMonitorAlertSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureMonitorAlertSettings_STATUS() to populate field AzureMonitorAlertSettings") @@ -2854,7 +2854,7 @@ func (details *ResourceMoveDetails_STATUS) PopulateFromARM(owner genruntime.Arbi } // AssignProperties_From_ResourceMoveDetails_STATUS populates our ResourceMoveDetails_STATUS from the provided source ResourceMoveDetails_STATUS -func (details *ResourceMoveDetails_STATUS) AssignProperties_From_ResourceMoveDetails_STATUS(source *v20231201s.ResourceMoveDetails_STATUS) error { +func (details *ResourceMoveDetails_STATUS) AssignProperties_From_ResourceMoveDetails_STATUS(source *v20231101s.ResourceMoveDetails_STATUS) error { // CompletionTimeUtc details.CompletionTimeUtc = genruntime.ClonePointerToString(source.CompletionTimeUtc) @@ -2876,7 +2876,7 @@ func (details *ResourceMoveDetails_STATUS) AssignProperties_From_ResourceMoveDet } // AssignProperties_To_ResourceMoveDetails_STATUS populates the provided destination ResourceMoveDetails_STATUS from our ResourceMoveDetails_STATUS -func (details *ResourceMoveDetails_STATUS) AssignProperties_To_ResourceMoveDetails_STATUS(destination *v20231201s.ResourceMoveDetails_STATUS) error { +func (details *ResourceMoveDetails_STATUS) AssignProperties_To_ResourceMoveDetails_STATUS(destination *v20231101s.ResourceMoveDetails_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -2985,7 +2985,7 @@ func (settings *SecuritySettings) PopulateFromARM(owner genruntime.ArbitraryOwne } // AssignProperties_From_SecuritySettings populates our SecuritySettings from the provided source SecuritySettings -func (settings *SecuritySettings) AssignProperties_From_SecuritySettings(source *v20231201s.SecuritySettings) error { +func (settings *SecuritySettings) AssignProperties_From_SecuritySettings(source *v20231101s.SecuritySettings) error { // ImmutabilitySettings if source.ImmutabilitySettings != nil { @@ -3016,13 +3016,13 @@ func (settings *SecuritySettings) AssignProperties_From_SecuritySettings(source } // AssignProperties_To_SecuritySettings populates the provided destination SecuritySettings from our SecuritySettings -func (settings *SecuritySettings) AssignProperties_To_SecuritySettings(destination *v20231201s.SecuritySettings) error { +func (settings *SecuritySettings) AssignProperties_To_SecuritySettings(destination *v20231101s.SecuritySettings) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // ImmutabilitySettings if settings.ImmutabilitySettings != nil { - var immutabilitySetting v20231201s.ImmutabilitySettings + var immutabilitySetting v20231101s.ImmutabilitySettings err := settings.ImmutabilitySettings.AssignProperties_To_ImmutabilitySettings(&immutabilitySetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ImmutabilitySettings() to populate field ImmutabilitySettings") @@ -3034,7 +3034,7 @@ func (settings *SecuritySettings) AssignProperties_To_SecuritySettings(destinati // SoftDeleteSettings if settings.SoftDeleteSettings != nil { - var softDeleteSetting v20231201s.SoftDeleteSettings + var softDeleteSetting v20231101s.SoftDeleteSettings err := settings.SoftDeleteSettings.AssignProperties_To_SoftDeleteSettings(&softDeleteSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SoftDeleteSettings() to populate field SoftDeleteSettings") @@ -3136,7 +3136,7 @@ func (settings *SecuritySettings_STATUS) PopulateFromARM(owner genruntime.Arbitr } // AssignProperties_From_SecuritySettings_STATUS populates our SecuritySettings_STATUS from the provided source SecuritySettings_STATUS -func (settings *SecuritySettings_STATUS) AssignProperties_From_SecuritySettings_STATUS(source *v20231201s.SecuritySettings_STATUS) error { +func (settings *SecuritySettings_STATUS) AssignProperties_From_SecuritySettings_STATUS(source *v20231101s.SecuritySettings_STATUS) error { // ImmutabilitySettings if source.ImmutabilitySettings != nil { @@ -3167,13 +3167,13 @@ func (settings *SecuritySettings_STATUS) AssignProperties_From_SecuritySettings_ } // AssignProperties_To_SecuritySettings_STATUS populates the provided destination SecuritySettings_STATUS from our SecuritySettings_STATUS -func (settings *SecuritySettings_STATUS) AssignProperties_To_SecuritySettings_STATUS(destination *v20231201s.SecuritySettings_STATUS) error { +func (settings *SecuritySettings_STATUS) AssignProperties_To_SecuritySettings_STATUS(destination *v20231101s.SecuritySettings_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // ImmutabilitySettings if settings.ImmutabilitySettings != nil { - var immutabilitySetting v20231201s.ImmutabilitySettings_STATUS + var immutabilitySetting v20231101s.ImmutabilitySettings_STATUS err := settings.ImmutabilitySettings.AssignProperties_To_ImmutabilitySettings_STATUS(&immutabilitySetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ImmutabilitySettings_STATUS() to populate field ImmutabilitySettings") @@ -3185,7 +3185,7 @@ func (settings *SecuritySettings_STATUS) AssignProperties_To_SecuritySettings_ST // SoftDeleteSettings if settings.SoftDeleteSettings != nil { - var softDeleteSetting v20231201s.SoftDeleteSettings_STATUS + var softDeleteSetting v20231101s.SoftDeleteSettings_STATUS err := settings.SoftDeleteSettings.AssignProperties_To_SoftDeleteSettings_STATUS(&softDeleteSetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SoftDeleteSettings_STATUS() to populate field SoftDeleteSettings") @@ -3267,7 +3267,7 @@ func (setting *StorageSetting) PopulateFromARM(owner genruntime.ArbitraryOwnerRe } // AssignProperties_From_StorageSetting populates our StorageSetting from the provided source StorageSetting -func (setting *StorageSetting) AssignProperties_From_StorageSetting(source *v20231201s.StorageSetting) error { +func (setting *StorageSetting) AssignProperties_From_StorageSetting(source *v20231101s.StorageSetting) error { // DatastoreType if source.DatastoreType != nil { @@ -3290,7 +3290,7 @@ func (setting *StorageSetting) AssignProperties_From_StorageSetting(source *v202 } // AssignProperties_To_StorageSetting populates the provided destination StorageSetting from our StorageSetting -func (setting *StorageSetting) AssignProperties_To_StorageSetting(destination *v20231201s.StorageSetting) error { +func (setting *StorageSetting) AssignProperties_To_StorageSetting(destination *v20231101s.StorageSetting) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -3384,7 +3384,7 @@ func (setting *StorageSetting_STATUS) PopulateFromARM(owner genruntime.Arbitrary } // AssignProperties_From_StorageSetting_STATUS populates our StorageSetting_STATUS from the provided source StorageSetting_STATUS -func (setting *StorageSetting_STATUS) AssignProperties_From_StorageSetting_STATUS(source *v20231201s.StorageSetting_STATUS) error { +func (setting *StorageSetting_STATUS) AssignProperties_From_StorageSetting_STATUS(source *v20231101s.StorageSetting_STATUS) error { // DatastoreType if source.DatastoreType != nil { @@ -3407,7 +3407,7 @@ func (setting *StorageSetting_STATUS) AssignProperties_From_StorageSetting_STATU } // AssignProperties_To_StorageSetting_STATUS populates the provided destination StorageSetting_STATUS from our StorageSetting_STATUS -func (setting *StorageSetting_STATUS) AssignProperties_To_StorageSetting_STATUS(destination *v20231201s.StorageSetting_STATUS) error { +func (setting *StorageSetting_STATUS) AssignProperties_To_StorageSetting_STATUS(destination *v20231101s.StorageSetting_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -3478,7 +3478,7 @@ func (identity *UserAssignedIdentity_STATUS) PopulateFromARM(owner genruntime.Ar } // AssignProperties_From_UserAssignedIdentity_STATUS populates our UserAssignedIdentity_STATUS from the provided source UserAssignedIdentity_STATUS -func (identity *UserAssignedIdentity_STATUS) AssignProperties_From_UserAssignedIdentity_STATUS(source *v20231201s.UserAssignedIdentity_STATUS) error { +func (identity *UserAssignedIdentity_STATUS) AssignProperties_From_UserAssignedIdentity_STATUS(source *v20231101s.UserAssignedIdentity_STATUS) error { // ClientId identity.ClientId = genruntime.ClonePointerToString(source.ClientId) @@ -3491,7 +3491,7 @@ func (identity *UserAssignedIdentity_STATUS) AssignProperties_From_UserAssignedI } // AssignProperties_To_UserAssignedIdentity_STATUS populates the provided destination UserAssignedIdentity_STATUS from our UserAssignedIdentity_STATUS -func (identity *UserAssignedIdentity_STATUS) AssignProperties_To_UserAssignedIdentity_STATUS(destination *v20231201s.UserAssignedIdentity_STATUS) error { +func (identity *UserAssignedIdentity_STATUS) AssignProperties_To_UserAssignedIdentity_STATUS(destination *v20231101s.UserAssignedIdentity_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -3518,7 +3518,7 @@ type UserAssignedIdentityDetails struct { } // AssignProperties_From_UserAssignedIdentityDetails populates our UserAssignedIdentityDetails from the provided source UserAssignedIdentityDetails -func (details *UserAssignedIdentityDetails) AssignProperties_From_UserAssignedIdentityDetails(source *v20231201s.UserAssignedIdentityDetails) error { +func (details *UserAssignedIdentityDetails) AssignProperties_From_UserAssignedIdentityDetails(source *v20231101s.UserAssignedIdentityDetails) error { // Reference details.Reference = source.Reference.Copy() @@ -3528,7 +3528,7 @@ func (details *UserAssignedIdentityDetails) AssignProperties_From_UserAssignedId } // AssignProperties_To_UserAssignedIdentityDetails populates the provided destination UserAssignedIdentityDetails from our UserAssignedIdentityDetails -func (details *UserAssignedIdentityDetails) AssignProperties_To_UserAssignedIdentityDetails(destination *v20231201s.UserAssignedIdentityDetails) error { +func (details *UserAssignedIdentityDetails) AssignProperties_To_UserAssignedIdentityDetails(destination *v20231101s.UserAssignedIdentityDetails) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -3591,7 +3591,7 @@ func (settings *AzureMonitorAlertSettings) PopulateFromARM(owner genruntime.Arbi } // AssignProperties_From_AzureMonitorAlertSettings populates our AzureMonitorAlertSettings from the provided source AzureMonitorAlertSettings -func (settings *AzureMonitorAlertSettings) AssignProperties_From_AzureMonitorAlertSettings(source *v20231201s.AzureMonitorAlertSettings) error { +func (settings *AzureMonitorAlertSettings) AssignProperties_From_AzureMonitorAlertSettings(source *v20231101s.AzureMonitorAlertSettings) error { // AlertsForAllJobFailures if source.AlertsForAllJobFailures != nil { @@ -3606,7 +3606,7 @@ func (settings *AzureMonitorAlertSettings) AssignProperties_From_AzureMonitorAle } // AssignProperties_To_AzureMonitorAlertSettings populates the provided destination AzureMonitorAlertSettings from our AzureMonitorAlertSettings -func (settings *AzureMonitorAlertSettings) AssignProperties_To_AzureMonitorAlertSettings(destination *v20231201s.AzureMonitorAlertSettings) error { +func (settings *AzureMonitorAlertSettings) AssignProperties_To_AzureMonitorAlertSettings(destination *v20231101s.AzureMonitorAlertSettings) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -3674,7 +3674,7 @@ func (settings *AzureMonitorAlertSettings_STATUS) PopulateFromARM(owner genrunti } // AssignProperties_From_AzureMonitorAlertSettings_STATUS populates our AzureMonitorAlertSettings_STATUS from the provided source AzureMonitorAlertSettings_STATUS -func (settings *AzureMonitorAlertSettings_STATUS) AssignProperties_From_AzureMonitorAlertSettings_STATUS(source *v20231201s.AzureMonitorAlertSettings_STATUS) error { +func (settings *AzureMonitorAlertSettings_STATUS) AssignProperties_From_AzureMonitorAlertSettings_STATUS(source *v20231101s.AzureMonitorAlertSettings_STATUS) error { // AlertsForAllJobFailures if source.AlertsForAllJobFailures != nil { @@ -3689,7 +3689,7 @@ func (settings *AzureMonitorAlertSettings_STATUS) AssignProperties_From_AzureMon } // AssignProperties_To_AzureMonitorAlertSettings_STATUS populates the provided destination AzureMonitorAlertSettings_STATUS from our AzureMonitorAlertSettings_STATUS -func (settings *AzureMonitorAlertSettings_STATUS) AssignProperties_To_AzureMonitorAlertSettings_STATUS(destination *v20231201s.AzureMonitorAlertSettings_STATUS) error { +func (settings *AzureMonitorAlertSettings_STATUS) AssignProperties_To_AzureMonitorAlertSettings_STATUS(destination *v20231101s.AzureMonitorAlertSettings_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -3757,7 +3757,7 @@ func (settings *CrossRegionRestoreSettings) PopulateFromARM(owner genruntime.Arb } // AssignProperties_From_CrossRegionRestoreSettings populates our CrossRegionRestoreSettings from the provided source CrossRegionRestoreSettings -func (settings *CrossRegionRestoreSettings) AssignProperties_From_CrossRegionRestoreSettings(source *v20231201s.CrossRegionRestoreSettings) error { +func (settings *CrossRegionRestoreSettings) AssignProperties_From_CrossRegionRestoreSettings(source *v20231101s.CrossRegionRestoreSettings) error { // State if source.State != nil { @@ -3772,7 +3772,7 @@ func (settings *CrossRegionRestoreSettings) AssignProperties_From_CrossRegionRes } // AssignProperties_To_CrossRegionRestoreSettings populates the provided destination CrossRegionRestoreSettings from our CrossRegionRestoreSettings -func (settings *CrossRegionRestoreSettings) AssignProperties_To_CrossRegionRestoreSettings(destination *v20231201s.CrossRegionRestoreSettings) error { +func (settings *CrossRegionRestoreSettings) AssignProperties_To_CrossRegionRestoreSettings(destination *v20231101s.CrossRegionRestoreSettings) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -3840,7 +3840,7 @@ func (settings *CrossRegionRestoreSettings_STATUS) PopulateFromARM(owner genrunt } // AssignProperties_From_CrossRegionRestoreSettings_STATUS populates our CrossRegionRestoreSettings_STATUS from the provided source CrossRegionRestoreSettings_STATUS -func (settings *CrossRegionRestoreSettings_STATUS) AssignProperties_From_CrossRegionRestoreSettings_STATUS(source *v20231201s.CrossRegionRestoreSettings_STATUS) error { +func (settings *CrossRegionRestoreSettings_STATUS) AssignProperties_From_CrossRegionRestoreSettings_STATUS(source *v20231101s.CrossRegionRestoreSettings_STATUS) error { // State if source.State != nil { @@ -3855,7 +3855,7 @@ func (settings *CrossRegionRestoreSettings_STATUS) AssignProperties_From_CrossRe } // AssignProperties_To_CrossRegionRestoreSettings_STATUS populates the provided destination CrossRegionRestoreSettings_STATUS from our CrossRegionRestoreSettings_STATUS -func (settings *CrossRegionRestoreSettings_STATUS) AssignProperties_To_CrossRegionRestoreSettings_STATUS(destination *v20231201s.CrossRegionRestoreSettings_STATUS) error { +func (settings *CrossRegionRestoreSettings_STATUS) AssignProperties_To_CrossRegionRestoreSettings_STATUS(destination *v20231101s.CrossRegionRestoreSettings_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -3924,7 +3924,7 @@ func (settings *CrossSubscriptionRestoreSettings) PopulateFromARM(owner genrunti } // AssignProperties_From_CrossSubscriptionRestoreSettings populates our CrossSubscriptionRestoreSettings from the provided source CrossSubscriptionRestoreSettings -func (settings *CrossSubscriptionRestoreSettings) AssignProperties_From_CrossSubscriptionRestoreSettings(source *v20231201s.CrossSubscriptionRestoreSettings) error { +func (settings *CrossSubscriptionRestoreSettings) AssignProperties_From_CrossSubscriptionRestoreSettings(source *v20231101s.CrossSubscriptionRestoreSettings) error { // State if source.State != nil { @@ -3939,7 +3939,7 @@ func (settings *CrossSubscriptionRestoreSettings) AssignProperties_From_CrossSub } // AssignProperties_To_CrossSubscriptionRestoreSettings populates the provided destination CrossSubscriptionRestoreSettings from our CrossSubscriptionRestoreSettings -func (settings *CrossSubscriptionRestoreSettings) AssignProperties_To_CrossSubscriptionRestoreSettings(destination *v20231201s.CrossSubscriptionRestoreSettings) error { +func (settings *CrossSubscriptionRestoreSettings) AssignProperties_To_CrossSubscriptionRestoreSettings(destination *v20231101s.CrossSubscriptionRestoreSettings) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -4008,7 +4008,7 @@ func (settings *CrossSubscriptionRestoreSettings_STATUS) PopulateFromARM(owner g } // AssignProperties_From_CrossSubscriptionRestoreSettings_STATUS populates our CrossSubscriptionRestoreSettings_STATUS from the provided source CrossSubscriptionRestoreSettings_STATUS -func (settings *CrossSubscriptionRestoreSettings_STATUS) AssignProperties_From_CrossSubscriptionRestoreSettings_STATUS(source *v20231201s.CrossSubscriptionRestoreSettings_STATUS) error { +func (settings *CrossSubscriptionRestoreSettings_STATUS) AssignProperties_From_CrossSubscriptionRestoreSettings_STATUS(source *v20231101s.CrossSubscriptionRestoreSettings_STATUS) error { // State if source.State != nil { @@ -4023,7 +4023,7 @@ func (settings *CrossSubscriptionRestoreSettings_STATUS) AssignProperties_From_C } // AssignProperties_To_CrossSubscriptionRestoreSettings_STATUS populates the provided destination CrossSubscriptionRestoreSettings_STATUS from our CrossSubscriptionRestoreSettings_STATUS -func (settings *CrossSubscriptionRestoreSettings_STATUS) AssignProperties_To_CrossSubscriptionRestoreSettings_STATUS(destination *v20231201s.CrossSubscriptionRestoreSettings_STATUS) error { +func (settings *CrossSubscriptionRestoreSettings_STATUS) AssignProperties_To_CrossSubscriptionRestoreSettings_STATUS(destination *v20231101s.CrossSubscriptionRestoreSettings_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -4092,7 +4092,7 @@ func (settings *ImmutabilitySettings) PopulateFromARM(owner genruntime.Arbitrary } // AssignProperties_From_ImmutabilitySettings populates our ImmutabilitySettings from the provided source ImmutabilitySettings -func (settings *ImmutabilitySettings) AssignProperties_From_ImmutabilitySettings(source *v20231201s.ImmutabilitySettings) error { +func (settings *ImmutabilitySettings) AssignProperties_From_ImmutabilitySettings(source *v20231101s.ImmutabilitySettings) error { // State if source.State != nil { @@ -4107,7 +4107,7 @@ func (settings *ImmutabilitySettings) AssignProperties_From_ImmutabilitySettings } // AssignProperties_To_ImmutabilitySettings populates the provided destination ImmutabilitySettings from our ImmutabilitySettings -func (settings *ImmutabilitySettings) AssignProperties_To_ImmutabilitySettings(destination *v20231201s.ImmutabilitySettings) error { +func (settings *ImmutabilitySettings) AssignProperties_To_ImmutabilitySettings(destination *v20231101s.ImmutabilitySettings) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -4176,7 +4176,7 @@ func (settings *ImmutabilitySettings_STATUS) PopulateFromARM(owner genruntime.Ar } // AssignProperties_From_ImmutabilitySettings_STATUS populates our ImmutabilitySettings_STATUS from the provided source ImmutabilitySettings_STATUS -func (settings *ImmutabilitySettings_STATUS) AssignProperties_From_ImmutabilitySettings_STATUS(source *v20231201s.ImmutabilitySettings_STATUS) error { +func (settings *ImmutabilitySettings_STATUS) AssignProperties_From_ImmutabilitySettings_STATUS(source *v20231101s.ImmutabilitySettings_STATUS) error { // State if source.State != nil { @@ -4191,7 +4191,7 @@ func (settings *ImmutabilitySettings_STATUS) AssignProperties_From_ImmutabilityS } // AssignProperties_To_ImmutabilitySettings_STATUS populates the provided destination ImmutabilitySettings_STATUS from our ImmutabilitySettings_STATUS -func (settings *ImmutabilitySettings_STATUS) AssignProperties_To_ImmutabilitySettings_STATUS(destination *v20231201s.ImmutabilitySettings_STATUS) error { +func (settings *ImmutabilitySettings_STATUS) AssignProperties_To_ImmutabilitySettings_STATUS(destination *v20231101s.ImmutabilitySettings_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -4275,7 +4275,7 @@ func (settings *SoftDeleteSettings) PopulateFromARM(owner genruntime.ArbitraryOw } // AssignProperties_From_SoftDeleteSettings populates our SoftDeleteSettings from the provided source SoftDeleteSettings -func (settings *SoftDeleteSettings) AssignProperties_From_SoftDeleteSettings(source *v20231201s.SoftDeleteSettings) error { +func (settings *SoftDeleteSettings) AssignProperties_From_SoftDeleteSettings(source *v20231101s.SoftDeleteSettings) error { // RetentionDurationInDays if source.RetentionDurationInDays != nil { @@ -4298,7 +4298,7 @@ func (settings *SoftDeleteSettings) AssignProperties_From_SoftDeleteSettings(sou } // AssignProperties_To_SoftDeleteSettings populates the provided destination SoftDeleteSettings from our SoftDeleteSettings -func (settings *SoftDeleteSettings) AssignProperties_To_SoftDeleteSettings(destination *v20231201s.SoftDeleteSettings) error { +func (settings *SoftDeleteSettings) AssignProperties_To_SoftDeleteSettings(destination *v20231101s.SoftDeleteSettings) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -4392,7 +4392,7 @@ func (settings *SoftDeleteSettings_STATUS) PopulateFromARM(owner genruntime.Arbi } // AssignProperties_From_SoftDeleteSettings_STATUS populates our SoftDeleteSettings_STATUS from the provided source SoftDeleteSettings_STATUS -func (settings *SoftDeleteSettings_STATUS) AssignProperties_From_SoftDeleteSettings_STATUS(source *v20231201s.SoftDeleteSettings_STATUS) error { +func (settings *SoftDeleteSettings_STATUS) AssignProperties_From_SoftDeleteSettings_STATUS(source *v20231101s.SoftDeleteSettings_STATUS) error { // RetentionDurationInDays if source.RetentionDurationInDays != nil { @@ -4415,7 +4415,7 @@ func (settings *SoftDeleteSettings_STATUS) AssignProperties_From_SoftDeleteSetti } // AssignProperties_To_SoftDeleteSettings_STATUS populates the provided destination SoftDeleteSettings_STATUS from our SoftDeleteSettings_STATUS -func (settings *SoftDeleteSettings_STATUS) AssignProperties_To_SoftDeleteSettings_STATUS(destination *v20231201s.SoftDeleteSettings_STATUS) error { +func (settings *SoftDeleteSettings_STATUS) AssignProperties_To_SoftDeleteSettings_STATUS(destination *v20231101s.SoftDeleteSettings_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() diff --git a/v2/api/dataprotection/v1api20231201/backup_vault_types_gen_test.go b/v2/api/dataprotection/v1api20231101/backup_vault_types_gen_test.go similarity index 98% rename from v2/api/dataprotection/v1api20231201/backup_vault_types_gen_test.go rename to v2/api/dataprotection/v1api20231101/backup_vault_types_gen_test.go index 1517bb9928e..59e6ef15e25 100644 --- a/v2/api/dataprotection/v1api20231201/backup_vault_types_gen_test.go +++ b/v2/api/dataprotection/v1api20231101/backup_vault_types_gen_test.go @@ -1,11 +1,11 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 import ( "encoding/json" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" + v20231101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/kr/pretty" @@ -36,7 +36,7 @@ func RunResourceConversionTestForBackupVault(subject BackupVault) string { copied := subject.DeepCopy() // Convert to our hub version - var hub v20231201s.BackupVault + var hub v20231101s.BackupVault err := copied.ConvertTo(&hub) if err != nil { return err.Error() @@ -78,7 +78,7 @@ func RunPropertyAssignmentTestForBackupVault(subject BackupVault) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVault + var other v20231101s.BackupVault err := copied.AssignProperties_To_BackupVault(&other) if err != nil { return err.Error() @@ -181,7 +181,7 @@ func RunPropertyAssignmentTestForBackupVault_Spec(subject BackupVault_Spec) stri copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVault_Spec + var other v20231101s.BackupVault_Spec err := copied.AssignProperties_To_BackupVault_Spec(&other) if err != nil { return err.Error() @@ -301,7 +301,7 @@ func RunPropertyAssignmentTestForBackupVaultResource_STATUS(subject BackupVaultR copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaultResource_STATUS + var other v20231101s.BackupVaultResource_STATUS err := copied.AssignProperties_To_BackupVaultResource_STATUS(&other) if err != nil { return err.Error() @@ -425,7 +425,7 @@ func RunPropertyAssignmentTestForBackupVault_STATUS(subject BackupVault_STATUS) copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVault_STATUS + var other v20231101s.BackupVault_STATUS err := copied.AssignProperties_To_BackupVault_STATUS(&other) if err != nil { return err.Error() @@ -569,7 +569,7 @@ func RunPropertyAssignmentTestForBackupVaultOperatorSpec(subject BackupVaultOper copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaultOperatorSpec + var other v20231101s.BackupVaultOperatorSpec err := copied.AssignProperties_To_BackupVaultOperatorSpec(&other) if err != nil { return err.Error() @@ -672,7 +672,7 @@ func RunPropertyAssignmentTestForBackupVaultSpec(subject BackupVaultSpec) string copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaultSpec + var other v20231101s.BackupVaultSpec err := copied.AssignProperties_To_BackupVaultSpec(&other) if err != nil { return err.Error() @@ -791,7 +791,7 @@ func RunPropertyAssignmentTestForDppIdentityDetails(subject DppIdentityDetails) copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DppIdentityDetails + var other v20231101s.DppIdentityDetails err := copied.AssignProperties_To_DppIdentityDetails(&other) if err != nil { return err.Error() @@ -907,7 +907,7 @@ func RunPropertyAssignmentTestForDppIdentityDetails_STATUS(subject DppIdentityDe copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DppIdentityDetails_STATUS + var other v20231101s.DppIdentityDetails_STATUS err := copied.AssignProperties_To_DppIdentityDetails_STATUS(&other) if err != nil { return err.Error() @@ -1026,7 +1026,7 @@ func RunPropertyAssignmentTestForSystemData_STATUS(subject SystemData_STATUS) st copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SystemData_STATUS + var other v20231101s.SystemData_STATUS err := copied.AssignProperties_To_SystemData_STATUS(&other) if err != nil { return err.Error() @@ -1141,7 +1141,7 @@ func RunPropertyAssignmentTestForBackupVaultOperatorConfigMaps(subject BackupVau copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaultOperatorConfigMaps + var other v20231101s.BackupVaultOperatorConfigMaps err := copied.AssignProperties_To_BackupVaultOperatorConfigMaps(&other) if err != nil { return err.Error() @@ -1238,7 +1238,7 @@ func RunPropertyAssignmentTestForFeatureSettings(subject FeatureSettings) string copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.FeatureSettings + var other v20231101s.FeatureSettings err := copied.AssignProperties_To_FeatureSettings(&other) if err != nil { return err.Error() @@ -1341,7 +1341,7 @@ func RunPropertyAssignmentTestForFeatureSettings_STATUS(subject FeatureSettings_ copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.FeatureSettings_STATUS + var other v20231101s.FeatureSettings_STATUS err := copied.AssignProperties_To_FeatureSettings_STATUS(&other) if err != nil { return err.Error() @@ -1445,7 +1445,7 @@ func RunPropertyAssignmentTestForMonitoringSettings(subject MonitoringSettings) copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.MonitoringSettings + var other v20231101s.MonitoringSettings err := copied.AssignProperties_To_MonitoringSettings(&other) if err != nil { return err.Error() @@ -1547,7 +1547,7 @@ func RunPropertyAssignmentTestForMonitoringSettings_STATUS(subject MonitoringSet copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.MonitoringSettings_STATUS + var other v20231101s.MonitoringSettings_STATUS err := copied.AssignProperties_To_MonitoringSettings_STATUS(&other) if err != nil { return err.Error() @@ -1650,7 +1650,7 @@ func RunPropertyAssignmentTestForResourceMoveDetails_STATUS(subject ResourceMove copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ResourceMoveDetails_STATUS + var other v20231101s.ResourceMoveDetails_STATUS err := copied.AssignProperties_To_ResourceMoveDetails_STATUS(&other) if err != nil { return err.Error() @@ -1757,7 +1757,7 @@ func RunPropertyAssignmentTestForSecuritySettings(subject SecuritySettings) stri copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SecuritySettings + var other v20231101s.SecuritySettings err := copied.AssignProperties_To_SecuritySettings(&other) if err != nil { return err.Error() @@ -1860,7 +1860,7 @@ func RunPropertyAssignmentTestForSecuritySettings_STATUS(subject SecuritySetting copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SecuritySettings_STATUS + var other v20231101s.SecuritySettings_STATUS err := copied.AssignProperties_To_SecuritySettings_STATUS(&other) if err != nil { return err.Error() @@ -1964,7 +1964,7 @@ func RunPropertyAssignmentTestForStorageSetting(subject StorageSetting) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.StorageSetting + var other v20231101s.StorageSetting err := copied.AssignProperties_To_StorageSetting(&other) if err != nil { return err.Error() @@ -2067,7 +2067,7 @@ func RunPropertyAssignmentTestForStorageSetting_STATUS(subject StorageSetting_ST copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.StorageSetting_STATUS + var other v20231101s.StorageSetting_STATUS err := copied.AssignProperties_To_StorageSetting_STATUS(&other) if err != nil { return err.Error() @@ -2171,7 +2171,7 @@ func RunPropertyAssignmentTestForUserAssignedIdentity_STATUS(subject UserAssigne copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.UserAssignedIdentity_STATUS + var other v20231101s.UserAssignedIdentity_STATUS err := copied.AssignProperties_To_UserAssignedIdentity_STATUS(&other) if err != nil { return err.Error() @@ -2275,7 +2275,7 @@ func RunPropertyAssignmentTestForUserAssignedIdentityDetails(subject UserAssigne copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.UserAssignedIdentityDetails + var other v20231101s.UserAssignedIdentityDetails err := copied.AssignProperties_To_UserAssignedIdentityDetails(&other) if err != nil { return err.Error() @@ -2372,7 +2372,7 @@ func RunPropertyAssignmentTestForAzureMonitorAlertSettings(subject AzureMonitorA copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureMonitorAlertSettings + var other v20231101s.AzureMonitorAlertSettings err := copied.AssignProperties_To_AzureMonitorAlertSettings(&other) if err != nil { return err.Error() @@ -2475,7 +2475,7 @@ func RunPropertyAssignmentTestForAzureMonitorAlertSettings_STATUS(subject AzureM copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureMonitorAlertSettings_STATUS + var other v20231101s.AzureMonitorAlertSettings_STATUS err := copied.AssignProperties_To_AzureMonitorAlertSettings_STATUS(&other) if err != nil { return err.Error() @@ -2578,7 +2578,7 @@ func RunPropertyAssignmentTestForCrossRegionRestoreSettings(subject CrossRegionR copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CrossRegionRestoreSettings + var other v20231101s.CrossRegionRestoreSettings err := copied.AssignProperties_To_CrossRegionRestoreSettings(&other) if err != nil { return err.Error() @@ -2681,7 +2681,7 @@ func RunPropertyAssignmentTestForCrossRegionRestoreSettings_STATUS(subject Cross copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CrossRegionRestoreSettings_STATUS + var other v20231101s.CrossRegionRestoreSettings_STATUS err := copied.AssignProperties_To_CrossRegionRestoreSettings_STATUS(&other) if err != nil { return err.Error() @@ -2784,7 +2784,7 @@ func RunPropertyAssignmentTestForCrossSubscriptionRestoreSettings(subject CrossS copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CrossSubscriptionRestoreSettings + var other v20231101s.CrossSubscriptionRestoreSettings err := copied.AssignProperties_To_CrossSubscriptionRestoreSettings(&other) if err != nil { return err.Error() @@ -2887,7 +2887,7 @@ func RunPropertyAssignmentTestForCrossSubscriptionRestoreSettings_STATUS(subject copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CrossSubscriptionRestoreSettings_STATUS + var other v20231101s.CrossSubscriptionRestoreSettings_STATUS err := copied.AssignProperties_To_CrossSubscriptionRestoreSettings_STATUS(&other) if err != nil { return err.Error() @@ -2990,7 +2990,7 @@ func RunPropertyAssignmentTestForImmutabilitySettings(subject ImmutabilitySettin copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ImmutabilitySettings + var other v20231101s.ImmutabilitySettings err := copied.AssignProperties_To_ImmutabilitySettings(&other) if err != nil { return err.Error() @@ -3093,7 +3093,7 @@ func RunPropertyAssignmentTestForImmutabilitySettings_STATUS(subject Immutabilit copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ImmutabilitySettings_STATUS + var other v20231101s.ImmutabilitySettings_STATUS err := copied.AssignProperties_To_ImmutabilitySettings_STATUS(&other) if err != nil { return err.Error() @@ -3196,7 +3196,7 @@ func RunPropertyAssignmentTestForSoftDeleteSettings(subject SoftDeleteSettings) copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SoftDeleteSettings + var other v20231101s.SoftDeleteSettings err := copied.AssignProperties_To_SoftDeleteSettings(&other) if err != nil { return err.Error() @@ -3299,7 +3299,7 @@ func RunPropertyAssignmentTestForSoftDeleteSettings_STATUS(subject SoftDeleteSet copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SoftDeleteSettings_STATUS + var other v20231101s.SoftDeleteSettings_STATUS err := copied.AssignProperties_To_SoftDeleteSettings_STATUS(&other) if err != nil { return err.Error() diff --git a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_instance_spec_arm_types_gen.go b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_spec_arm_types_gen.go similarity index 99% rename from v2/api/dataprotection/v1api20231201/backup_vaults_backup_instance_spec_arm_types_gen.go rename to v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_spec_arm_types_gen.go index aee52f847b2..1a76169f868 100644 --- a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_instance_spec_arm_types_gen.go +++ b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_spec_arm_types_gen.go @@ -1,7 +1,7 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 import ( "encoding/json" @@ -20,7 +20,7 @@ type BackupVaults_BackupInstance_Spec_ARM struct { var _ genruntime.ARMResourceSpec = &BackupVaults_BackupInstance_Spec_ARM{} -// GetAPIVersion returns the ARM API version of the resource. This is always "2023-12-01" +// GetAPIVersion returns the ARM API version of the resource. This is always "2023-11-01" func (instance BackupVaults_BackupInstance_Spec_ARM) GetAPIVersion() string { return string(APIVersion_Value) } diff --git a/v2/api/dataprotection/v1api20231201/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 similarity index 99% rename from v2/api/dataprotection/v1api20231201/backup_vaults_backup_instance_spec_arm_types_gen_test.go rename to v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_spec_arm_types_gen_test.go index b45804cd488..26f92564fe0 100644 --- a/v2/api/dataprotection/v1api20231201/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 @@ -1,7 +1,7 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 import ( "encoding/json" diff --git a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_instance_status_arm_types_gen.go b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_status_arm_types_gen.go similarity index 99% rename from v2/api/dataprotection/v1api20231201/backup_vaults_backup_instance_status_arm_types_gen.go rename to v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_status_arm_types_gen.go index 2ecd902e532..e2d859ece85 100644 --- a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_instance_status_arm_types_gen.go +++ b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_status_arm_types_gen.go @@ -1,7 +1,7 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 import "encoding/json" diff --git a/v2/api/dataprotection/v1api20231201/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 similarity index 99% rename from v2/api/dataprotection/v1api20231201/backup_vaults_backup_instance_status_arm_types_gen_test.go rename to v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_status_arm_types_gen_test.go index a1419a8488c..0da33432610 100644 --- a/v2/api/dataprotection/v1api20231201/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 @@ -1,7 +1,7 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 import ( "encoding/json" diff --git a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_instance_types_gen.go b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_types_gen.go similarity index 96% rename from v2/api/dataprotection/v1api20231201/backup_vaults_backup_instance_types_gen.go rename to v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_types_gen.go index 0ee4a59c034..384bc7c2f8e 100644 --- a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_instance_types_gen.go +++ b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_types_gen.go @@ -1,11 +1,11 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 import ( "fmt" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" + v20231101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage" "github.com/Azure/azure-service-operator/v2/internal/reflecthelpers" "github.com/Azure/azure-service-operator/v2/pkg/genruntime" "github.com/Azure/azure-service-operator/v2/pkg/genruntime/conditions" @@ -24,7 +24,7 @@ import ( // +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason" // +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message" // Generator information: -// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-12-01/dataprotection.json +// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-11-01/dataprotection.json // - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName} type BackupVaultsBackupInstance struct { metav1.TypeMeta `json:",inline"` @@ -49,9 +49,9 @@ var _ conversion.Convertible = &BackupVaultsBackupInstance{} // ConvertFrom populates our BackupVaultsBackupInstance from the provided hub BackupVaultsBackupInstance func (instance *BackupVaultsBackupInstance) ConvertFrom(hub conversion.Hub) error { - source, ok := hub.(*v20231201s.BackupVaultsBackupInstance) + source, ok := hub.(*v20231101s.BackupVaultsBackupInstance) if !ok { - return fmt.Errorf("expected dataprotection/v1api20231201/storage/BackupVaultsBackupInstance but received %T instead", hub) + return fmt.Errorf("expected dataprotection/v1api20231101/storage/BackupVaultsBackupInstance but received %T instead", hub) } return instance.AssignProperties_From_BackupVaultsBackupInstance(source) @@ -59,15 +59,15 @@ func (instance *BackupVaultsBackupInstance) ConvertFrom(hub conversion.Hub) erro // ConvertTo populates the provided hub BackupVaultsBackupInstance from our BackupVaultsBackupInstance func (instance *BackupVaultsBackupInstance) ConvertTo(hub conversion.Hub) error { - destination, ok := hub.(*v20231201s.BackupVaultsBackupInstance) + destination, ok := hub.(*v20231101s.BackupVaultsBackupInstance) if !ok { - return fmt.Errorf("expected dataprotection/v1api20231201/storage/BackupVaultsBackupInstance but received %T instead", hub) + return fmt.Errorf("expected dataprotection/v1api20231101/storage/BackupVaultsBackupInstance but received %T instead", hub) } return instance.AssignProperties_To_BackupVaultsBackupInstance(destination) } -// +kubebuilder:webhook:path=/mutate-dataprotection-azure-com-v1api20231201-backupvaultsbackupinstance,mutating=true,sideEffects=None,matchPolicy=Exact,failurePolicy=fail,groups=dataprotection.azure.com,resources=backupvaultsbackupinstances,verbs=create;update,versions=v1api20231201,name=default.v1api20231201.backupvaultsbackupinstances.dataprotection.azure.com,admissionReviewVersions=v1 +// +kubebuilder:webhook:path=/mutate-dataprotection-azure-com-v1api20231101-backupvaultsbackupinstance,mutating=true,sideEffects=None,matchPolicy=Exact,failurePolicy=fail,groups=dataprotection.azure.com,resources=backupvaultsbackupinstances,verbs=create;update,versions=v1api20231101,name=default.v1api20231101.backupvaultsbackupinstances.dataprotection.azure.com,admissionReviewVersions=v1 var _ admission.Defaulter = &BackupVaultsBackupInstance{} @@ -108,7 +108,7 @@ func (instance *BackupVaultsBackupInstance) AzureName() string { return instance.Spec.AzureName } -// GetAPIVersion returns the ARM API version of the resource. This is always "2023-12-01" +// GetAPIVersion returns the ARM API version of the resource. This is always "2023-11-01" func (instance BackupVaultsBackupInstance) GetAPIVersion() string { return string(APIVersion_Value) } @@ -172,7 +172,7 @@ func (instance *BackupVaultsBackupInstance) SetStatus(status genruntime.Converti return nil } -// +kubebuilder:webhook:path=/validate-dataprotection-azure-com-v1api20231201-backupvaultsbackupinstance,mutating=false,sideEffects=None,matchPolicy=Exact,failurePolicy=fail,groups=dataprotection.azure.com,resources=backupvaultsbackupinstances,verbs=create;update,versions=v1api20231201,name=validate.v1api20231201.backupvaultsbackupinstances.dataprotection.azure.com,admissionReviewVersions=v1 +// +kubebuilder:webhook:path=/validate-dataprotection-azure-com-v1api20231101-backupvaultsbackupinstance,mutating=false,sideEffects=None,matchPolicy=Exact,failurePolicy=fail,groups=dataprotection.azure.com,resources=backupvaultsbackupinstances,verbs=create;update,versions=v1api20231101,name=validate.v1api20231101.backupvaultsbackupinstances.dataprotection.azure.com,admissionReviewVersions=v1 var _ admission.Validator = &BackupVaultsBackupInstance{} @@ -254,7 +254,7 @@ func (instance *BackupVaultsBackupInstance) validateWriteOnceProperties(old runt } // AssignProperties_From_BackupVaultsBackupInstance populates our BackupVaultsBackupInstance from the provided source BackupVaultsBackupInstance -func (instance *BackupVaultsBackupInstance) AssignProperties_From_BackupVaultsBackupInstance(source *v20231201s.BackupVaultsBackupInstance) error { +func (instance *BackupVaultsBackupInstance) AssignProperties_From_BackupVaultsBackupInstance(source *v20231101s.BackupVaultsBackupInstance) error { // ObjectMeta instance.ObjectMeta = *source.ObjectMeta.DeepCopy() @@ -280,13 +280,13 @@ func (instance *BackupVaultsBackupInstance) AssignProperties_From_BackupVaultsBa } // AssignProperties_To_BackupVaultsBackupInstance populates the provided destination BackupVaultsBackupInstance from our BackupVaultsBackupInstance -func (instance *BackupVaultsBackupInstance) AssignProperties_To_BackupVaultsBackupInstance(destination *v20231201s.BackupVaultsBackupInstance) error { +func (instance *BackupVaultsBackupInstance) AssignProperties_To_BackupVaultsBackupInstance(destination *v20231101s.BackupVaultsBackupInstance) error { // ObjectMeta destination.ObjectMeta = *instance.ObjectMeta.DeepCopy() // Spec - var spec v20231201s.BackupVaults_BackupInstance_Spec + var spec v20231101s.BackupVaults_BackupInstance_Spec err := instance.Spec.AssignProperties_To_BackupVaults_BackupInstance_Spec(&spec) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVaults_BackupInstance_Spec() to populate field Spec") @@ -294,7 +294,7 @@ func (instance *BackupVaultsBackupInstance) AssignProperties_To_BackupVaultsBack destination.Spec = spec // Status - var status v20231201s.BackupVaults_BackupInstance_STATUS + var status v20231101s.BackupVaults_BackupInstance_STATUS err = instance.Status.AssignProperties_To_BackupVaults_BackupInstance_STATUS(&status) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVaults_BackupInstance_STATUS() to populate field Status") @@ -316,7 +316,7 @@ func (instance *BackupVaultsBackupInstance) OriginalGVK() *schema.GroupVersionKi // +kubebuilder:object:root=true // Generator information: -// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-12-01/dataprotection.json +// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-11-01/dataprotection.json // - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName} type BackupVaultsBackupInstanceList struct { metav1.TypeMeta `json:",inline"` @@ -422,14 +422,14 @@ var _ genruntime.ConvertibleSpec = &BackupVaults_BackupInstance_Spec{} // ConvertSpecFrom populates our BackupVaults_BackupInstance_Spec from the provided source func (instance *BackupVaults_BackupInstance_Spec) ConvertSpecFrom(source genruntime.ConvertibleSpec) error { - src, ok := source.(*v20231201s.BackupVaults_BackupInstance_Spec) + src, ok := source.(*v20231101s.BackupVaults_BackupInstance_Spec) if ok { // Populate our instance from source return instance.AssignProperties_From_BackupVaults_BackupInstance_Spec(src) } // Convert to an intermediate form - src = &v20231201s.BackupVaults_BackupInstance_Spec{} + src = &v20231101s.BackupVaults_BackupInstance_Spec{} err := src.ConvertSpecFrom(source) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertSpecFrom()") @@ -446,14 +446,14 @@ func (instance *BackupVaults_BackupInstance_Spec) ConvertSpecFrom(source genrunt // ConvertSpecTo populates the provided destination from our BackupVaults_BackupInstance_Spec func (instance *BackupVaults_BackupInstance_Spec) ConvertSpecTo(destination genruntime.ConvertibleSpec) error { - dst, ok := destination.(*v20231201s.BackupVaults_BackupInstance_Spec) + dst, ok := destination.(*v20231101s.BackupVaults_BackupInstance_Spec) if ok { // Populate destination from our instance return instance.AssignProperties_To_BackupVaults_BackupInstance_Spec(dst) } // Convert to an intermediate form - dst = &v20231201s.BackupVaults_BackupInstance_Spec{} + dst = &v20231101s.BackupVaults_BackupInstance_Spec{} err := instance.AssignProperties_To_BackupVaults_BackupInstance_Spec(dst) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertSpecTo()") @@ -469,7 +469,7 @@ func (instance *BackupVaults_BackupInstance_Spec) ConvertSpecTo(destination genr } // AssignProperties_From_BackupVaults_BackupInstance_Spec populates our BackupVaults_BackupInstance_Spec from the provided source BackupVaults_BackupInstance_Spec -func (instance *BackupVaults_BackupInstance_Spec) AssignProperties_From_BackupVaults_BackupInstance_Spec(source *v20231201s.BackupVaults_BackupInstance_Spec) error { +func (instance *BackupVaults_BackupInstance_Spec) AssignProperties_From_BackupVaults_BackupInstance_Spec(source *v20231101s.BackupVaults_BackupInstance_Spec) error { // AzureName instance.AzureName = source.AzureName @@ -502,7 +502,7 @@ func (instance *BackupVaults_BackupInstance_Spec) AssignProperties_From_BackupVa } // AssignProperties_To_BackupVaults_BackupInstance_Spec populates the provided destination BackupVaults_BackupInstance_Spec from our BackupVaults_BackupInstance_Spec -func (instance *BackupVaults_BackupInstance_Spec) AssignProperties_To_BackupVaults_BackupInstance_Spec(destination *v20231201s.BackupVaults_BackupInstance_Spec) error { +func (instance *BackupVaults_BackupInstance_Spec) AssignProperties_To_BackupVaults_BackupInstance_Spec(destination *v20231101s.BackupVaults_BackupInstance_Spec) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -522,7 +522,7 @@ func (instance *BackupVaults_BackupInstance_Spec) AssignProperties_To_BackupVaul // Properties if instance.Properties != nil { - var property v20231201s.BackupInstance + var property v20231101s.BackupInstance err := instance.Properties.AssignProperties_To_BackupInstance(&property) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupInstance() to populate field Properties") @@ -605,14 +605,14 @@ var _ genruntime.ConvertibleStatus = &BackupVaults_BackupInstance_STATUS{} // ConvertStatusFrom populates our BackupVaults_BackupInstance_STATUS from the provided source func (instance *BackupVaults_BackupInstance_STATUS) ConvertStatusFrom(source genruntime.ConvertibleStatus) error { - src, ok := source.(*v20231201s.BackupVaults_BackupInstance_STATUS) + src, ok := source.(*v20231101s.BackupVaults_BackupInstance_STATUS) if ok { // Populate our instance from source return instance.AssignProperties_From_BackupVaults_BackupInstance_STATUS(src) } // Convert to an intermediate form - src = &v20231201s.BackupVaults_BackupInstance_STATUS{} + src = &v20231101s.BackupVaults_BackupInstance_STATUS{} err := src.ConvertStatusFrom(source) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertStatusFrom()") @@ -629,14 +629,14 @@ func (instance *BackupVaults_BackupInstance_STATUS) ConvertStatusFrom(source gen // ConvertStatusTo populates the provided destination from our BackupVaults_BackupInstance_STATUS func (instance *BackupVaults_BackupInstance_STATUS) ConvertStatusTo(destination genruntime.ConvertibleStatus) error { - dst, ok := destination.(*v20231201s.BackupVaults_BackupInstance_STATUS) + dst, ok := destination.(*v20231101s.BackupVaults_BackupInstance_STATUS) if ok { // Populate destination from our instance return instance.AssignProperties_To_BackupVaults_BackupInstance_STATUS(dst) } // Convert to an intermediate form - dst = &v20231201s.BackupVaults_BackupInstance_STATUS{} + dst = &v20231101s.BackupVaults_BackupInstance_STATUS{} err := instance.AssignProperties_To_BackupVaults_BackupInstance_STATUS(dst) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertStatusTo()") @@ -720,7 +720,7 @@ func (instance *BackupVaults_BackupInstance_STATUS) PopulateFromARM(owner genrun } // AssignProperties_From_BackupVaults_BackupInstance_STATUS populates our BackupVaults_BackupInstance_STATUS from the provided source BackupVaults_BackupInstance_STATUS -func (instance *BackupVaults_BackupInstance_STATUS) AssignProperties_From_BackupVaults_BackupInstance_STATUS(source *v20231201s.BackupVaults_BackupInstance_STATUS) error { +func (instance *BackupVaults_BackupInstance_STATUS) AssignProperties_From_BackupVaults_BackupInstance_STATUS(source *v20231101s.BackupVaults_BackupInstance_STATUS) error { // Conditions instance.Conditions = genruntime.CloneSliceOfCondition(source.Conditions) @@ -766,7 +766,7 @@ func (instance *BackupVaults_BackupInstance_STATUS) AssignProperties_From_Backup } // AssignProperties_To_BackupVaults_BackupInstance_STATUS populates the provided destination BackupVaults_BackupInstance_STATUS from our BackupVaults_BackupInstance_STATUS -func (instance *BackupVaults_BackupInstance_STATUS) AssignProperties_To_BackupVaults_BackupInstance_STATUS(destination *v20231201s.BackupVaults_BackupInstance_STATUS) error { +func (instance *BackupVaults_BackupInstance_STATUS) AssignProperties_To_BackupVaults_BackupInstance_STATUS(destination *v20231101s.BackupVaults_BackupInstance_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -781,7 +781,7 @@ func (instance *BackupVaults_BackupInstance_STATUS) AssignProperties_To_BackupVa // Properties if instance.Properties != nil { - var property v20231201s.BackupInstance_STATUS + var property v20231101s.BackupInstance_STATUS err := instance.Properties.AssignProperties_To_BackupInstance_STATUS(&property) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupInstance_STATUS() to populate field Properties") @@ -793,7 +793,7 @@ func (instance *BackupVaults_BackupInstance_STATUS) AssignProperties_To_BackupVa // SystemData if instance.SystemData != nil { - var systemDatum v20231201s.SystemData_STATUS + var systemDatum v20231101s.SystemData_STATUS err := instance.SystemData.AssignProperties_To_SystemData_STATUS(&systemDatum) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SystemData_STATUS() to populate field SystemData") @@ -1020,7 +1020,7 @@ func (instance *BackupInstance) PopulateFromARM(owner genruntime.ArbitraryOwnerR } // AssignProperties_From_BackupInstance populates our BackupInstance from the provided source BackupInstance -func (instance *BackupInstance) AssignProperties_From_BackupInstance(source *v20231201s.BackupInstance) error { +func (instance *BackupInstance) AssignProperties_From_BackupInstance(source *v20231101s.BackupInstance) error { // DataSourceInfo if source.DataSourceInfo != nil { @@ -1101,13 +1101,13 @@ func (instance *BackupInstance) AssignProperties_From_BackupInstance(source *v20 } // AssignProperties_To_BackupInstance populates the provided destination BackupInstance from our BackupInstance -func (instance *BackupInstance) AssignProperties_To_BackupInstance(destination *v20231201s.BackupInstance) error { +func (instance *BackupInstance) AssignProperties_To_BackupInstance(destination *v20231101s.BackupInstance) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // DataSourceInfo if instance.DataSourceInfo != nil { - var dataSourceInfo v20231201s.Datasource + var dataSourceInfo v20231101s.Datasource err := instance.DataSourceInfo.AssignProperties_To_Datasource(&dataSourceInfo) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_Datasource() to populate field DataSourceInfo") @@ -1119,7 +1119,7 @@ func (instance *BackupInstance) AssignProperties_To_BackupInstance(destination * // DataSourceSetInfo if instance.DataSourceSetInfo != nil { - var dataSourceSetInfo v20231201s.DatasourceSet + var dataSourceSetInfo v20231101s.DatasourceSet err := instance.DataSourceSetInfo.AssignProperties_To_DatasourceSet(&dataSourceSetInfo) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DatasourceSet() to populate field DataSourceSetInfo") @@ -1131,7 +1131,7 @@ func (instance *BackupInstance) AssignProperties_To_BackupInstance(destination * // DatasourceAuthCredentials if instance.DatasourceAuthCredentials != nil { - var datasourceAuthCredential v20231201s.AuthCredentials + var datasourceAuthCredential v20231101s.AuthCredentials err := instance.DatasourceAuthCredentials.AssignProperties_To_AuthCredentials(&datasourceAuthCredential) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AuthCredentials() to populate field DatasourceAuthCredentials") @@ -1146,7 +1146,7 @@ func (instance *BackupInstance) AssignProperties_To_BackupInstance(destination * // IdentityDetails if instance.IdentityDetails != nil { - var identityDetail v20231201s.IdentityDetails + var identityDetail v20231101s.IdentityDetails err := instance.IdentityDetails.AssignProperties_To_IdentityDetails(&identityDetail) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_IdentityDetails() to populate field IdentityDetails") @@ -1161,7 +1161,7 @@ func (instance *BackupInstance) AssignProperties_To_BackupInstance(destination * // PolicyInfo if instance.PolicyInfo != nil { - var policyInfo v20231201s.PolicyInfo + var policyInfo v20231101s.PolicyInfo err := instance.PolicyInfo.AssignProperties_To_PolicyInfo(&policyInfo) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_PolicyInfo() to populate field PolicyInfo") @@ -1436,7 +1436,7 @@ func (instance *BackupInstance_STATUS) PopulateFromARM(owner genruntime.Arbitrar } // AssignProperties_From_BackupInstance_STATUS populates our BackupInstance_STATUS from the provided source BackupInstance_STATUS -func (instance *BackupInstance_STATUS) AssignProperties_From_BackupInstance_STATUS(source *v20231201s.BackupInstance_STATUS) error { +func (instance *BackupInstance_STATUS) AssignProperties_From_BackupInstance_STATUS(source *v20231101s.BackupInstance_STATUS) error { // CurrentProtectionState if source.CurrentProtectionState != nil { @@ -1552,7 +1552,7 @@ func (instance *BackupInstance_STATUS) AssignProperties_From_BackupInstance_STAT } // AssignProperties_To_BackupInstance_STATUS populates the provided destination BackupInstance_STATUS from our BackupInstance_STATUS -func (instance *BackupInstance_STATUS) AssignProperties_To_BackupInstance_STATUS(destination *v20231201s.BackupInstance_STATUS) error { +func (instance *BackupInstance_STATUS) AssignProperties_To_BackupInstance_STATUS(destination *v20231101s.BackupInstance_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -1566,7 +1566,7 @@ func (instance *BackupInstance_STATUS) AssignProperties_To_BackupInstance_STATUS // DataSourceInfo if instance.DataSourceInfo != nil { - var dataSourceInfo v20231201s.Datasource_STATUS + var dataSourceInfo v20231101s.Datasource_STATUS err := instance.DataSourceInfo.AssignProperties_To_Datasource_STATUS(&dataSourceInfo) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_Datasource_STATUS() to populate field DataSourceInfo") @@ -1578,7 +1578,7 @@ func (instance *BackupInstance_STATUS) AssignProperties_To_BackupInstance_STATUS // DataSourceSetInfo if instance.DataSourceSetInfo != nil { - var dataSourceSetInfo v20231201s.DatasourceSet_STATUS + var dataSourceSetInfo v20231101s.DatasourceSet_STATUS err := instance.DataSourceSetInfo.AssignProperties_To_DatasourceSet_STATUS(&dataSourceSetInfo) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DatasourceSet_STATUS() to populate field DataSourceSetInfo") @@ -1590,7 +1590,7 @@ func (instance *BackupInstance_STATUS) AssignProperties_To_BackupInstance_STATUS // DatasourceAuthCredentials if instance.DatasourceAuthCredentials != nil { - var datasourceAuthCredential v20231201s.AuthCredentials_STATUS + var datasourceAuthCredential v20231101s.AuthCredentials_STATUS err := instance.DatasourceAuthCredentials.AssignProperties_To_AuthCredentials_STATUS(&datasourceAuthCredential) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AuthCredentials_STATUS() to populate field DatasourceAuthCredentials") @@ -1605,7 +1605,7 @@ func (instance *BackupInstance_STATUS) AssignProperties_To_BackupInstance_STATUS // IdentityDetails if instance.IdentityDetails != nil { - var identityDetail v20231201s.IdentityDetails_STATUS + var identityDetail v20231101s.IdentityDetails_STATUS err := instance.IdentityDetails.AssignProperties_To_IdentityDetails_STATUS(&identityDetail) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_IdentityDetails_STATUS() to populate field IdentityDetails") @@ -1620,7 +1620,7 @@ func (instance *BackupInstance_STATUS) AssignProperties_To_BackupInstance_STATUS // PolicyInfo if instance.PolicyInfo != nil { - var policyInfo v20231201s.PolicyInfo_STATUS + var policyInfo v20231101s.PolicyInfo_STATUS err := instance.PolicyInfo.AssignProperties_To_PolicyInfo_STATUS(&policyInfo) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_PolicyInfo_STATUS() to populate field PolicyInfo") @@ -1632,7 +1632,7 @@ func (instance *BackupInstance_STATUS) AssignProperties_To_BackupInstance_STATUS // ProtectionErrorDetails if instance.ProtectionErrorDetails != nil { - var protectionErrorDetail v20231201s.UserFacingError_STATUS + var protectionErrorDetail v20231101s.UserFacingError_STATUS err := instance.ProtectionErrorDetails.AssignProperties_To_UserFacingError_STATUS(&protectionErrorDetail) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_UserFacingError_STATUS() to populate field ProtectionErrorDetails") @@ -1644,7 +1644,7 @@ func (instance *BackupInstance_STATUS) AssignProperties_To_BackupInstance_STATUS // ProtectionStatus if instance.ProtectionStatus != nil { - var protectionStatus v20231201s.ProtectionStatusDetails_STATUS + var protectionStatus v20231101s.ProtectionStatusDetails_STATUS err := instance.ProtectionStatus.AssignProperties_To_ProtectionStatusDetails_STATUS(&protectionStatus) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ProtectionStatusDetails_STATUS() to populate field ProtectionStatus") @@ -1730,7 +1730,7 @@ func (credentials *AuthCredentials) PopulateFromARM(owner genruntime.ArbitraryOw } // AssignProperties_From_AuthCredentials populates our AuthCredentials from the provided source AuthCredentials -func (credentials *AuthCredentials) AssignProperties_From_AuthCredentials(source *v20231201s.AuthCredentials) error { +func (credentials *AuthCredentials) AssignProperties_From_AuthCredentials(source *v20231101s.AuthCredentials) error { // SecretStoreBasedAuthCredentials if source.SecretStoreBasedAuthCredentials != nil { @@ -1749,13 +1749,13 @@ func (credentials *AuthCredentials) AssignProperties_From_AuthCredentials(source } // AssignProperties_To_AuthCredentials populates the provided destination AuthCredentials from our AuthCredentials -func (credentials *AuthCredentials) AssignProperties_To_AuthCredentials(destination *v20231201s.AuthCredentials) error { +func (credentials *AuthCredentials) AssignProperties_To_AuthCredentials(destination *v20231101s.AuthCredentials) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // SecretStoreBasedAuthCredentials if credentials.SecretStoreBasedAuthCredentials != nil { - var secretStoreBasedAuthCredential v20231201s.SecretStoreBasedAuthCredentials + var secretStoreBasedAuthCredential v20231101s.SecretStoreBasedAuthCredentials err := credentials.SecretStoreBasedAuthCredentials.AssignProperties_To_SecretStoreBasedAuthCredentials(&secretStoreBasedAuthCredential) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SecretStoreBasedAuthCredentials() to populate field SecretStoreBasedAuthCredentials") @@ -1830,7 +1830,7 @@ func (credentials *AuthCredentials_STATUS) PopulateFromARM(owner genruntime.Arbi } // AssignProperties_From_AuthCredentials_STATUS populates our AuthCredentials_STATUS from the provided source AuthCredentials_STATUS -func (credentials *AuthCredentials_STATUS) AssignProperties_From_AuthCredentials_STATUS(source *v20231201s.AuthCredentials_STATUS) error { +func (credentials *AuthCredentials_STATUS) AssignProperties_From_AuthCredentials_STATUS(source *v20231101s.AuthCredentials_STATUS) error { // SecretStoreBasedAuthCredentials if source.SecretStoreBasedAuthCredentials != nil { @@ -1849,13 +1849,13 @@ func (credentials *AuthCredentials_STATUS) AssignProperties_From_AuthCredentials } // AssignProperties_To_AuthCredentials_STATUS populates the provided destination AuthCredentials_STATUS from our AuthCredentials_STATUS -func (credentials *AuthCredentials_STATUS) AssignProperties_To_AuthCredentials_STATUS(destination *v20231201s.AuthCredentials_STATUS) error { +func (credentials *AuthCredentials_STATUS) AssignProperties_To_AuthCredentials_STATUS(destination *v20231101s.AuthCredentials_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // SecretStoreBasedAuthCredentials if credentials.SecretStoreBasedAuthCredentials != nil { - var secretStoreBasedAuthCredential v20231201s.SecretStoreBasedAuthCredentials_STATUS + var secretStoreBasedAuthCredential v20231101s.SecretStoreBasedAuthCredentials_STATUS err := credentials.SecretStoreBasedAuthCredentials.AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS(&secretStoreBasedAuthCredential) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS() to populate field SecretStoreBasedAuthCredentials") @@ -2038,7 +2038,7 @@ func (datasource *Datasource) PopulateFromARM(owner genruntime.ArbitraryOwnerRef } // AssignProperties_From_Datasource populates our Datasource from the provided source Datasource -func (datasource *Datasource) AssignProperties_From_Datasource(source *v20231201s.Datasource) error { +func (datasource *Datasource) AssignProperties_From_Datasource(source *v20231101s.Datasource) error { // DatasourceType datasource.DatasourceType = genruntime.ClonePointerToString(source.DatasourceType) @@ -2083,7 +2083,7 @@ func (datasource *Datasource) AssignProperties_From_Datasource(source *v20231201 } // AssignProperties_To_Datasource populates the provided destination Datasource from our Datasource -func (datasource *Datasource) AssignProperties_To_Datasource(destination *v20231201s.Datasource) error { +func (datasource *Datasource) AssignProperties_To_Datasource(destination *v20231101s.Datasource) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -2101,7 +2101,7 @@ func (datasource *Datasource) AssignProperties_To_Datasource(destination *v20231 // ResourceProperties if datasource.ResourceProperties != nil { - var resourceProperty v20231201s.BaseResourceProperties + var resourceProperty v20231101s.BaseResourceProperties err := datasource.ResourceProperties.AssignProperties_To_BaseResourceProperties(&resourceProperty) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BaseResourceProperties() to populate field ResourceProperties") @@ -2273,7 +2273,7 @@ func (datasource *Datasource_STATUS) PopulateFromARM(owner genruntime.ArbitraryO } // AssignProperties_From_Datasource_STATUS populates our Datasource_STATUS from the provided source Datasource_STATUS -func (datasource *Datasource_STATUS) AssignProperties_From_Datasource_STATUS(source *v20231201s.Datasource_STATUS) error { +func (datasource *Datasource_STATUS) AssignProperties_From_Datasource_STATUS(source *v20231101s.Datasource_STATUS) error { // DatasourceType datasource.DatasourceType = genruntime.ClonePointerToString(source.DatasourceType) @@ -2313,7 +2313,7 @@ func (datasource *Datasource_STATUS) AssignProperties_From_Datasource_STATUS(sou } // AssignProperties_To_Datasource_STATUS populates the provided destination Datasource_STATUS from our Datasource_STATUS -func (datasource *Datasource_STATUS) AssignProperties_To_Datasource_STATUS(destination *v20231201s.Datasource_STATUS) error { +func (datasource *Datasource_STATUS) AssignProperties_To_Datasource_STATUS(destination *v20231101s.Datasource_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -2334,7 +2334,7 @@ func (datasource *Datasource_STATUS) AssignProperties_To_Datasource_STATUS(desti // ResourceProperties if datasource.ResourceProperties != nil { - var resourceProperty v20231201s.BaseResourceProperties_STATUS + var resourceProperty v20231101s.BaseResourceProperties_STATUS err := datasource.ResourceProperties.AssignProperties_To_BaseResourceProperties_STATUS(&resourceProperty) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BaseResourceProperties_STATUS() to populate field ResourceProperties") @@ -2523,7 +2523,7 @@ func (datasourceSet *DatasourceSet) PopulateFromARM(owner genruntime.ArbitraryOw } // AssignProperties_From_DatasourceSet populates our DatasourceSet from the provided source DatasourceSet -func (datasourceSet *DatasourceSet) AssignProperties_From_DatasourceSet(source *v20231201s.DatasourceSet) error { +func (datasourceSet *DatasourceSet) AssignProperties_From_DatasourceSet(source *v20231101s.DatasourceSet) error { // DatasourceType datasourceSet.DatasourceType = genruntime.ClonePointerToString(source.DatasourceType) @@ -2568,7 +2568,7 @@ func (datasourceSet *DatasourceSet) AssignProperties_From_DatasourceSet(source * } // AssignProperties_To_DatasourceSet populates the provided destination DatasourceSet from our DatasourceSet -func (datasourceSet *DatasourceSet) AssignProperties_To_DatasourceSet(destination *v20231201s.DatasourceSet) error { +func (datasourceSet *DatasourceSet) AssignProperties_To_DatasourceSet(destination *v20231101s.DatasourceSet) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -2586,7 +2586,7 @@ func (datasourceSet *DatasourceSet) AssignProperties_To_DatasourceSet(destinatio // ResourceProperties if datasourceSet.ResourceProperties != nil { - var resourceProperty v20231201s.BaseResourceProperties + var resourceProperty v20231101s.BaseResourceProperties err := datasourceSet.ResourceProperties.AssignProperties_To_BaseResourceProperties(&resourceProperty) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BaseResourceProperties() to populate field ResourceProperties") @@ -2758,7 +2758,7 @@ func (datasourceSet *DatasourceSet_STATUS) PopulateFromARM(owner genruntime.Arbi } // AssignProperties_From_DatasourceSet_STATUS populates our DatasourceSet_STATUS from the provided source DatasourceSet_STATUS -func (datasourceSet *DatasourceSet_STATUS) AssignProperties_From_DatasourceSet_STATUS(source *v20231201s.DatasourceSet_STATUS) error { +func (datasourceSet *DatasourceSet_STATUS) AssignProperties_From_DatasourceSet_STATUS(source *v20231101s.DatasourceSet_STATUS) error { // DatasourceType datasourceSet.DatasourceType = genruntime.ClonePointerToString(source.DatasourceType) @@ -2798,7 +2798,7 @@ func (datasourceSet *DatasourceSet_STATUS) AssignProperties_From_DatasourceSet_S } // AssignProperties_To_DatasourceSet_STATUS populates the provided destination DatasourceSet_STATUS from our DatasourceSet_STATUS -func (datasourceSet *DatasourceSet_STATUS) AssignProperties_To_DatasourceSet_STATUS(destination *v20231201s.DatasourceSet_STATUS) error { +func (datasourceSet *DatasourceSet_STATUS) AssignProperties_To_DatasourceSet_STATUS(destination *v20231101s.DatasourceSet_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -2819,7 +2819,7 @@ func (datasourceSet *DatasourceSet_STATUS) AssignProperties_To_DatasourceSet_STA // ResourceProperties if datasourceSet.ResourceProperties != nil { - var resourceProperty v20231201s.BaseResourceProperties_STATUS + var resourceProperty v20231101s.BaseResourceProperties_STATUS err := datasourceSet.ResourceProperties.AssignProperties_To_BaseResourceProperties_STATUS(&resourceProperty) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BaseResourceProperties_STATUS() to populate field ResourceProperties") @@ -2906,7 +2906,7 @@ func (details *IdentityDetails) PopulateFromARM(owner genruntime.ArbitraryOwnerR } // AssignProperties_From_IdentityDetails populates our IdentityDetails from the provided source IdentityDetails -func (details *IdentityDetails) AssignProperties_From_IdentityDetails(source *v20231201s.IdentityDetails) error { +func (details *IdentityDetails) AssignProperties_From_IdentityDetails(source *v20231101s.IdentityDetails) error { // UseSystemAssignedIdentity if source.UseSystemAssignedIdentity != nil { @@ -2924,7 +2924,7 @@ func (details *IdentityDetails) AssignProperties_From_IdentityDetails(source *v2 } // AssignProperties_To_IdentityDetails populates the provided destination IdentityDetails from our IdentityDetails -func (details *IdentityDetails) AssignProperties_To_IdentityDetails(destination *v20231201s.IdentityDetails) error { +func (details *IdentityDetails) AssignProperties_To_IdentityDetails(destination *v20231101s.IdentityDetails) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -3007,7 +3007,7 @@ func (details *IdentityDetails_STATUS) PopulateFromARM(owner genruntime.Arbitrar } // AssignProperties_From_IdentityDetails_STATUS populates our IdentityDetails_STATUS from the provided source IdentityDetails_STATUS -func (details *IdentityDetails_STATUS) AssignProperties_From_IdentityDetails_STATUS(source *v20231201s.IdentityDetails_STATUS) error { +func (details *IdentityDetails_STATUS) AssignProperties_From_IdentityDetails_STATUS(source *v20231101s.IdentityDetails_STATUS) error { // UseSystemAssignedIdentity if source.UseSystemAssignedIdentity != nil { @@ -3025,7 +3025,7 @@ func (details *IdentityDetails_STATUS) AssignProperties_From_IdentityDetails_STA } // AssignProperties_To_IdentityDetails_STATUS populates the provided destination IdentityDetails_STATUS from our IdentityDetails_STATUS -func (details *IdentityDetails_STATUS) AssignProperties_To_IdentityDetails_STATUS(destination *v20231201s.IdentityDetails_STATUS) error { +func (details *IdentityDetails_STATUS) AssignProperties_To_IdentityDetails_STATUS(destination *v20231101s.IdentityDetails_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -3121,7 +3121,7 @@ func (info *PolicyInfo) PopulateFromARM(owner genruntime.ArbitraryOwnerReference } // AssignProperties_From_PolicyInfo populates our PolicyInfo from the provided source PolicyInfo -func (info *PolicyInfo) AssignProperties_From_PolicyInfo(source *v20231201s.PolicyInfo) error { +func (info *PolicyInfo) AssignProperties_From_PolicyInfo(source *v20231101s.PolicyInfo) error { // PolicyParameters if source.PolicyParameters != nil { @@ -3148,13 +3148,13 @@ func (info *PolicyInfo) AssignProperties_From_PolicyInfo(source *v20231201s.Poli } // AssignProperties_To_PolicyInfo populates the provided destination PolicyInfo from our PolicyInfo -func (info *PolicyInfo) AssignProperties_To_PolicyInfo(destination *v20231201s.PolicyInfo) error { +func (info *PolicyInfo) AssignProperties_To_PolicyInfo(destination *v20231101s.PolicyInfo) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // PolicyParameters if info.PolicyParameters != nil { - var policyParameter v20231201s.PolicyParameters + var policyParameter v20231101s.PolicyParameters err := info.PolicyParameters.AssignProperties_To_PolicyParameters(&policyParameter) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_PolicyParameters() to populate field PolicyParameters") @@ -3261,7 +3261,7 @@ func (info *PolicyInfo_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerRe } // AssignProperties_From_PolicyInfo_STATUS populates our PolicyInfo_STATUS from the provided source PolicyInfo_STATUS -func (info *PolicyInfo_STATUS) AssignProperties_From_PolicyInfo_STATUS(source *v20231201s.PolicyInfo_STATUS) error { +func (info *PolicyInfo_STATUS) AssignProperties_From_PolicyInfo_STATUS(source *v20231101s.PolicyInfo_STATUS) error { // PolicyId info.PolicyId = genruntime.ClonePointerToString(source.PolicyId) @@ -3286,7 +3286,7 @@ func (info *PolicyInfo_STATUS) AssignProperties_From_PolicyInfo_STATUS(source *v } // AssignProperties_To_PolicyInfo_STATUS populates the provided destination PolicyInfo_STATUS from our PolicyInfo_STATUS -func (info *PolicyInfo_STATUS) AssignProperties_To_PolicyInfo_STATUS(destination *v20231201s.PolicyInfo_STATUS) error { +func (info *PolicyInfo_STATUS) AssignProperties_To_PolicyInfo_STATUS(destination *v20231101s.PolicyInfo_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -3295,7 +3295,7 @@ func (info *PolicyInfo_STATUS) AssignProperties_To_PolicyInfo_STATUS(destination // PolicyParameters if info.PolicyParameters != nil { - var policyParameter v20231201s.PolicyParameters_STATUS + var policyParameter v20231101s.PolicyParameters_STATUS err := info.PolicyParameters.AssignProperties_To_PolicyParameters_STATUS(&policyParameter) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_PolicyParameters_STATUS() to populate field PolicyParameters") @@ -3364,7 +3364,7 @@ func (details *ProtectionStatusDetails_STATUS) PopulateFromARM(owner genruntime. } // AssignProperties_From_ProtectionStatusDetails_STATUS populates our ProtectionStatusDetails_STATUS from the provided source ProtectionStatusDetails_STATUS -func (details *ProtectionStatusDetails_STATUS) AssignProperties_From_ProtectionStatusDetails_STATUS(source *v20231201s.ProtectionStatusDetails_STATUS) error { +func (details *ProtectionStatusDetails_STATUS) AssignProperties_From_ProtectionStatusDetails_STATUS(source *v20231101s.ProtectionStatusDetails_STATUS) error { // ErrorDetails if source.ErrorDetails != nil { @@ -3391,13 +3391,13 @@ func (details *ProtectionStatusDetails_STATUS) AssignProperties_From_ProtectionS } // AssignProperties_To_ProtectionStatusDetails_STATUS populates the provided destination ProtectionStatusDetails_STATUS from our ProtectionStatusDetails_STATUS -func (details *ProtectionStatusDetails_STATUS) AssignProperties_To_ProtectionStatusDetails_STATUS(destination *v20231201s.ProtectionStatusDetails_STATUS) error { +func (details *ProtectionStatusDetails_STATUS) AssignProperties_To_ProtectionStatusDetails_STATUS(destination *v20231101s.ProtectionStatusDetails_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // ErrorDetails if details.ErrorDetails != nil { - var errorDetail v20231201s.UserFacingError_STATUS + var errorDetail v20231101s.UserFacingError_STATUS err := details.ErrorDetails.AssignProperties_To_UserFacingError_STATUS(&errorDetail) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_UserFacingError_STATUS() to populate field ErrorDetails") @@ -3537,7 +3537,7 @@ func (error *UserFacingError_STATUS) PopulateFromARM(owner genruntime.ArbitraryO } // AssignProperties_From_UserFacingError_STATUS populates our UserFacingError_STATUS from the provided source UserFacingError_STATUS -func (error *UserFacingError_STATUS) AssignProperties_From_UserFacingError_STATUS(source *v20231201s.UserFacingError_STATUS) error { +func (error *UserFacingError_STATUS) AssignProperties_From_UserFacingError_STATUS(source *v20231101s.UserFacingError_STATUS) error { // Code error.Code = genruntime.ClonePointerToString(source.Code) @@ -3605,7 +3605,7 @@ func (error *UserFacingError_STATUS) AssignProperties_From_UserFacingError_STATU } // AssignProperties_To_UserFacingError_STATUS populates the provided destination UserFacingError_STATUS from our UserFacingError_STATUS -func (error *UserFacingError_STATUS) AssignProperties_To_UserFacingError_STATUS(destination *v20231201s.UserFacingError_STATUS) error { +func (error *UserFacingError_STATUS) AssignProperties_To_UserFacingError_STATUS(destination *v20231101s.UserFacingError_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -3614,11 +3614,11 @@ func (error *UserFacingError_STATUS) AssignProperties_To_UserFacingError_STATUS( // Details if error.Details != nil { - detailList := make([]v20231201s.UserFacingError_STATUS_Unrolled, len(error.Details)) + detailList := make([]v20231101s.UserFacingError_STATUS_Unrolled, len(error.Details)) for detailIndex, detailItem := range error.Details { // Shadow the loop variable to avoid aliasing detailItem := detailItem - var detail v20231201s.UserFacingError_STATUS_Unrolled + var detail v20231101s.UserFacingError_STATUS_Unrolled err := detailItem.AssignProperties_To_UserFacingError_STATUS_Unrolled(&detail) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_UserFacingError_STATUS_Unrolled() to populate field Details") @@ -3632,7 +3632,7 @@ func (error *UserFacingError_STATUS) AssignProperties_To_UserFacingError_STATUS( // InnerError if error.InnerError != nil { - var innerError v20231201s.InnerError_STATUS + var innerError v20231101s.InnerError_STATUS err := error.InnerError.AssignProperties_To_InnerError_STATUS(&innerError) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_InnerError_STATUS() to populate field InnerError") @@ -3735,7 +3735,7 @@ func (properties *BaseResourceProperties) PopulateFromARM(owner genruntime.Arbit } // AssignProperties_From_BaseResourceProperties populates our BaseResourceProperties from the provided source BaseResourceProperties -func (properties *BaseResourceProperties) AssignProperties_From_BaseResourceProperties(source *v20231201s.BaseResourceProperties) error { +func (properties *BaseResourceProperties) AssignProperties_From_BaseResourceProperties(source *v20231101s.BaseResourceProperties) error { // DefaultResourceProperties if source.DefaultResourceProperties != nil { @@ -3754,13 +3754,13 @@ func (properties *BaseResourceProperties) AssignProperties_From_BaseResourceProp } // AssignProperties_To_BaseResourceProperties populates the provided destination BaseResourceProperties from our BaseResourceProperties -func (properties *BaseResourceProperties) AssignProperties_To_BaseResourceProperties(destination *v20231201s.BaseResourceProperties) error { +func (properties *BaseResourceProperties) AssignProperties_To_BaseResourceProperties(destination *v20231101s.BaseResourceProperties) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // DefaultResourceProperties if properties.DefaultResourceProperties != nil { - var defaultResourceProperty v20231201s.DefaultResourceProperties + var defaultResourceProperty v20231101s.DefaultResourceProperties err := properties.DefaultResourceProperties.AssignProperties_To_DefaultResourceProperties(&defaultResourceProperty) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DefaultResourceProperties() to populate field DefaultResourceProperties") @@ -3835,7 +3835,7 @@ func (properties *BaseResourceProperties_STATUS) PopulateFromARM(owner genruntim } // AssignProperties_From_BaseResourceProperties_STATUS populates our BaseResourceProperties_STATUS from the provided source BaseResourceProperties_STATUS -func (properties *BaseResourceProperties_STATUS) AssignProperties_From_BaseResourceProperties_STATUS(source *v20231201s.BaseResourceProperties_STATUS) error { +func (properties *BaseResourceProperties_STATUS) AssignProperties_From_BaseResourceProperties_STATUS(source *v20231101s.BaseResourceProperties_STATUS) error { // DefaultResourceProperties if source.DefaultResourceProperties != nil { @@ -3854,13 +3854,13 @@ func (properties *BaseResourceProperties_STATUS) AssignProperties_From_BaseResou } // AssignProperties_To_BaseResourceProperties_STATUS populates the provided destination BaseResourceProperties_STATUS from our BaseResourceProperties_STATUS -func (properties *BaseResourceProperties_STATUS) AssignProperties_To_BaseResourceProperties_STATUS(destination *v20231201s.BaseResourceProperties_STATUS) error { +func (properties *BaseResourceProperties_STATUS) AssignProperties_To_BaseResourceProperties_STATUS(destination *v20231101s.BaseResourceProperties_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // DefaultResourceProperties if properties.DefaultResourceProperties != nil { - var defaultResourceProperty v20231201s.DefaultResourceProperties_STATUS + var defaultResourceProperty v20231101s.DefaultResourceProperties_STATUS err := properties.DefaultResourceProperties.AssignProperties_To_DefaultResourceProperties_STATUS(&defaultResourceProperty) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DefaultResourceProperties_STATUS() to populate field DefaultResourceProperties") @@ -3937,7 +3937,7 @@ func (error *InnerError_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerR } // AssignProperties_From_InnerError_STATUS populates our InnerError_STATUS from the provided source InnerError_STATUS -func (error *InnerError_STATUS) AssignProperties_From_InnerError_STATUS(source *v20231201s.InnerError_STATUS) error { +func (error *InnerError_STATUS) AssignProperties_From_InnerError_STATUS(source *v20231101s.InnerError_STATUS) error { // AdditionalInfo error.AdditionalInfo = genruntime.CloneMapOfStringToString(source.AdditionalInfo) @@ -3962,7 +3962,7 @@ func (error *InnerError_STATUS) AssignProperties_From_InnerError_STATUS(source * } // AssignProperties_To_InnerError_STATUS populates the provided destination InnerError_STATUS from our InnerError_STATUS -func (error *InnerError_STATUS) AssignProperties_To_InnerError_STATUS(destination *v20231201s.InnerError_STATUS) error { +func (error *InnerError_STATUS) AssignProperties_To_InnerError_STATUS(destination *v20231101s.InnerError_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -3974,7 +3974,7 @@ func (error *InnerError_STATUS) AssignProperties_To_InnerError_STATUS(destinatio // EmbeddedInnerError if error.EmbeddedInnerError != nil { - var embeddedInnerError v20231201s.InnerError_STATUS_Unrolled + var embeddedInnerError v20231101s.InnerError_STATUS_Unrolled err := error.EmbeddedInnerError.AssignProperties_To_InnerError_STATUS_Unrolled(&embeddedInnerError) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_InnerError_STATUS_Unrolled() to populate field EmbeddedInnerError") @@ -4070,7 +4070,7 @@ func (parameters *PolicyParameters) PopulateFromARM(owner genruntime.ArbitraryOw } // AssignProperties_From_PolicyParameters populates our PolicyParameters from the provided source PolicyParameters -func (parameters *PolicyParameters) AssignProperties_From_PolicyParameters(source *v20231201s.PolicyParameters) error { +func (parameters *PolicyParameters) AssignProperties_From_PolicyParameters(source *v20231101s.PolicyParameters) error { // BackupDatasourceParametersList if source.BackupDatasourceParametersList != nil { @@ -4113,17 +4113,17 @@ func (parameters *PolicyParameters) AssignProperties_From_PolicyParameters(sourc } // AssignProperties_To_PolicyParameters populates the provided destination PolicyParameters from our PolicyParameters -func (parameters *PolicyParameters) AssignProperties_To_PolicyParameters(destination *v20231201s.PolicyParameters) error { +func (parameters *PolicyParameters) AssignProperties_To_PolicyParameters(destination *v20231101s.PolicyParameters) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // BackupDatasourceParametersList if parameters.BackupDatasourceParametersList != nil { - backupDatasourceParametersList := make([]v20231201s.BackupDatasourceParameters, len(parameters.BackupDatasourceParametersList)) + backupDatasourceParametersList := make([]v20231101s.BackupDatasourceParameters, len(parameters.BackupDatasourceParametersList)) for backupDatasourceParametersListIndex, backupDatasourceParametersListItem := range parameters.BackupDatasourceParametersList { // Shadow the loop variable to avoid aliasing backupDatasourceParametersListItem := backupDatasourceParametersListItem - var backupDatasourceParametersListLocal v20231201s.BackupDatasourceParameters + var backupDatasourceParametersListLocal v20231101s.BackupDatasourceParameters err := backupDatasourceParametersListItem.AssignProperties_To_BackupDatasourceParameters(&backupDatasourceParametersListLocal) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupDatasourceParameters() to populate field BackupDatasourceParametersList") @@ -4137,11 +4137,11 @@ func (parameters *PolicyParameters) AssignProperties_To_PolicyParameters(destina // DataStoreParametersList if parameters.DataStoreParametersList != nil { - dataStoreParametersList := make([]v20231201s.DataStoreParameters, len(parameters.DataStoreParametersList)) + dataStoreParametersList := make([]v20231101s.DataStoreParameters, len(parameters.DataStoreParametersList)) for dataStoreParametersListIndex, dataStoreParametersListItem := range parameters.DataStoreParametersList { // Shadow the loop variable to avoid aliasing dataStoreParametersListItem := dataStoreParametersListItem - var dataStoreParametersListLocal v20231201s.DataStoreParameters + var dataStoreParametersListLocal v20231101s.DataStoreParameters err := dataStoreParametersListItem.AssignProperties_To_DataStoreParameters(&dataStoreParametersListLocal) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DataStoreParameters() to populate field DataStoreParametersList") @@ -4255,7 +4255,7 @@ func (parameters *PolicyParameters_STATUS) PopulateFromARM(owner genruntime.Arbi } // AssignProperties_From_PolicyParameters_STATUS populates our PolicyParameters_STATUS from the provided source PolicyParameters_STATUS -func (parameters *PolicyParameters_STATUS) AssignProperties_From_PolicyParameters_STATUS(source *v20231201s.PolicyParameters_STATUS) error { +func (parameters *PolicyParameters_STATUS) AssignProperties_From_PolicyParameters_STATUS(source *v20231101s.PolicyParameters_STATUS) error { // BackupDatasourceParametersList if source.BackupDatasourceParametersList != nil { @@ -4298,17 +4298,17 @@ func (parameters *PolicyParameters_STATUS) AssignProperties_From_PolicyParameter } // AssignProperties_To_PolicyParameters_STATUS populates the provided destination PolicyParameters_STATUS from our PolicyParameters_STATUS -func (parameters *PolicyParameters_STATUS) AssignProperties_To_PolicyParameters_STATUS(destination *v20231201s.PolicyParameters_STATUS) error { +func (parameters *PolicyParameters_STATUS) AssignProperties_To_PolicyParameters_STATUS(destination *v20231101s.PolicyParameters_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // BackupDatasourceParametersList if parameters.BackupDatasourceParametersList != nil { - backupDatasourceParametersList := make([]v20231201s.BackupDatasourceParameters_STATUS, len(parameters.BackupDatasourceParametersList)) + backupDatasourceParametersList := make([]v20231101s.BackupDatasourceParameters_STATUS, len(parameters.BackupDatasourceParametersList)) for backupDatasourceParametersListIndex, backupDatasourceParametersListItem := range parameters.BackupDatasourceParametersList { // Shadow the loop variable to avoid aliasing backupDatasourceParametersListItem := backupDatasourceParametersListItem - var backupDatasourceParametersListLocal v20231201s.BackupDatasourceParameters_STATUS + var backupDatasourceParametersListLocal v20231101s.BackupDatasourceParameters_STATUS err := backupDatasourceParametersListItem.AssignProperties_To_BackupDatasourceParameters_STATUS(&backupDatasourceParametersListLocal) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupDatasourceParameters_STATUS() to populate field BackupDatasourceParametersList") @@ -4322,11 +4322,11 @@ func (parameters *PolicyParameters_STATUS) AssignProperties_To_PolicyParameters_ // DataStoreParametersList if parameters.DataStoreParametersList != nil { - dataStoreParametersList := make([]v20231201s.DataStoreParameters_STATUS, len(parameters.DataStoreParametersList)) + dataStoreParametersList := make([]v20231101s.DataStoreParameters_STATUS, len(parameters.DataStoreParametersList)) for dataStoreParametersListIndex, dataStoreParametersListItem := range parameters.DataStoreParametersList { // Shadow the loop variable to avoid aliasing dataStoreParametersListItem := dataStoreParametersListItem - var dataStoreParametersListLocal v20231201s.DataStoreParameters_STATUS + var dataStoreParametersListLocal v20231101s.DataStoreParameters_STATUS err := dataStoreParametersListItem.AssignProperties_To_DataStoreParameters_STATUS(&dataStoreParametersListLocal) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DataStoreParameters_STATUS() to populate field DataStoreParametersList") @@ -4415,7 +4415,7 @@ func (credentials *SecretStoreBasedAuthCredentials) PopulateFromARM(owner genrun } // AssignProperties_From_SecretStoreBasedAuthCredentials populates our SecretStoreBasedAuthCredentials from the provided source SecretStoreBasedAuthCredentials -func (credentials *SecretStoreBasedAuthCredentials) AssignProperties_From_SecretStoreBasedAuthCredentials(source *v20231201s.SecretStoreBasedAuthCredentials) error { +func (credentials *SecretStoreBasedAuthCredentials) AssignProperties_From_SecretStoreBasedAuthCredentials(source *v20231101s.SecretStoreBasedAuthCredentials) error { // ObjectType if source.ObjectType != nil { @@ -4442,7 +4442,7 @@ func (credentials *SecretStoreBasedAuthCredentials) AssignProperties_From_Secret } // AssignProperties_To_SecretStoreBasedAuthCredentials populates the provided destination SecretStoreBasedAuthCredentials from our SecretStoreBasedAuthCredentials -func (credentials *SecretStoreBasedAuthCredentials) AssignProperties_To_SecretStoreBasedAuthCredentials(destination *v20231201s.SecretStoreBasedAuthCredentials) error { +func (credentials *SecretStoreBasedAuthCredentials) AssignProperties_To_SecretStoreBasedAuthCredentials(destination *v20231101s.SecretStoreBasedAuthCredentials) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -4456,7 +4456,7 @@ func (credentials *SecretStoreBasedAuthCredentials) AssignProperties_To_SecretSt // SecretStoreResource if credentials.SecretStoreResource != nil { - var secretStoreResource v20231201s.SecretStoreResource + var secretStoreResource v20231101s.SecretStoreResource err := credentials.SecretStoreResource.AssignProperties_To_SecretStoreResource(&secretStoreResource) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SecretStoreResource() to populate field SecretStoreResource") @@ -4545,7 +4545,7 @@ func (credentials *SecretStoreBasedAuthCredentials_STATUS) PopulateFromARM(owner } // AssignProperties_From_SecretStoreBasedAuthCredentials_STATUS populates our SecretStoreBasedAuthCredentials_STATUS from the provided source SecretStoreBasedAuthCredentials_STATUS -func (credentials *SecretStoreBasedAuthCredentials_STATUS) AssignProperties_From_SecretStoreBasedAuthCredentials_STATUS(source *v20231201s.SecretStoreBasedAuthCredentials_STATUS) error { +func (credentials *SecretStoreBasedAuthCredentials_STATUS) AssignProperties_From_SecretStoreBasedAuthCredentials_STATUS(source *v20231101s.SecretStoreBasedAuthCredentials_STATUS) error { // ObjectType if source.ObjectType != nil { @@ -4572,7 +4572,7 @@ func (credentials *SecretStoreBasedAuthCredentials_STATUS) AssignProperties_From } // AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS populates the provided destination SecretStoreBasedAuthCredentials_STATUS from our SecretStoreBasedAuthCredentials_STATUS -func (credentials *SecretStoreBasedAuthCredentials_STATUS) AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS(destination *v20231201s.SecretStoreBasedAuthCredentials_STATUS) error { +func (credentials *SecretStoreBasedAuthCredentials_STATUS) AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS(destination *v20231101s.SecretStoreBasedAuthCredentials_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -4586,7 +4586,7 @@ func (credentials *SecretStoreBasedAuthCredentials_STATUS) AssignProperties_To_S // SecretStoreResource if credentials.SecretStoreResource != nil { - var secretStoreResource v20231201s.SecretStoreResource_STATUS + var secretStoreResource v20231101s.SecretStoreResource_STATUS err := credentials.SecretStoreResource.AssignProperties_To_SecretStoreResource_STATUS(&secretStoreResource) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SecretStoreResource_STATUS() to populate field SecretStoreResource") @@ -4704,7 +4704,7 @@ func (unrolled *UserFacingError_STATUS_Unrolled) PopulateFromARM(owner genruntim } // AssignProperties_From_UserFacingError_STATUS_Unrolled populates our UserFacingError_STATUS_Unrolled from the provided source UserFacingError_STATUS_Unrolled -func (unrolled *UserFacingError_STATUS_Unrolled) AssignProperties_From_UserFacingError_STATUS_Unrolled(source *v20231201s.UserFacingError_STATUS_Unrolled) error { +func (unrolled *UserFacingError_STATUS_Unrolled) AssignProperties_From_UserFacingError_STATUS_Unrolled(source *v20231101s.UserFacingError_STATUS_Unrolled) error { // Code unrolled.Code = genruntime.ClonePointerToString(source.Code) @@ -4754,7 +4754,7 @@ func (unrolled *UserFacingError_STATUS_Unrolled) AssignProperties_From_UserFacin } // AssignProperties_To_UserFacingError_STATUS_Unrolled populates the provided destination UserFacingError_STATUS_Unrolled from our UserFacingError_STATUS_Unrolled -func (unrolled *UserFacingError_STATUS_Unrolled) AssignProperties_To_UserFacingError_STATUS_Unrolled(destination *v20231201s.UserFacingError_STATUS_Unrolled) error { +func (unrolled *UserFacingError_STATUS_Unrolled) AssignProperties_To_UserFacingError_STATUS_Unrolled(destination *v20231101s.UserFacingError_STATUS_Unrolled) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -4763,7 +4763,7 @@ func (unrolled *UserFacingError_STATUS_Unrolled) AssignProperties_To_UserFacingE // InnerError if unrolled.InnerError != nil { - var innerError v20231201s.InnerError_STATUS + var innerError v20231101s.InnerError_STATUS err := unrolled.InnerError.AssignProperties_To_InnerError_STATUS(&innerError) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_InnerError_STATUS() to populate field InnerError") @@ -4890,7 +4890,7 @@ func (parameters *BackupDatasourceParameters) PopulateFromARM(owner genruntime.A } // AssignProperties_From_BackupDatasourceParameters populates our BackupDatasourceParameters from the provided source BackupDatasourceParameters -func (parameters *BackupDatasourceParameters) AssignProperties_From_BackupDatasourceParameters(source *v20231201s.BackupDatasourceParameters) error { +func (parameters *BackupDatasourceParameters) AssignProperties_From_BackupDatasourceParameters(source *v20231101s.BackupDatasourceParameters) error { // Blob if source.Blob != nil { @@ -4921,13 +4921,13 @@ func (parameters *BackupDatasourceParameters) AssignProperties_From_BackupDataso } // AssignProperties_To_BackupDatasourceParameters populates the provided destination BackupDatasourceParameters from our BackupDatasourceParameters -func (parameters *BackupDatasourceParameters) AssignProperties_To_BackupDatasourceParameters(destination *v20231201s.BackupDatasourceParameters) error { +func (parameters *BackupDatasourceParameters) AssignProperties_To_BackupDatasourceParameters(destination *v20231101s.BackupDatasourceParameters) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // Blob if parameters.Blob != nil { - var blob v20231201s.BlobBackupDatasourceParameters + var blob v20231101s.BlobBackupDatasourceParameters err := parameters.Blob.AssignProperties_To_BlobBackupDatasourceParameters(&blob) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BlobBackupDatasourceParameters() to populate field Blob") @@ -4939,7 +4939,7 @@ func (parameters *BackupDatasourceParameters) AssignProperties_To_BackupDatasour // KubernetesCluster if parameters.KubernetesCluster != nil { - var kubernetesCluster v20231201s.KubernetesClusterBackupDatasourceParameters + var kubernetesCluster v20231101s.KubernetesClusterBackupDatasourceParameters err := parameters.KubernetesCluster.AssignProperties_To_KubernetesClusterBackupDatasourceParameters(&kubernetesCluster) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_KubernetesClusterBackupDatasourceParameters() to populate field KubernetesCluster") @@ -5040,7 +5040,7 @@ func (parameters *BackupDatasourceParameters_STATUS) PopulateFromARM(owner genru } // AssignProperties_From_BackupDatasourceParameters_STATUS populates our BackupDatasourceParameters_STATUS from the provided source BackupDatasourceParameters_STATUS -func (parameters *BackupDatasourceParameters_STATUS) AssignProperties_From_BackupDatasourceParameters_STATUS(source *v20231201s.BackupDatasourceParameters_STATUS) error { +func (parameters *BackupDatasourceParameters_STATUS) AssignProperties_From_BackupDatasourceParameters_STATUS(source *v20231101s.BackupDatasourceParameters_STATUS) error { // Blob if source.Blob != nil { @@ -5071,13 +5071,13 @@ func (parameters *BackupDatasourceParameters_STATUS) AssignProperties_From_Backu } // AssignProperties_To_BackupDatasourceParameters_STATUS populates the provided destination BackupDatasourceParameters_STATUS from our BackupDatasourceParameters_STATUS -func (parameters *BackupDatasourceParameters_STATUS) AssignProperties_To_BackupDatasourceParameters_STATUS(destination *v20231201s.BackupDatasourceParameters_STATUS) error { +func (parameters *BackupDatasourceParameters_STATUS) AssignProperties_To_BackupDatasourceParameters_STATUS(destination *v20231101s.BackupDatasourceParameters_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // Blob if parameters.Blob != nil { - var blob v20231201s.BlobBackupDatasourceParameters_STATUS + var blob v20231101s.BlobBackupDatasourceParameters_STATUS err := parameters.Blob.AssignProperties_To_BlobBackupDatasourceParameters_STATUS(&blob) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BlobBackupDatasourceParameters_STATUS() to populate field Blob") @@ -5089,7 +5089,7 @@ func (parameters *BackupDatasourceParameters_STATUS) AssignProperties_To_BackupD // KubernetesCluster if parameters.KubernetesCluster != nil { - var kubernetesCluster v20231201s.KubernetesClusterBackupDatasourceParameters_STATUS + var kubernetesCluster v20231101s.KubernetesClusterBackupDatasourceParameters_STATUS err := parameters.KubernetesCluster.AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS(&kubernetesCluster) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS() to populate field KubernetesCluster") @@ -5164,7 +5164,7 @@ func (parameters *DataStoreParameters) PopulateFromARM(owner genruntime.Arbitrar } // AssignProperties_From_DataStoreParameters populates our DataStoreParameters from the provided source DataStoreParameters -func (parameters *DataStoreParameters) AssignProperties_From_DataStoreParameters(source *v20231201s.DataStoreParameters) error { +func (parameters *DataStoreParameters) AssignProperties_From_DataStoreParameters(source *v20231101s.DataStoreParameters) error { // AzureOperationalStoreParameters if source.AzureOperationalStoreParameters != nil { @@ -5183,13 +5183,13 @@ func (parameters *DataStoreParameters) AssignProperties_From_DataStoreParameters } // AssignProperties_To_DataStoreParameters populates the provided destination DataStoreParameters from our DataStoreParameters -func (parameters *DataStoreParameters) AssignProperties_To_DataStoreParameters(destination *v20231201s.DataStoreParameters) error { +func (parameters *DataStoreParameters) AssignProperties_To_DataStoreParameters(destination *v20231101s.DataStoreParameters) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // AzureOperationalStoreParameters if parameters.AzureOperationalStoreParameters != nil { - var azureOperationalStoreParameter v20231201s.AzureOperationalStoreParameters + var azureOperationalStoreParameter v20231101s.AzureOperationalStoreParameters err := parameters.AzureOperationalStoreParameters.AssignProperties_To_AzureOperationalStoreParameters(&azureOperationalStoreParameter) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureOperationalStoreParameters() to populate field AzureOperationalStoreParameters") @@ -5264,7 +5264,7 @@ func (parameters *DataStoreParameters_STATUS) PopulateFromARM(owner genruntime.A } // AssignProperties_From_DataStoreParameters_STATUS populates our DataStoreParameters_STATUS from the provided source DataStoreParameters_STATUS -func (parameters *DataStoreParameters_STATUS) AssignProperties_From_DataStoreParameters_STATUS(source *v20231201s.DataStoreParameters_STATUS) error { +func (parameters *DataStoreParameters_STATUS) AssignProperties_From_DataStoreParameters_STATUS(source *v20231101s.DataStoreParameters_STATUS) error { // AzureOperationalStoreParameters if source.AzureOperationalStoreParameters != nil { @@ -5283,13 +5283,13 @@ func (parameters *DataStoreParameters_STATUS) AssignProperties_From_DataStorePar } // AssignProperties_To_DataStoreParameters_STATUS populates the provided destination DataStoreParameters_STATUS from our DataStoreParameters_STATUS -func (parameters *DataStoreParameters_STATUS) AssignProperties_To_DataStoreParameters_STATUS(destination *v20231201s.DataStoreParameters_STATUS) error { +func (parameters *DataStoreParameters_STATUS) AssignProperties_To_DataStoreParameters_STATUS(destination *v20231101s.DataStoreParameters_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // AzureOperationalStoreParameters if parameters.AzureOperationalStoreParameters != nil { - var azureOperationalStoreParameter v20231201s.AzureOperationalStoreParameters_STATUS + var azureOperationalStoreParameter v20231101s.AzureOperationalStoreParameters_STATUS err := parameters.AzureOperationalStoreParameters.AssignProperties_To_AzureOperationalStoreParameters_STATUS(&azureOperationalStoreParameter) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureOperationalStoreParameters_STATUS() to populate field AzureOperationalStoreParameters") @@ -5352,7 +5352,7 @@ func (properties *DefaultResourceProperties) PopulateFromARM(owner genruntime.Ar } // AssignProperties_From_DefaultResourceProperties populates our DefaultResourceProperties from the provided source DefaultResourceProperties -func (properties *DefaultResourceProperties) AssignProperties_From_DefaultResourceProperties(source *v20231201s.DefaultResourceProperties) error { +func (properties *DefaultResourceProperties) AssignProperties_From_DefaultResourceProperties(source *v20231101s.DefaultResourceProperties) error { // ObjectType if source.ObjectType != nil { @@ -5367,7 +5367,7 @@ func (properties *DefaultResourceProperties) AssignProperties_From_DefaultResour } // AssignProperties_To_DefaultResourceProperties populates the provided destination DefaultResourceProperties from our DefaultResourceProperties -func (properties *DefaultResourceProperties) AssignProperties_To_DefaultResourceProperties(destination *v20231201s.DefaultResourceProperties) error { +func (properties *DefaultResourceProperties) AssignProperties_To_DefaultResourceProperties(destination *v20231101s.DefaultResourceProperties) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -5432,7 +5432,7 @@ func (properties *DefaultResourceProperties_STATUS) PopulateFromARM(owner genrun } // AssignProperties_From_DefaultResourceProperties_STATUS populates our DefaultResourceProperties_STATUS from the provided source DefaultResourceProperties_STATUS -func (properties *DefaultResourceProperties_STATUS) AssignProperties_From_DefaultResourceProperties_STATUS(source *v20231201s.DefaultResourceProperties_STATUS) error { +func (properties *DefaultResourceProperties_STATUS) AssignProperties_From_DefaultResourceProperties_STATUS(source *v20231101s.DefaultResourceProperties_STATUS) error { // ObjectType if source.ObjectType != nil { @@ -5447,7 +5447,7 @@ func (properties *DefaultResourceProperties_STATUS) AssignProperties_From_Defaul } // AssignProperties_To_DefaultResourceProperties_STATUS populates the provided destination DefaultResourceProperties_STATUS from our DefaultResourceProperties_STATUS -func (properties *DefaultResourceProperties_STATUS) AssignProperties_To_DefaultResourceProperties_STATUS(destination *v20231201s.DefaultResourceProperties_STATUS) error { +func (properties *DefaultResourceProperties_STATUS) AssignProperties_To_DefaultResourceProperties_STATUS(destination *v20231101s.DefaultResourceProperties_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -5511,7 +5511,7 @@ func (unrolled *InnerError_STATUS_Unrolled) PopulateFromARM(owner genruntime.Arb } // AssignProperties_From_InnerError_STATUS_Unrolled populates our InnerError_STATUS_Unrolled from the provided source InnerError_STATUS_Unrolled -func (unrolled *InnerError_STATUS_Unrolled) AssignProperties_From_InnerError_STATUS_Unrolled(source *v20231201s.InnerError_STATUS_Unrolled) error { +func (unrolled *InnerError_STATUS_Unrolled) AssignProperties_From_InnerError_STATUS_Unrolled(source *v20231101s.InnerError_STATUS_Unrolled) error { // AdditionalInfo unrolled.AdditionalInfo = genruntime.CloneMapOfStringToString(source.AdditionalInfo) @@ -5524,7 +5524,7 @@ func (unrolled *InnerError_STATUS_Unrolled) AssignProperties_From_InnerError_STA } // AssignProperties_To_InnerError_STATUS_Unrolled populates the provided destination InnerError_STATUS_Unrolled from our InnerError_STATUS_Unrolled -func (unrolled *InnerError_STATUS_Unrolled) AssignProperties_To_InnerError_STATUS_Unrolled(destination *v20231201s.InnerError_STATUS_Unrolled) error { +func (unrolled *InnerError_STATUS_Unrolled) AssignProperties_To_InnerError_STATUS_Unrolled(destination *v20231101s.InnerError_STATUS_Unrolled) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -5622,7 +5622,7 @@ func (resource *SecretStoreResource) PopulateFromARM(owner genruntime.ArbitraryO } // AssignProperties_From_SecretStoreResource populates our SecretStoreResource from the provided source SecretStoreResource -func (resource *SecretStoreResource) AssignProperties_From_SecretStoreResource(source *v20231201s.SecretStoreResource) error { +func (resource *SecretStoreResource) AssignProperties_From_SecretStoreResource(source *v20231101s.SecretStoreResource) error { // SecretStoreType if source.SecretStoreType != nil { @@ -5643,7 +5643,7 @@ func (resource *SecretStoreResource) AssignProperties_From_SecretStoreResource(s } // AssignProperties_To_SecretStoreResource populates the provided destination SecretStoreResource from our SecretStoreResource -func (resource *SecretStoreResource) AssignProperties_To_SecretStoreResource(destination *v20231201s.SecretStoreResource) error { +func (resource *SecretStoreResource) AssignProperties_To_SecretStoreResource(destination *v20231101s.SecretStoreResource) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -5742,7 +5742,7 @@ func (resource *SecretStoreResource_STATUS) PopulateFromARM(owner genruntime.Arb } // AssignProperties_From_SecretStoreResource_STATUS populates our SecretStoreResource_STATUS from the provided source SecretStoreResource_STATUS -func (resource *SecretStoreResource_STATUS) AssignProperties_From_SecretStoreResource_STATUS(source *v20231201s.SecretStoreResource_STATUS) error { +func (resource *SecretStoreResource_STATUS) AssignProperties_From_SecretStoreResource_STATUS(source *v20231101s.SecretStoreResource_STATUS) error { // SecretStoreType if source.SecretStoreType != nil { @@ -5763,7 +5763,7 @@ func (resource *SecretStoreResource_STATUS) AssignProperties_From_SecretStoreRes } // AssignProperties_To_SecretStoreResource_STATUS populates the provided destination SecretStoreResource_STATUS from our SecretStoreResource_STATUS -func (resource *SecretStoreResource_STATUS) AssignProperties_To_SecretStoreResource_STATUS(destination *v20231201s.SecretStoreResource_STATUS) error { +func (resource *SecretStoreResource_STATUS) AssignProperties_To_SecretStoreResource_STATUS(destination *v20231101s.SecretStoreResource_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -5865,7 +5865,7 @@ func (parameters *AzureOperationalStoreParameters) PopulateFromARM(owner genrunt } // AssignProperties_From_AzureOperationalStoreParameters populates our AzureOperationalStoreParameters from the provided source AzureOperationalStoreParameters -func (parameters *AzureOperationalStoreParameters) AssignProperties_From_AzureOperationalStoreParameters(source *v20231201s.AzureOperationalStoreParameters) error { +func (parameters *AzureOperationalStoreParameters) AssignProperties_From_AzureOperationalStoreParameters(source *v20231101s.AzureOperationalStoreParameters) error { // DataStoreType if source.DataStoreType != nil { @@ -5891,7 +5891,7 @@ func (parameters *AzureOperationalStoreParameters) AssignProperties_From_AzureOp } // AssignProperties_To_AzureOperationalStoreParameters populates the provided destination AzureOperationalStoreParameters from our AzureOperationalStoreParameters -func (parameters *AzureOperationalStoreParameters) AssignProperties_To_AzureOperationalStoreParameters(destination *v20231201s.AzureOperationalStoreParameters) error { +func (parameters *AzureOperationalStoreParameters) AssignProperties_To_AzureOperationalStoreParameters(destination *v20231101s.AzureOperationalStoreParameters) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -5996,7 +5996,7 @@ func (parameters *AzureOperationalStoreParameters_STATUS) PopulateFromARM(owner } // AssignProperties_From_AzureOperationalStoreParameters_STATUS populates our AzureOperationalStoreParameters_STATUS from the provided source AzureOperationalStoreParameters_STATUS -func (parameters *AzureOperationalStoreParameters_STATUS) AssignProperties_From_AzureOperationalStoreParameters_STATUS(source *v20231201s.AzureOperationalStoreParameters_STATUS) error { +func (parameters *AzureOperationalStoreParameters_STATUS) AssignProperties_From_AzureOperationalStoreParameters_STATUS(source *v20231101s.AzureOperationalStoreParameters_STATUS) error { // DataStoreType if source.DataStoreType != nil { @@ -6022,7 +6022,7 @@ func (parameters *AzureOperationalStoreParameters_STATUS) AssignProperties_From_ } // AssignProperties_To_AzureOperationalStoreParameters_STATUS populates the provided destination AzureOperationalStoreParameters_STATUS from our AzureOperationalStoreParameters_STATUS -func (parameters *AzureOperationalStoreParameters_STATUS) AssignProperties_To_AzureOperationalStoreParameters_STATUS(destination *v20231201s.AzureOperationalStoreParameters_STATUS) error { +func (parameters *AzureOperationalStoreParameters_STATUS) AssignProperties_To_AzureOperationalStoreParameters_STATUS(destination *v20231101s.AzureOperationalStoreParameters_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -6112,7 +6112,7 @@ func (parameters *BlobBackupDatasourceParameters) PopulateFromARM(owner genrunti } // AssignProperties_From_BlobBackupDatasourceParameters populates our BlobBackupDatasourceParameters from the provided source BlobBackupDatasourceParameters -func (parameters *BlobBackupDatasourceParameters) AssignProperties_From_BlobBackupDatasourceParameters(source *v20231201s.BlobBackupDatasourceParameters) error { +func (parameters *BlobBackupDatasourceParameters) AssignProperties_From_BlobBackupDatasourceParameters(source *v20231101s.BlobBackupDatasourceParameters) error { // ContainersList parameters.ContainersList = genruntime.CloneSliceOfString(source.ContainersList) @@ -6130,7 +6130,7 @@ func (parameters *BlobBackupDatasourceParameters) AssignProperties_From_BlobBack } // AssignProperties_To_BlobBackupDatasourceParameters populates the provided destination BlobBackupDatasourceParameters from our BlobBackupDatasourceParameters -func (parameters *BlobBackupDatasourceParameters) AssignProperties_To_BlobBackupDatasourceParameters(destination *v20231201s.BlobBackupDatasourceParameters) error { +func (parameters *BlobBackupDatasourceParameters) AssignProperties_To_BlobBackupDatasourceParameters(destination *v20231101s.BlobBackupDatasourceParameters) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -6209,7 +6209,7 @@ func (parameters *BlobBackupDatasourceParameters_STATUS) PopulateFromARM(owner g } // AssignProperties_From_BlobBackupDatasourceParameters_STATUS populates our BlobBackupDatasourceParameters_STATUS from the provided source BlobBackupDatasourceParameters_STATUS -func (parameters *BlobBackupDatasourceParameters_STATUS) AssignProperties_From_BlobBackupDatasourceParameters_STATUS(source *v20231201s.BlobBackupDatasourceParameters_STATUS) error { +func (parameters *BlobBackupDatasourceParameters_STATUS) AssignProperties_From_BlobBackupDatasourceParameters_STATUS(source *v20231101s.BlobBackupDatasourceParameters_STATUS) error { // ContainersList parameters.ContainersList = genruntime.CloneSliceOfString(source.ContainersList) @@ -6227,7 +6227,7 @@ func (parameters *BlobBackupDatasourceParameters_STATUS) AssignProperties_From_B } // AssignProperties_To_BlobBackupDatasourceParameters_STATUS populates the provided destination BlobBackupDatasourceParameters_STATUS from our BlobBackupDatasourceParameters_STATUS -func (parameters *BlobBackupDatasourceParameters_STATUS) AssignProperties_To_BlobBackupDatasourceParameters_STATUS(destination *v20231201s.BlobBackupDatasourceParameters_STATUS) error { +func (parameters *BlobBackupDatasourceParameters_STATUS) AssignProperties_To_BlobBackupDatasourceParameters_STATUS(destination *v20231101s.BlobBackupDatasourceParameters_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -6422,7 +6422,7 @@ func (parameters *KubernetesClusterBackupDatasourceParameters) PopulateFromARM(o } // AssignProperties_From_KubernetesClusterBackupDatasourceParameters populates our KubernetesClusterBackupDatasourceParameters from the provided source KubernetesClusterBackupDatasourceParameters -func (parameters *KubernetesClusterBackupDatasourceParameters) AssignProperties_From_KubernetesClusterBackupDatasourceParameters(source *v20231201s.KubernetesClusterBackupDatasourceParameters) error { +func (parameters *KubernetesClusterBackupDatasourceParameters) AssignProperties_From_KubernetesClusterBackupDatasourceParameters(source *v20231101s.KubernetesClusterBackupDatasourceParameters) error { // BackupHookReferences if source.BackupHookReferences != nil { @@ -6486,17 +6486,17 @@ func (parameters *KubernetesClusterBackupDatasourceParameters) AssignProperties_ } // AssignProperties_To_KubernetesClusterBackupDatasourceParameters populates the provided destination KubernetesClusterBackupDatasourceParameters from our KubernetesClusterBackupDatasourceParameters -func (parameters *KubernetesClusterBackupDatasourceParameters) AssignProperties_To_KubernetesClusterBackupDatasourceParameters(destination *v20231201s.KubernetesClusterBackupDatasourceParameters) error { +func (parameters *KubernetesClusterBackupDatasourceParameters) AssignProperties_To_KubernetesClusterBackupDatasourceParameters(destination *v20231101s.KubernetesClusterBackupDatasourceParameters) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // BackupHookReferences if parameters.BackupHookReferences != nil { - backupHookReferenceList := make([]v20231201s.NamespacedNameResource, len(parameters.BackupHookReferences)) + backupHookReferenceList := make([]v20231101s.NamespacedNameResource, len(parameters.BackupHookReferences)) for backupHookReferenceIndex, backupHookReferenceItem := range parameters.BackupHookReferences { // Shadow the loop variable to avoid aliasing backupHookReferenceItem := backupHookReferenceItem - var backupHookReference v20231201s.NamespacedNameResource + var backupHookReference v20231101s.NamespacedNameResource err := backupHookReferenceItem.AssignProperties_To_NamespacedNameResource(&backupHookReference) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_NamespacedNameResource() to populate field BackupHookReferences") @@ -6728,7 +6728,7 @@ func (parameters *KubernetesClusterBackupDatasourceParameters_STATUS) PopulateFr } // AssignProperties_From_KubernetesClusterBackupDatasourceParameters_STATUS populates our KubernetesClusterBackupDatasourceParameters_STATUS from the provided source KubernetesClusterBackupDatasourceParameters_STATUS -func (parameters *KubernetesClusterBackupDatasourceParameters_STATUS) AssignProperties_From_KubernetesClusterBackupDatasourceParameters_STATUS(source *v20231201s.KubernetesClusterBackupDatasourceParameters_STATUS) error { +func (parameters *KubernetesClusterBackupDatasourceParameters_STATUS) AssignProperties_From_KubernetesClusterBackupDatasourceParameters_STATUS(source *v20231101s.KubernetesClusterBackupDatasourceParameters_STATUS) error { // BackupHookReferences if source.BackupHookReferences != nil { @@ -6792,17 +6792,17 @@ func (parameters *KubernetesClusterBackupDatasourceParameters_STATUS) AssignProp } // AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS populates the provided destination KubernetesClusterBackupDatasourceParameters_STATUS from our KubernetesClusterBackupDatasourceParameters_STATUS -func (parameters *KubernetesClusterBackupDatasourceParameters_STATUS) AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS(destination *v20231201s.KubernetesClusterBackupDatasourceParameters_STATUS) error { +func (parameters *KubernetesClusterBackupDatasourceParameters_STATUS) AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS(destination *v20231101s.KubernetesClusterBackupDatasourceParameters_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // BackupHookReferences if parameters.BackupHookReferences != nil { - backupHookReferenceList := make([]v20231201s.NamespacedNameResource_STATUS, len(parameters.BackupHookReferences)) + backupHookReferenceList := make([]v20231101s.NamespacedNameResource_STATUS, len(parameters.BackupHookReferences)) for backupHookReferenceIndex, backupHookReferenceItem := range parameters.BackupHookReferences { // Shadow the loop variable to avoid aliasing backupHookReferenceItem := backupHookReferenceItem - var backupHookReference v20231201s.NamespacedNameResource_STATUS + var backupHookReference v20231101s.NamespacedNameResource_STATUS err := backupHookReferenceItem.AssignProperties_To_NamespacedNameResource_STATUS(&backupHookReference) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_NamespacedNameResource_STATUS() to populate field BackupHookReferences") @@ -6925,7 +6925,7 @@ func (resource *NamespacedNameResource) PopulateFromARM(owner genruntime.Arbitra } // AssignProperties_From_NamespacedNameResource populates our NamespacedNameResource from the provided source NamespacedNameResource -func (resource *NamespacedNameResource) AssignProperties_From_NamespacedNameResource(source *v20231201s.NamespacedNameResource) error { +func (resource *NamespacedNameResource) AssignProperties_From_NamespacedNameResource(source *v20231101s.NamespacedNameResource) error { // Name resource.Name = genruntime.ClonePointerToString(source.Name) @@ -6938,7 +6938,7 @@ func (resource *NamespacedNameResource) AssignProperties_From_NamespacedNameReso } // AssignProperties_To_NamespacedNameResource populates the provided destination NamespacedNameResource from our NamespacedNameResource -func (resource *NamespacedNameResource) AssignProperties_To_NamespacedNameResource(destination *v20231201s.NamespacedNameResource) error { +func (resource *NamespacedNameResource) AssignProperties_To_NamespacedNameResource(destination *v20231101s.NamespacedNameResource) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -7012,7 +7012,7 @@ func (resource *NamespacedNameResource_STATUS) PopulateFromARM(owner genruntime. } // AssignProperties_From_NamespacedNameResource_STATUS populates our NamespacedNameResource_STATUS from the provided source NamespacedNameResource_STATUS -func (resource *NamespacedNameResource_STATUS) AssignProperties_From_NamespacedNameResource_STATUS(source *v20231201s.NamespacedNameResource_STATUS) error { +func (resource *NamespacedNameResource_STATUS) AssignProperties_From_NamespacedNameResource_STATUS(source *v20231101s.NamespacedNameResource_STATUS) error { // Name resource.Name = genruntime.ClonePointerToString(source.Name) @@ -7025,7 +7025,7 @@ func (resource *NamespacedNameResource_STATUS) AssignProperties_From_NamespacedN } // AssignProperties_To_NamespacedNameResource_STATUS populates the provided destination NamespacedNameResource_STATUS from our NamespacedNameResource_STATUS -func (resource *NamespacedNameResource_STATUS) AssignProperties_To_NamespacedNameResource_STATUS(destination *v20231201s.NamespacedNameResource_STATUS) error { +func (resource *NamespacedNameResource_STATUS) AssignProperties_To_NamespacedNameResource_STATUS(destination *v20231101s.NamespacedNameResource_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() diff --git a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_instance_types_gen_test.go b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_types_gen_test.go similarity index 98% rename from v2/api/dataprotection/v1api20231201/backup_vaults_backup_instance_types_gen_test.go rename to v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_types_gen_test.go index cf5872fe0cd..64809c9b0a2 100644 --- a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_instance_types_gen_test.go +++ b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_instance_types_gen_test.go @@ -1,11 +1,11 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 import ( "encoding/json" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" + v20231101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/kr/pretty" @@ -36,7 +36,7 @@ func RunResourceConversionTestForBackupVaultsBackupInstance(subject BackupVaults copied := subject.DeepCopy() // Convert to our hub version - var hub v20231201s.BackupVaultsBackupInstance + var hub v20231101s.BackupVaultsBackupInstance err := copied.ConvertTo(&hub) if err != nil { return err.Error() @@ -78,7 +78,7 @@ func RunPropertyAssignmentTestForBackupVaultsBackupInstance(subject BackupVaults copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaultsBackupInstance + var other v20231101s.BackupVaultsBackupInstance err := copied.AssignProperties_To_BackupVaultsBackupInstance(&other) if err != nil { return err.Error() @@ -182,7 +182,7 @@ func RunPropertyAssignmentTestForBackupVaults_BackupInstance_Spec(subject Backup copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaults_BackupInstance_Spec + var other v20231101s.BackupVaults_BackupInstance_Spec err := copied.AssignProperties_To_BackupVaults_BackupInstance_Spec(&other) if err != nil { return err.Error() @@ -300,7 +300,7 @@ func RunPropertyAssignmentTestForBackupVaults_BackupInstance_STATUS(subject Back copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaults_BackupInstance_STATUS + var other v20231101s.BackupVaults_BackupInstance_STATUS err := copied.AssignProperties_To_BackupVaults_BackupInstance_STATUS(&other) if err != nil { return err.Error() @@ -421,7 +421,7 @@ func RunPropertyAssignmentTestForBackupInstance(subject BackupInstance) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupInstance + var other v20231101s.BackupInstance err := copied.AssignProperties_To_BackupInstance(&other) if err != nil { return err.Error() @@ -543,7 +543,7 @@ func RunPropertyAssignmentTestForBackupInstance_STATUS(subject BackupInstance_ST copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupInstance_STATUS + var other v20231101s.BackupInstance_STATUS err := copied.AssignProperties_To_BackupInstance_STATUS(&other) if err != nil { return err.Error() @@ -682,7 +682,7 @@ func RunPropertyAssignmentTestForAuthCredentials(subject AuthCredentials) string copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AuthCredentials + var other v20231101s.AuthCredentials err := copied.AssignProperties_To_AuthCredentials(&other) if err != nil { return err.Error() @@ -792,7 +792,7 @@ func RunPropertyAssignmentTestForAuthCredentials_STATUS(subject AuthCredentials_ copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AuthCredentials_STATUS + var other v20231101s.AuthCredentials_STATUS err := copied.AssignProperties_To_AuthCredentials_STATUS(&other) if err != nil { return err.Error() @@ -903,7 +903,7 @@ func RunPropertyAssignmentTestForDatasource(subject Datasource) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.Datasource + var other v20231101s.Datasource err := copied.AssignProperties_To_Datasource(&other) if err != nil { return err.Error() @@ -1024,7 +1024,7 @@ func RunPropertyAssignmentTestForDatasource_STATUS(subject Datasource_STATUS) st copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.Datasource_STATUS + var other v20231101s.Datasource_STATUS err := copied.AssignProperties_To_Datasource_STATUS(&other) if err != nil { return err.Error() @@ -1146,7 +1146,7 @@ func RunPropertyAssignmentTestForDatasourceSet(subject DatasourceSet) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DatasourceSet + var other v20231101s.DatasourceSet err := copied.AssignProperties_To_DatasourceSet(&other) if err != nil { return err.Error() @@ -1267,7 +1267,7 @@ func RunPropertyAssignmentTestForDatasourceSet_STATUS(subject DatasourceSet_STAT copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DatasourceSet_STATUS + var other v20231101s.DatasourceSet_STATUS err := copied.AssignProperties_To_DatasourceSet_STATUS(&other) if err != nil { return err.Error() @@ -1390,7 +1390,7 @@ func RunPropertyAssignmentTestForIdentityDetails(subject IdentityDetails) string copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.IdentityDetails + var other v20231101s.IdentityDetails err := copied.AssignProperties_To_IdentityDetails(&other) if err != nil { return err.Error() @@ -1493,7 +1493,7 @@ func RunPropertyAssignmentTestForIdentityDetails_STATUS(subject IdentityDetails_ copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.IdentityDetails_STATUS + var other v20231101s.IdentityDetails_STATUS err := copied.AssignProperties_To_IdentityDetails_STATUS(&other) if err != nil { return err.Error() @@ -1597,7 +1597,7 @@ func RunPropertyAssignmentTestForPolicyInfo(subject PolicyInfo) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.PolicyInfo + var other v20231101s.PolicyInfo err := copied.AssignProperties_To_PolicyInfo(&other) if err != nil { return err.Error() @@ -1699,7 +1699,7 @@ func RunPropertyAssignmentTestForPolicyInfo_STATUS(subject PolicyInfo_STATUS) st copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.PolicyInfo_STATUS + var other v20231101s.PolicyInfo_STATUS err := copied.AssignProperties_To_PolicyInfo_STATUS(&other) if err != nil { return err.Error() @@ -1816,7 +1816,7 @@ func RunPropertyAssignmentTestForProtectionStatusDetails_STATUS(subject Protecti copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ProtectionStatusDetails_STATUS + var other v20231101s.ProtectionStatusDetails_STATUS err := copied.AssignProperties_To_ProtectionStatusDetails_STATUS(&other) if err != nil { return err.Error() @@ -1939,7 +1939,7 @@ func RunPropertyAssignmentTestForUserFacingError_STATUS(subject UserFacingError_ copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.UserFacingError_STATUS + var other v20231101s.UserFacingError_STATUS err := copied.AssignProperties_To_UserFacingError_STATUS(&other) if err != nil { return err.Error() @@ -2063,7 +2063,7 @@ func RunPropertyAssignmentTestForBaseResourceProperties(subject BaseResourceProp copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BaseResourceProperties + var other v20231101s.BaseResourceProperties err := copied.AssignProperties_To_BaseResourceProperties(&other) if err != nil { return err.Error() @@ -2174,7 +2174,7 @@ func RunPropertyAssignmentTestForBaseResourceProperties_STATUS(subject BaseResou copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BaseResourceProperties_STATUS + var other v20231101s.BaseResourceProperties_STATUS err := copied.AssignProperties_To_BaseResourceProperties_STATUS(&other) if err != nil { return err.Error() @@ -2285,7 +2285,7 @@ func RunPropertyAssignmentTestForInnerError_STATUS(subject InnerError_STATUS) st copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.InnerError_STATUS + var other v20231101s.InnerError_STATUS err := copied.AssignProperties_To_InnerError_STATUS(&other) if err != nil { return err.Error() @@ -2402,7 +2402,7 @@ func RunPropertyAssignmentTestForPolicyParameters(subject PolicyParameters) stri copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.PolicyParameters + var other v20231101s.PolicyParameters err := copied.AssignProperties_To_PolicyParameters(&other) if err != nil { return err.Error() @@ -2505,7 +2505,7 @@ func RunPropertyAssignmentTestForPolicyParameters_STATUS(subject PolicyParameter copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.PolicyParameters_STATUS + var other v20231101s.PolicyParameters_STATUS err := copied.AssignProperties_To_PolicyParameters_STATUS(&other) if err != nil { return err.Error() @@ -2609,7 +2609,7 @@ func RunPropertyAssignmentTestForSecretStoreBasedAuthCredentials(subject SecretS copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SecretStoreBasedAuthCredentials + var other v20231101s.SecretStoreBasedAuthCredentials err := copied.AssignProperties_To_SecretStoreBasedAuthCredentials(&other) if err != nil { return err.Error() @@ -2726,7 +2726,7 @@ func RunPropertyAssignmentTestForSecretStoreBasedAuthCredentials_STATUS(subject copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SecretStoreBasedAuthCredentials_STATUS + var other v20231101s.SecretStoreBasedAuthCredentials_STATUS err := copied.AssignProperties_To_SecretStoreBasedAuthCredentials_STATUS(&other) if err != nil { return err.Error() @@ -2843,7 +2843,7 @@ func RunPropertyAssignmentTestForUserFacingError_STATUS_Unrolled(subject UserFac copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.UserFacingError_STATUS_Unrolled + var other v20231101s.UserFacingError_STATUS_Unrolled err := copied.AssignProperties_To_UserFacingError_STATUS_Unrolled(&other) if err != nil { return err.Error() @@ -2966,7 +2966,7 @@ func RunPropertyAssignmentTestForBackupDatasourceParameters(subject BackupDataso copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupDatasourceParameters + var other v20231101s.BackupDatasourceParameters err := copied.AssignProperties_To_BackupDatasourceParameters(&other) if err != nil { return err.Error() @@ -3080,7 +3080,7 @@ func RunPropertyAssignmentTestForBackupDatasourceParameters_STATUS(subject Backu copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupDatasourceParameters_STATUS + var other v20231101s.BackupDatasourceParameters_STATUS err := copied.AssignProperties_To_BackupDatasourceParameters_STATUS(&other) if err != nil { return err.Error() @@ -3194,7 +3194,7 @@ func RunPropertyAssignmentTestForDataStoreParameters(subject DataStoreParameters copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DataStoreParameters + var other v20231101s.DataStoreParameters err := copied.AssignProperties_To_DataStoreParameters(&other) if err != nil { return err.Error() @@ -3305,7 +3305,7 @@ func RunPropertyAssignmentTestForDataStoreParameters_STATUS(subject DataStorePar copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DataStoreParameters_STATUS + var other v20231101s.DataStoreParameters_STATUS err := copied.AssignProperties_To_DataStoreParameters_STATUS(&other) if err != nil { return err.Error() @@ -3416,7 +3416,7 @@ func RunPropertyAssignmentTestForDefaultResourceProperties(subject DefaultResour copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DefaultResourceProperties + var other v20231101s.DefaultResourceProperties err := copied.AssignProperties_To_DefaultResourceProperties(&other) if err != nil { return err.Error() @@ -3519,7 +3519,7 @@ func RunPropertyAssignmentTestForDefaultResourceProperties_STATUS(subject Defaul copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DefaultResourceProperties_STATUS + var other v20231101s.DefaultResourceProperties_STATUS err := copied.AssignProperties_To_DefaultResourceProperties_STATUS(&other) if err != nil { return err.Error() @@ -3622,7 +3622,7 @@ func RunPropertyAssignmentTestForInnerError_STATUS_Unrolled(subject InnerError_S copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.InnerError_STATUS_Unrolled + var other v20231101s.InnerError_STATUS_Unrolled err := copied.AssignProperties_To_InnerError_STATUS_Unrolled(&other) if err != nil { return err.Error() @@ -3726,7 +3726,7 @@ func RunPropertyAssignmentTestForSecretStoreResource(subject SecretStoreResource copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SecretStoreResource + var other v20231101s.SecretStoreResource err := copied.AssignProperties_To_SecretStoreResource(&other) if err != nil { return err.Error() @@ -3831,7 +3831,7 @@ func RunPropertyAssignmentTestForSecretStoreResource_STATUS(subject SecretStoreR copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SecretStoreResource_STATUS + var other v20231101s.SecretStoreResource_STATUS err := copied.AssignProperties_To_SecretStoreResource_STATUS(&other) if err != nil { return err.Error() @@ -3936,7 +3936,7 @@ func RunPropertyAssignmentTestForAzureOperationalStoreParameters(subject AzureOp copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureOperationalStoreParameters + var other v20231101s.AzureOperationalStoreParameters err := copied.AssignProperties_To_AzureOperationalStoreParameters(&other) if err != nil { return err.Error() @@ -4041,7 +4041,7 @@ func RunPropertyAssignmentTestForAzureOperationalStoreParameters_STATUS(subject copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureOperationalStoreParameters_STATUS + var other v20231101s.AzureOperationalStoreParameters_STATUS err := copied.AssignProperties_To_AzureOperationalStoreParameters_STATUS(&other) if err != nil { return err.Error() @@ -4146,7 +4146,7 @@ func RunPropertyAssignmentTestForBlobBackupDatasourceParameters(subject BlobBack copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BlobBackupDatasourceParameters + var other v20231101s.BlobBackupDatasourceParameters err := copied.AssignProperties_To_BlobBackupDatasourceParameters(&other) if err != nil { return err.Error() @@ -4250,7 +4250,7 @@ func RunPropertyAssignmentTestForBlobBackupDatasourceParameters_STATUS(subject B copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BlobBackupDatasourceParameters_STATUS + var other v20231101s.BlobBackupDatasourceParameters_STATUS err := copied.AssignProperties_To_BlobBackupDatasourceParameters_STATUS(&other) if err != nil { return err.Error() @@ -4354,7 +4354,7 @@ func RunPropertyAssignmentTestForKubernetesClusterBackupDatasourceParameters(sub copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.KubernetesClusterBackupDatasourceParameters + var other v20231101s.KubernetesClusterBackupDatasourceParameters err := copied.AssignProperties_To_KubernetesClusterBackupDatasourceParameters(&other) if err != nil { return err.Error() @@ -4478,7 +4478,7 @@ func RunPropertyAssignmentTestForKubernetesClusterBackupDatasourceParameters_STA copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.KubernetesClusterBackupDatasourceParameters_STATUS + var other v20231101s.KubernetesClusterBackupDatasourceParameters_STATUS err := copied.AssignProperties_To_KubernetesClusterBackupDatasourceParameters_STATUS(&other) if err != nil { return err.Error() @@ -4602,7 +4602,7 @@ func RunPropertyAssignmentTestForNamespacedNameResource(subject NamespacedNameRe copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.NamespacedNameResource + var other v20231101s.NamespacedNameResource err := copied.AssignProperties_To_NamespacedNameResource(&other) if err != nil { return err.Error() @@ -4706,7 +4706,7 @@ func RunPropertyAssignmentTestForNamespacedNameResource_STATUS(subject Namespace copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.NamespacedNameResource_STATUS + var other v20231101s.NamespacedNameResource_STATUS err := copied.AssignProperties_To_NamespacedNameResource_STATUS(&other) if err != nil { return err.Error() diff --git a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_spec_arm_types_gen.go b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_spec_arm_types_gen.go similarity index 99% rename from v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_spec_arm_types_gen.go rename to v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_spec_arm_types_gen.go index 8ca12167c99..fa180f199dc 100644 --- a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_spec_arm_types_gen.go +++ b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_spec_arm_types_gen.go @@ -1,7 +1,7 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 import ( "encoding/json" @@ -17,7 +17,7 @@ type BackupVaults_BackupPolicy_Spec_ARM struct { var _ genruntime.ARMResourceSpec = &BackupVaults_BackupPolicy_Spec_ARM{} -// GetAPIVersion returns the ARM API version of the resource. This is always "2023-12-01" +// GetAPIVersion returns the ARM API version of the resource. This is always "2023-11-01" func (policy BackupVaults_BackupPolicy_Spec_ARM) GetAPIVersion() string { return string(APIVersion_Value) } diff --git a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_spec_arm_types_gen_test.go b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_spec_arm_types_gen_test.go similarity index 99% rename from v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_spec_arm_types_gen_test.go rename to v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_spec_arm_types_gen_test.go index aecbe8c6bbd..8122a6c7825 100644 --- a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_spec_arm_types_gen_test.go +++ b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_spec_arm_types_gen_test.go @@ -1,7 +1,7 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 import ( "encoding/json" diff --git a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_status_arm_types_gen.go b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_status_arm_types_gen.go similarity index 99% rename from v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_status_arm_types_gen.go rename to v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_status_arm_types_gen.go index 9c1fffb5602..b0b4dda3a91 100644 --- a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_status_arm_types_gen.go +++ b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_status_arm_types_gen.go @@ -1,7 +1,7 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 import "encoding/json" diff --git a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_status_arm_types_gen_test.go b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_status_arm_types_gen_test.go similarity index 99% rename from v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_status_arm_types_gen_test.go rename to v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_status_arm_types_gen_test.go index 35567c20b38..19a10eb722d 100644 --- a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_status_arm_types_gen_test.go +++ b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_status_arm_types_gen_test.go @@ -1,7 +1,7 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 import ( "encoding/json" diff --git a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_types_gen.go b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_types_gen.go similarity index 95% rename from v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_types_gen.go rename to v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_types_gen.go index 58c06e351b2..35d6c4fbe69 100644 --- a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_types_gen.go +++ b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_types_gen.go @@ -1,11 +1,11 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 import ( "fmt" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" + v20231101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage" "github.com/Azure/azure-service-operator/v2/internal/reflecthelpers" "github.com/Azure/azure-service-operator/v2/pkg/genruntime" "github.com/Azure/azure-service-operator/v2/pkg/genruntime/conditions" @@ -24,7 +24,7 @@ import ( // +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason" // +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message" // Generator information: -// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-12-01/dataprotection.json +// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-11-01/dataprotection.json // - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName} type BackupVaultsBackupPolicy struct { metav1.TypeMeta `json:",inline"` @@ -49,9 +49,9 @@ var _ conversion.Convertible = &BackupVaultsBackupPolicy{} // ConvertFrom populates our BackupVaultsBackupPolicy from the provided hub BackupVaultsBackupPolicy func (policy *BackupVaultsBackupPolicy) ConvertFrom(hub conversion.Hub) error { - source, ok := hub.(*v20231201s.BackupVaultsBackupPolicy) + source, ok := hub.(*v20231101s.BackupVaultsBackupPolicy) if !ok { - return fmt.Errorf("expected dataprotection/v1api20231201/storage/BackupVaultsBackupPolicy but received %T instead", hub) + return fmt.Errorf("expected dataprotection/v1api20231101/storage/BackupVaultsBackupPolicy but received %T instead", hub) } return policy.AssignProperties_From_BackupVaultsBackupPolicy(source) @@ -59,15 +59,15 @@ func (policy *BackupVaultsBackupPolicy) ConvertFrom(hub conversion.Hub) error { // ConvertTo populates the provided hub BackupVaultsBackupPolicy from our BackupVaultsBackupPolicy func (policy *BackupVaultsBackupPolicy) ConvertTo(hub conversion.Hub) error { - destination, ok := hub.(*v20231201s.BackupVaultsBackupPolicy) + destination, ok := hub.(*v20231101s.BackupVaultsBackupPolicy) if !ok { - return fmt.Errorf("expected dataprotection/v1api20231201/storage/BackupVaultsBackupPolicy but received %T instead", hub) + return fmt.Errorf("expected dataprotection/v1api20231101/storage/BackupVaultsBackupPolicy but received %T instead", hub) } return policy.AssignProperties_To_BackupVaultsBackupPolicy(destination) } -// +kubebuilder:webhook:path=/mutate-dataprotection-azure-com-v1api20231201-backupvaultsbackuppolicy,mutating=true,sideEffects=None,matchPolicy=Exact,failurePolicy=fail,groups=dataprotection.azure.com,resources=backupvaultsbackuppolicies,verbs=create;update,versions=v1api20231201,name=default.v1api20231201.backupvaultsbackuppolicies.dataprotection.azure.com,admissionReviewVersions=v1 +// +kubebuilder:webhook:path=/mutate-dataprotection-azure-com-v1api20231101-backupvaultsbackuppolicy,mutating=true,sideEffects=None,matchPolicy=Exact,failurePolicy=fail,groups=dataprotection.azure.com,resources=backupvaultsbackuppolicies,verbs=create;update,versions=v1api20231101,name=default.v1api20231101.backupvaultsbackuppolicies.dataprotection.azure.com,admissionReviewVersions=v1 var _ admission.Defaulter = &BackupVaultsBackupPolicy{} @@ -108,7 +108,7 @@ func (policy *BackupVaultsBackupPolicy) AzureName() string { return policy.Spec.AzureName } -// GetAPIVersion returns the ARM API version of the resource. This is always "2023-12-01" +// GetAPIVersion returns the ARM API version of the resource. This is always "2023-11-01" func (policy BackupVaultsBackupPolicy) GetAPIVersion() string { return string(APIVersion_Value) } @@ -172,7 +172,7 @@ func (policy *BackupVaultsBackupPolicy) SetStatus(status genruntime.ConvertibleS return nil } -// +kubebuilder:webhook:path=/validate-dataprotection-azure-com-v1api20231201-backupvaultsbackuppolicy,mutating=false,sideEffects=None,matchPolicy=Exact,failurePolicy=fail,groups=dataprotection.azure.com,resources=backupvaultsbackuppolicies,verbs=create;update,versions=v1api20231201,name=validate.v1api20231201.backupvaultsbackuppolicies.dataprotection.azure.com,admissionReviewVersions=v1 +// +kubebuilder:webhook:path=/validate-dataprotection-azure-com-v1api20231101-backupvaultsbackuppolicy,mutating=false,sideEffects=None,matchPolicy=Exact,failurePolicy=fail,groups=dataprotection.azure.com,resources=backupvaultsbackuppolicies,verbs=create;update,versions=v1api20231101,name=validate.v1api20231101.backupvaultsbackuppolicies.dataprotection.azure.com,admissionReviewVersions=v1 var _ admission.Validator = &BackupVaultsBackupPolicy{} @@ -254,7 +254,7 @@ func (policy *BackupVaultsBackupPolicy) validateWriteOnceProperties(old runtime. } // AssignProperties_From_BackupVaultsBackupPolicy populates our BackupVaultsBackupPolicy from the provided source BackupVaultsBackupPolicy -func (policy *BackupVaultsBackupPolicy) AssignProperties_From_BackupVaultsBackupPolicy(source *v20231201s.BackupVaultsBackupPolicy) error { +func (policy *BackupVaultsBackupPolicy) AssignProperties_From_BackupVaultsBackupPolicy(source *v20231101s.BackupVaultsBackupPolicy) error { // ObjectMeta policy.ObjectMeta = *source.ObjectMeta.DeepCopy() @@ -280,13 +280,13 @@ func (policy *BackupVaultsBackupPolicy) AssignProperties_From_BackupVaultsBackup } // AssignProperties_To_BackupVaultsBackupPolicy populates the provided destination BackupVaultsBackupPolicy from our BackupVaultsBackupPolicy -func (policy *BackupVaultsBackupPolicy) AssignProperties_To_BackupVaultsBackupPolicy(destination *v20231201s.BackupVaultsBackupPolicy) error { +func (policy *BackupVaultsBackupPolicy) AssignProperties_To_BackupVaultsBackupPolicy(destination *v20231101s.BackupVaultsBackupPolicy) error { // ObjectMeta destination.ObjectMeta = *policy.ObjectMeta.DeepCopy() // Spec - var spec v20231201s.BackupVaults_BackupPolicy_Spec + var spec v20231101s.BackupVaults_BackupPolicy_Spec err := policy.Spec.AssignProperties_To_BackupVaults_BackupPolicy_Spec(&spec) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVaults_BackupPolicy_Spec() to populate field Spec") @@ -294,7 +294,7 @@ func (policy *BackupVaultsBackupPolicy) AssignProperties_To_BackupVaultsBackupPo destination.Spec = spec // Status - var status v20231201s.BackupVaults_BackupPolicy_STATUS + var status v20231101s.BackupVaults_BackupPolicy_STATUS err = policy.Status.AssignProperties_To_BackupVaults_BackupPolicy_STATUS(&status) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupVaults_BackupPolicy_STATUS() to populate field Status") @@ -316,7 +316,7 @@ func (policy *BackupVaultsBackupPolicy) OriginalGVK() *schema.GroupVersionKind { // +kubebuilder:object:root=true // Generator information: -// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-12-01/dataprotection.json +// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-11-01/dataprotection.json // - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName} type BackupVaultsBackupPolicyList struct { metav1.TypeMeta `json:",inline"` @@ -403,14 +403,14 @@ var _ genruntime.ConvertibleSpec = &BackupVaults_BackupPolicy_Spec{} // ConvertSpecFrom populates our BackupVaults_BackupPolicy_Spec from the provided source func (policy *BackupVaults_BackupPolicy_Spec) ConvertSpecFrom(source genruntime.ConvertibleSpec) error { - src, ok := source.(*v20231201s.BackupVaults_BackupPolicy_Spec) + src, ok := source.(*v20231101s.BackupVaults_BackupPolicy_Spec) if ok { // Populate our instance from source return policy.AssignProperties_From_BackupVaults_BackupPolicy_Spec(src) } // Convert to an intermediate form - src = &v20231201s.BackupVaults_BackupPolicy_Spec{} + src = &v20231101s.BackupVaults_BackupPolicy_Spec{} err := src.ConvertSpecFrom(source) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertSpecFrom()") @@ -427,14 +427,14 @@ func (policy *BackupVaults_BackupPolicy_Spec) ConvertSpecFrom(source genruntime. // ConvertSpecTo populates the provided destination from our BackupVaults_BackupPolicy_Spec func (policy *BackupVaults_BackupPolicy_Spec) ConvertSpecTo(destination genruntime.ConvertibleSpec) error { - dst, ok := destination.(*v20231201s.BackupVaults_BackupPolicy_Spec) + dst, ok := destination.(*v20231101s.BackupVaults_BackupPolicy_Spec) if ok { // Populate destination from our instance return policy.AssignProperties_To_BackupVaults_BackupPolicy_Spec(dst) } // Convert to an intermediate form - dst = &v20231201s.BackupVaults_BackupPolicy_Spec{} + dst = &v20231101s.BackupVaults_BackupPolicy_Spec{} err := policy.AssignProperties_To_BackupVaults_BackupPolicy_Spec(dst) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertSpecTo()") @@ -450,7 +450,7 @@ func (policy *BackupVaults_BackupPolicy_Spec) ConvertSpecTo(destination genrunti } // AssignProperties_From_BackupVaults_BackupPolicy_Spec populates our BackupVaults_BackupPolicy_Spec from the provided source BackupVaults_BackupPolicy_Spec -func (policy *BackupVaults_BackupPolicy_Spec) AssignProperties_From_BackupVaults_BackupPolicy_Spec(source *v20231201s.BackupVaults_BackupPolicy_Spec) error { +func (policy *BackupVaults_BackupPolicy_Spec) AssignProperties_From_BackupVaults_BackupPolicy_Spec(source *v20231101s.BackupVaults_BackupPolicy_Spec) error { // AzureName policy.AzureName = source.AzureName @@ -480,7 +480,7 @@ func (policy *BackupVaults_BackupPolicy_Spec) AssignProperties_From_BackupVaults } // AssignProperties_To_BackupVaults_BackupPolicy_Spec populates the provided destination BackupVaults_BackupPolicy_Spec from our BackupVaults_BackupPolicy_Spec -func (policy *BackupVaults_BackupPolicy_Spec) AssignProperties_To_BackupVaults_BackupPolicy_Spec(destination *v20231201s.BackupVaults_BackupPolicy_Spec) error { +func (policy *BackupVaults_BackupPolicy_Spec) AssignProperties_To_BackupVaults_BackupPolicy_Spec(destination *v20231101s.BackupVaults_BackupPolicy_Spec) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -500,7 +500,7 @@ func (policy *BackupVaults_BackupPolicy_Spec) AssignProperties_To_BackupVaults_B // Properties if policy.Properties != nil { - var property v20231201s.BaseBackupPolicy + var property v20231101s.BaseBackupPolicy err := policy.Properties.AssignProperties_To_BaseBackupPolicy(&property) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BaseBackupPolicy() to populate field Properties") @@ -574,14 +574,14 @@ var _ genruntime.ConvertibleStatus = &BackupVaults_BackupPolicy_STATUS{} // ConvertStatusFrom populates our BackupVaults_BackupPolicy_STATUS from the provided source func (policy *BackupVaults_BackupPolicy_STATUS) ConvertStatusFrom(source genruntime.ConvertibleStatus) error { - src, ok := source.(*v20231201s.BackupVaults_BackupPolicy_STATUS) + src, ok := source.(*v20231101s.BackupVaults_BackupPolicy_STATUS) if ok { // Populate our instance from source return policy.AssignProperties_From_BackupVaults_BackupPolicy_STATUS(src) } // Convert to an intermediate form - src = &v20231201s.BackupVaults_BackupPolicy_STATUS{} + src = &v20231101s.BackupVaults_BackupPolicy_STATUS{} err := src.ConvertStatusFrom(source) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertStatusFrom()") @@ -598,14 +598,14 @@ func (policy *BackupVaults_BackupPolicy_STATUS) ConvertStatusFrom(source genrunt // ConvertStatusTo populates the provided destination from our BackupVaults_BackupPolicy_STATUS func (policy *BackupVaults_BackupPolicy_STATUS) ConvertStatusTo(destination genruntime.ConvertibleStatus) error { - dst, ok := destination.(*v20231201s.BackupVaults_BackupPolicy_STATUS) + dst, ok := destination.(*v20231101s.BackupVaults_BackupPolicy_STATUS) if ok { // Populate destination from our instance return policy.AssignProperties_To_BackupVaults_BackupPolicy_STATUS(dst) } // Convert to an intermediate form - dst = &v20231201s.BackupVaults_BackupPolicy_STATUS{} + dst = &v20231101s.BackupVaults_BackupPolicy_STATUS{} err := policy.AssignProperties_To_BackupVaults_BackupPolicy_STATUS(dst) if err != nil { return errors.Wrap(err, "initial step of conversion in ConvertStatusTo()") @@ -681,7 +681,7 @@ func (policy *BackupVaults_BackupPolicy_STATUS) PopulateFromARM(owner genruntime } // AssignProperties_From_BackupVaults_BackupPolicy_STATUS populates our BackupVaults_BackupPolicy_STATUS from the provided source BackupVaults_BackupPolicy_STATUS -func (policy *BackupVaults_BackupPolicy_STATUS) AssignProperties_From_BackupVaults_BackupPolicy_STATUS(source *v20231201s.BackupVaults_BackupPolicy_STATUS) error { +func (policy *BackupVaults_BackupPolicy_STATUS) AssignProperties_From_BackupVaults_BackupPolicy_STATUS(source *v20231101s.BackupVaults_BackupPolicy_STATUS) error { // Conditions policy.Conditions = genruntime.CloneSliceOfCondition(source.Conditions) @@ -724,7 +724,7 @@ func (policy *BackupVaults_BackupPolicy_STATUS) AssignProperties_From_BackupVaul } // AssignProperties_To_BackupVaults_BackupPolicy_STATUS populates the provided destination BackupVaults_BackupPolicy_STATUS from our BackupVaults_BackupPolicy_STATUS -func (policy *BackupVaults_BackupPolicy_STATUS) AssignProperties_To_BackupVaults_BackupPolicy_STATUS(destination *v20231201s.BackupVaults_BackupPolicy_STATUS) error { +func (policy *BackupVaults_BackupPolicy_STATUS) AssignProperties_To_BackupVaults_BackupPolicy_STATUS(destination *v20231101s.BackupVaults_BackupPolicy_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -739,7 +739,7 @@ func (policy *BackupVaults_BackupPolicy_STATUS) AssignProperties_To_BackupVaults // Properties if policy.Properties != nil { - var property v20231201s.BaseBackupPolicy_STATUS + var property v20231101s.BaseBackupPolicy_STATUS err := policy.Properties.AssignProperties_To_BaseBackupPolicy_STATUS(&property) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BaseBackupPolicy_STATUS() to populate field Properties") @@ -751,7 +751,7 @@ func (policy *BackupVaults_BackupPolicy_STATUS) AssignProperties_To_BackupVaults // SystemData if policy.SystemData != nil { - var systemDatum v20231201s.SystemData_STATUS + var systemDatum v20231101s.SystemData_STATUS err := policy.SystemData.AssignProperties_To_SystemData_STATUS(&systemDatum) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SystemData_STATUS() to populate field SystemData") @@ -829,7 +829,7 @@ func (policy *BaseBackupPolicy) PopulateFromARM(owner genruntime.ArbitraryOwnerR } // AssignProperties_From_BaseBackupPolicy populates our BaseBackupPolicy from the provided source BaseBackupPolicy -func (policy *BaseBackupPolicy) AssignProperties_From_BaseBackupPolicy(source *v20231201s.BaseBackupPolicy) error { +func (policy *BaseBackupPolicy) AssignProperties_From_BaseBackupPolicy(source *v20231101s.BaseBackupPolicy) error { // BackupPolicy if source.BackupPolicy != nil { @@ -848,13 +848,13 @@ func (policy *BaseBackupPolicy) AssignProperties_From_BaseBackupPolicy(source *v } // AssignProperties_To_BaseBackupPolicy populates the provided destination BaseBackupPolicy from our BaseBackupPolicy -func (policy *BaseBackupPolicy) AssignProperties_To_BaseBackupPolicy(destination *v20231201s.BaseBackupPolicy) error { +func (policy *BaseBackupPolicy) AssignProperties_To_BaseBackupPolicy(destination *v20231101s.BaseBackupPolicy) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // BackupPolicy if policy.BackupPolicy != nil { - var backupPolicy v20231201s.BackupPolicy + var backupPolicy v20231101s.BackupPolicy err := policy.BackupPolicy.AssignProperties_To_BackupPolicy(&backupPolicy) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupPolicy() to populate field BackupPolicy") @@ -929,7 +929,7 @@ func (policy *BaseBackupPolicy_STATUS) PopulateFromARM(owner genruntime.Arbitrar } // AssignProperties_From_BaseBackupPolicy_STATUS populates our BaseBackupPolicy_STATUS from the provided source BaseBackupPolicy_STATUS -func (policy *BaseBackupPolicy_STATUS) AssignProperties_From_BaseBackupPolicy_STATUS(source *v20231201s.BaseBackupPolicy_STATUS) error { +func (policy *BaseBackupPolicy_STATUS) AssignProperties_From_BaseBackupPolicy_STATUS(source *v20231101s.BaseBackupPolicy_STATUS) error { // BackupPolicy if source.BackupPolicy != nil { @@ -948,13 +948,13 @@ func (policy *BaseBackupPolicy_STATUS) AssignProperties_From_BaseBackupPolicy_ST } // AssignProperties_To_BaseBackupPolicy_STATUS populates the provided destination BaseBackupPolicy_STATUS from our BaseBackupPolicy_STATUS -func (policy *BaseBackupPolicy_STATUS) AssignProperties_To_BaseBackupPolicy_STATUS(destination *v20231201s.BaseBackupPolicy_STATUS) error { +func (policy *BaseBackupPolicy_STATUS) AssignProperties_To_BaseBackupPolicy_STATUS(destination *v20231101s.BaseBackupPolicy_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // BackupPolicy if policy.BackupPolicy != nil { - var backupPolicy v20231201s.BackupPolicy_STATUS + var backupPolicy v20231101s.BackupPolicy_STATUS err := policy.BackupPolicy.AssignProperties_To_BackupPolicy_STATUS(&backupPolicy) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupPolicy_STATUS() to populate field BackupPolicy") @@ -1053,7 +1053,7 @@ func (policy *BackupPolicy) PopulateFromARM(owner genruntime.ArbitraryOwnerRefer } // AssignProperties_From_BackupPolicy populates our BackupPolicy from the provided source BackupPolicy -func (policy *BackupPolicy) AssignProperties_From_BackupPolicy(source *v20231201s.BackupPolicy) error { +func (policy *BackupPolicy) AssignProperties_From_BackupPolicy(source *v20231101s.BackupPolicy) error { // DatasourceTypes policy.DatasourceTypes = genruntime.CloneSliceOfString(source.DatasourceTypes) @@ -1089,7 +1089,7 @@ func (policy *BackupPolicy) AssignProperties_From_BackupPolicy(source *v20231201 } // AssignProperties_To_BackupPolicy populates the provided destination BackupPolicy from our BackupPolicy -func (policy *BackupPolicy) AssignProperties_To_BackupPolicy(destination *v20231201s.BackupPolicy) error { +func (policy *BackupPolicy) AssignProperties_To_BackupPolicy(destination *v20231101s.BackupPolicy) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -1106,11 +1106,11 @@ func (policy *BackupPolicy) AssignProperties_To_BackupPolicy(destination *v20231 // PolicyRules if policy.PolicyRules != nil { - policyRuleList := make([]v20231201s.BasePolicyRule, len(policy.PolicyRules)) + policyRuleList := make([]v20231101s.BasePolicyRule, len(policy.PolicyRules)) for policyRuleIndex, policyRuleItem := range policy.PolicyRules { // Shadow the loop variable to avoid aliasing policyRuleItem := policyRuleItem - var policyRule v20231201s.BasePolicyRule + var policyRule v20231101s.BasePolicyRule err := policyRuleItem.AssignProperties_To_BasePolicyRule(&policyRule) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BasePolicyRule() to populate field PolicyRules") @@ -1215,7 +1215,7 @@ func (policy *BackupPolicy_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwn } // AssignProperties_From_BackupPolicy_STATUS populates our BackupPolicy_STATUS from the provided source BackupPolicy_STATUS -func (policy *BackupPolicy_STATUS) AssignProperties_From_BackupPolicy_STATUS(source *v20231201s.BackupPolicy_STATUS) error { +func (policy *BackupPolicy_STATUS) AssignProperties_From_BackupPolicy_STATUS(source *v20231101s.BackupPolicy_STATUS) error { // DatasourceTypes policy.DatasourceTypes = genruntime.CloneSliceOfString(source.DatasourceTypes) @@ -1251,7 +1251,7 @@ func (policy *BackupPolicy_STATUS) AssignProperties_From_BackupPolicy_STATUS(sou } // AssignProperties_To_BackupPolicy_STATUS populates the provided destination BackupPolicy_STATUS from our BackupPolicy_STATUS -func (policy *BackupPolicy_STATUS) AssignProperties_To_BackupPolicy_STATUS(destination *v20231201s.BackupPolicy_STATUS) error { +func (policy *BackupPolicy_STATUS) AssignProperties_To_BackupPolicy_STATUS(destination *v20231101s.BackupPolicy_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -1268,11 +1268,11 @@ func (policy *BackupPolicy_STATUS) AssignProperties_To_BackupPolicy_STATUS(desti // PolicyRules if policy.PolicyRules != nil { - policyRuleList := make([]v20231201s.BasePolicyRule_STATUS, len(policy.PolicyRules)) + policyRuleList := make([]v20231101s.BasePolicyRule_STATUS, len(policy.PolicyRules)) for policyRuleIndex, policyRuleItem := range policy.PolicyRules { // Shadow the loop variable to avoid aliasing policyRuleItem := policyRuleItem - var policyRule v20231201s.BasePolicyRule_STATUS + var policyRule v20231101s.BasePolicyRule_STATUS err := policyRuleItem.AssignProperties_To_BasePolicyRule_STATUS(&policyRule) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BasePolicyRule_STATUS() to populate field PolicyRules") @@ -1373,7 +1373,7 @@ func (rule *BasePolicyRule) PopulateFromARM(owner genruntime.ArbitraryOwnerRefer } // AssignProperties_From_BasePolicyRule populates our BasePolicyRule from the provided source BasePolicyRule -func (rule *BasePolicyRule) AssignProperties_From_BasePolicyRule(source *v20231201s.BasePolicyRule) error { +func (rule *BasePolicyRule) AssignProperties_From_BasePolicyRule(source *v20231101s.BasePolicyRule) error { // AzureBackup if source.AzureBackup != nil { @@ -1404,13 +1404,13 @@ func (rule *BasePolicyRule) AssignProperties_From_BasePolicyRule(source *v202312 } // AssignProperties_To_BasePolicyRule populates the provided destination BasePolicyRule from our BasePolicyRule -func (rule *BasePolicyRule) AssignProperties_To_BasePolicyRule(destination *v20231201s.BasePolicyRule) error { +func (rule *BasePolicyRule) AssignProperties_To_BasePolicyRule(destination *v20231101s.BasePolicyRule) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // AzureBackup if rule.AzureBackup != nil { - var azureBackup v20231201s.AzureBackupRule + var azureBackup v20231101s.AzureBackupRule err := rule.AzureBackup.AssignProperties_To_AzureBackupRule(&azureBackup) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureBackupRule() to populate field AzureBackup") @@ -1422,7 +1422,7 @@ func (rule *BasePolicyRule) AssignProperties_To_BasePolicyRule(destination *v202 // AzureRetention if rule.AzureRetention != nil { - var azureRetention v20231201s.AzureRetentionRule + var azureRetention v20231101s.AzureRetentionRule err := rule.AzureRetention.AssignProperties_To_AzureRetentionRule(&azureRetention) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureRetentionRule() to populate field AzureRetention") @@ -1523,7 +1523,7 @@ func (rule *BasePolicyRule_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwn } // AssignProperties_From_BasePolicyRule_STATUS populates our BasePolicyRule_STATUS from the provided source BasePolicyRule_STATUS -func (rule *BasePolicyRule_STATUS) AssignProperties_From_BasePolicyRule_STATUS(source *v20231201s.BasePolicyRule_STATUS) error { +func (rule *BasePolicyRule_STATUS) AssignProperties_From_BasePolicyRule_STATUS(source *v20231101s.BasePolicyRule_STATUS) error { // AzureBackup if source.AzureBackup != nil { @@ -1554,13 +1554,13 @@ func (rule *BasePolicyRule_STATUS) AssignProperties_From_BasePolicyRule_STATUS(s } // AssignProperties_To_BasePolicyRule_STATUS populates the provided destination BasePolicyRule_STATUS from our BasePolicyRule_STATUS -func (rule *BasePolicyRule_STATUS) AssignProperties_To_BasePolicyRule_STATUS(destination *v20231201s.BasePolicyRule_STATUS) error { +func (rule *BasePolicyRule_STATUS) AssignProperties_To_BasePolicyRule_STATUS(destination *v20231101s.BasePolicyRule_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // AzureBackup if rule.AzureBackup != nil { - var azureBackup v20231201s.AzureBackupRule_STATUS + var azureBackup v20231101s.AzureBackupRule_STATUS err := rule.AzureBackup.AssignProperties_To_AzureBackupRule_STATUS(&azureBackup) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureBackupRule_STATUS() to populate field AzureBackup") @@ -1572,7 +1572,7 @@ func (rule *BasePolicyRule_STATUS) AssignProperties_To_BasePolicyRule_STATUS(des // AzureRetention if rule.AzureRetention != nil { - var azureRetention v20231201s.AzureRetentionRule_STATUS + var azureRetention v20231101s.AzureRetentionRule_STATUS err := rule.AzureRetention.AssignProperties_To_AzureRetentionRule_STATUS(&azureRetention) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureRetentionRule_STATUS() to populate field AzureRetention") @@ -1721,7 +1721,7 @@ func (rule *AzureBackupRule) PopulateFromARM(owner genruntime.ArbitraryOwnerRefe } // AssignProperties_From_AzureBackupRule populates our AzureBackupRule from the provided source AzureBackupRule -func (rule *AzureBackupRule) AssignProperties_From_AzureBackupRule(source *v20231201s.AzureBackupRule) error { +func (rule *AzureBackupRule) AssignProperties_From_AzureBackupRule(source *v20231101s.AzureBackupRule) error { // BackupParameters if source.BackupParameters != nil { @@ -1775,13 +1775,13 @@ func (rule *AzureBackupRule) AssignProperties_From_AzureBackupRule(source *v2023 } // AssignProperties_To_AzureBackupRule populates the provided destination AzureBackupRule from our AzureBackupRule -func (rule *AzureBackupRule) AssignProperties_To_AzureBackupRule(destination *v20231201s.AzureBackupRule) error { +func (rule *AzureBackupRule) AssignProperties_To_AzureBackupRule(destination *v20231101s.AzureBackupRule) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // BackupParameters if rule.BackupParameters != nil { - var backupParameter v20231201s.BackupParameters + var backupParameter v20231101s.BackupParameters err := rule.BackupParameters.AssignProperties_To_BackupParameters(&backupParameter) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupParameters() to populate field BackupParameters") @@ -1793,7 +1793,7 @@ func (rule *AzureBackupRule) AssignProperties_To_AzureBackupRule(destination *v2 // DataStore if rule.DataStore != nil { - var dataStore v20231201s.DataStoreInfoBase + var dataStore v20231101s.DataStoreInfoBase err := rule.DataStore.AssignProperties_To_DataStoreInfoBase(&dataStore) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DataStoreInfoBase() to populate field DataStore") @@ -1816,7 +1816,7 @@ func (rule *AzureBackupRule) AssignProperties_To_AzureBackupRule(destination *v2 // Trigger if rule.Trigger != nil { - var trigger v20231201s.TriggerContext + var trigger v20231101s.TriggerContext err := rule.Trigger.AssignProperties_To_TriggerContext(&trigger) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_TriggerContext() to populate field Trigger") @@ -1962,7 +1962,7 @@ func (rule *AzureBackupRule_STATUS) PopulateFromARM(owner genruntime.ArbitraryOw } // AssignProperties_From_AzureBackupRule_STATUS populates our AzureBackupRule_STATUS from the provided source AzureBackupRule_STATUS -func (rule *AzureBackupRule_STATUS) AssignProperties_From_AzureBackupRule_STATUS(source *v20231201s.AzureBackupRule_STATUS) error { +func (rule *AzureBackupRule_STATUS) AssignProperties_From_AzureBackupRule_STATUS(source *v20231101s.AzureBackupRule_STATUS) error { // BackupParameters if source.BackupParameters != nil { @@ -2016,13 +2016,13 @@ func (rule *AzureBackupRule_STATUS) AssignProperties_From_AzureBackupRule_STATUS } // AssignProperties_To_AzureBackupRule_STATUS populates the provided destination AzureBackupRule_STATUS from our AzureBackupRule_STATUS -func (rule *AzureBackupRule_STATUS) AssignProperties_To_AzureBackupRule_STATUS(destination *v20231201s.AzureBackupRule_STATUS) error { +func (rule *AzureBackupRule_STATUS) AssignProperties_To_AzureBackupRule_STATUS(destination *v20231101s.AzureBackupRule_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // BackupParameters if rule.BackupParameters != nil { - var backupParameter v20231201s.BackupParameters_STATUS + var backupParameter v20231101s.BackupParameters_STATUS err := rule.BackupParameters.AssignProperties_To_BackupParameters_STATUS(&backupParameter) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupParameters_STATUS() to populate field BackupParameters") @@ -2034,7 +2034,7 @@ func (rule *AzureBackupRule_STATUS) AssignProperties_To_AzureBackupRule_STATUS(d // DataStore if rule.DataStore != nil { - var dataStore v20231201s.DataStoreInfoBase_STATUS + var dataStore v20231101s.DataStoreInfoBase_STATUS err := rule.DataStore.AssignProperties_To_DataStoreInfoBase_STATUS(&dataStore) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DataStoreInfoBase_STATUS() to populate field DataStore") @@ -2057,7 +2057,7 @@ func (rule *AzureBackupRule_STATUS) AssignProperties_To_AzureBackupRule_STATUS(d // Trigger if rule.Trigger != nil { - var trigger v20231201s.TriggerContext_STATUS + var trigger v20231101s.TriggerContext_STATUS err := rule.Trigger.AssignProperties_To_TriggerContext_STATUS(&trigger) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_TriggerContext_STATUS() to populate field Trigger") @@ -2170,7 +2170,7 @@ func (rule *AzureRetentionRule) PopulateFromARM(owner genruntime.ArbitraryOwnerR } // AssignProperties_From_AzureRetentionRule populates our AzureRetentionRule from the provided source AzureRetentionRule -func (rule *AzureRetentionRule) AssignProperties_From_AzureRetentionRule(source *v20231201s.AzureRetentionRule) error { +func (rule *AzureRetentionRule) AssignProperties_From_AzureRetentionRule(source *v20231101s.AzureRetentionRule) error { // IsDefault if source.IsDefault != nil { @@ -2214,7 +2214,7 @@ func (rule *AzureRetentionRule) AssignProperties_From_AzureRetentionRule(source } // AssignProperties_To_AzureRetentionRule populates the provided destination AzureRetentionRule from our AzureRetentionRule -func (rule *AzureRetentionRule) AssignProperties_To_AzureRetentionRule(destination *v20231201s.AzureRetentionRule) error { +func (rule *AzureRetentionRule) AssignProperties_To_AzureRetentionRule(destination *v20231101s.AzureRetentionRule) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -2228,11 +2228,11 @@ func (rule *AzureRetentionRule) AssignProperties_To_AzureRetentionRule(destinati // Lifecycles if rule.Lifecycles != nil { - lifecycleList := make([]v20231201s.SourceLifeCycle, len(rule.Lifecycles)) + lifecycleList := make([]v20231101s.SourceLifeCycle, len(rule.Lifecycles)) for lifecycleIndex, lifecycleItem := range rule.Lifecycles { // Shadow the loop variable to avoid aliasing lifecycleItem := lifecycleItem - var lifecycle v20231201s.SourceLifeCycle + var lifecycle v20231101s.SourceLifeCycle err := lifecycleItem.AssignProperties_To_SourceLifeCycle(&lifecycle) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SourceLifeCycle() to populate field Lifecycles") @@ -2361,7 +2361,7 @@ func (rule *AzureRetentionRule_STATUS) PopulateFromARM(owner genruntime.Arbitrar } // AssignProperties_From_AzureRetentionRule_STATUS populates our AzureRetentionRule_STATUS from the provided source AzureRetentionRule_STATUS -func (rule *AzureRetentionRule_STATUS) AssignProperties_From_AzureRetentionRule_STATUS(source *v20231201s.AzureRetentionRule_STATUS) error { +func (rule *AzureRetentionRule_STATUS) AssignProperties_From_AzureRetentionRule_STATUS(source *v20231101s.AzureRetentionRule_STATUS) error { // IsDefault if source.IsDefault != nil { @@ -2405,7 +2405,7 @@ func (rule *AzureRetentionRule_STATUS) AssignProperties_From_AzureRetentionRule_ } // AssignProperties_To_AzureRetentionRule_STATUS populates the provided destination AzureRetentionRule_STATUS from our AzureRetentionRule_STATUS -func (rule *AzureRetentionRule_STATUS) AssignProperties_To_AzureRetentionRule_STATUS(destination *v20231201s.AzureRetentionRule_STATUS) error { +func (rule *AzureRetentionRule_STATUS) AssignProperties_To_AzureRetentionRule_STATUS(destination *v20231101s.AzureRetentionRule_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -2419,11 +2419,11 @@ func (rule *AzureRetentionRule_STATUS) AssignProperties_To_AzureRetentionRule_ST // Lifecycles if rule.Lifecycles != nil { - lifecycleList := make([]v20231201s.SourceLifeCycle_STATUS, len(rule.Lifecycles)) + lifecycleList := make([]v20231101s.SourceLifeCycle_STATUS, len(rule.Lifecycles)) for lifecycleIndex, lifecycleItem := range rule.Lifecycles { // Shadow the loop variable to avoid aliasing lifecycleItem := lifecycleItem - var lifecycle v20231201s.SourceLifeCycle_STATUS + var lifecycle v20231101s.SourceLifeCycle_STATUS err := lifecycleItem.AssignProperties_To_SourceLifeCycle_STATUS(&lifecycle) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_SourceLifeCycle_STATUS() to populate field Lifecycles") @@ -2511,7 +2511,7 @@ func (parameters *BackupParameters) PopulateFromARM(owner genruntime.ArbitraryOw } // AssignProperties_From_BackupParameters populates our BackupParameters from the provided source BackupParameters -func (parameters *BackupParameters) AssignProperties_From_BackupParameters(source *v20231201s.BackupParameters) error { +func (parameters *BackupParameters) AssignProperties_From_BackupParameters(source *v20231101s.BackupParameters) error { // AzureBackupParams if source.AzureBackupParams != nil { @@ -2530,13 +2530,13 @@ func (parameters *BackupParameters) AssignProperties_From_BackupParameters(sourc } // AssignProperties_To_BackupParameters populates the provided destination BackupParameters from our BackupParameters -func (parameters *BackupParameters) AssignProperties_To_BackupParameters(destination *v20231201s.BackupParameters) error { +func (parameters *BackupParameters) AssignProperties_To_BackupParameters(destination *v20231101s.BackupParameters) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // AzureBackupParams if parameters.AzureBackupParams != nil { - var azureBackupParam v20231201s.AzureBackupParams + var azureBackupParam v20231101s.AzureBackupParams err := parameters.AzureBackupParams.AssignProperties_To_AzureBackupParams(&azureBackupParam) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureBackupParams() to populate field AzureBackupParams") @@ -2611,7 +2611,7 @@ func (parameters *BackupParameters_STATUS) PopulateFromARM(owner genruntime.Arbi } // AssignProperties_From_BackupParameters_STATUS populates our BackupParameters_STATUS from the provided source BackupParameters_STATUS -func (parameters *BackupParameters_STATUS) AssignProperties_From_BackupParameters_STATUS(source *v20231201s.BackupParameters_STATUS) error { +func (parameters *BackupParameters_STATUS) AssignProperties_From_BackupParameters_STATUS(source *v20231101s.BackupParameters_STATUS) error { // AzureBackupParams if source.AzureBackupParams != nil { @@ -2630,13 +2630,13 @@ func (parameters *BackupParameters_STATUS) AssignProperties_From_BackupParameter } // AssignProperties_To_BackupParameters_STATUS populates the provided destination BackupParameters_STATUS from our BackupParameters_STATUS -func (parameters *BackupParameters_STATUS) AssignProperties_To_BackupParameters_STATUS(destination *v20231201s.BackupParameters_STATUS) error { +func (parameters *BackupParameters_STATUS) AssignProperties_To_BackupParameters_STATUS(destination *v20231101s.BackupParameters_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // AzureBackupParams if parameters.AzureBackupParams != nil { - var azureBackupParam v20231201s.AzureBackupParams_STATUS + var azureBackupParam v20231101s.AzureBackupParams_STATUS err := parameters.AzureBackupParams.AssignProperties_To_AzureBackupParams_STATUS(&azureBackupParam) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AzureBackupParams_STATUS() to populate field AzureBackupParams") @@ -2720,7 +2720,7 @@ func (base *DataStoreInfoBase) PopulateFromARM(owner genruntime.ArbitraryOwnerRe } // AssignProperties_From_DataStoreInfoBase populates our DataStoreInfoBase from the provided source DataStoreInfoBase -func (base *DataStoreInfoBase) AssignProperties_From_DataStoreInfoBase(source *v20231201s.DataStoreInfoBase) error { +func (base *DataStoreInfoBase) AssignProperties_From_DataStoreInfoBase(source *v20231101s.DataStoreInfoBase) error { // DataStoreType if source.DataStoreType != nil { @@ -2738,7 +2738,7 @@ func (base *DataStoreInfoBase) AssignProperties_From_DataStoreInfoBase(source *v } // AssignProperties_To_DataStoreInfoBase populates the provided destination DataStoreInfoBase from our DataStoreInfoBase -func (base *DataStoreInfoBase) AssignProperties_To_DataStoreInfoBase(destination *v20231201s.DataStoreInfoBase) error { +func (base *DataStoreInfoBase) AssignProperties_To_DataStoreInfoBase(destination *v20231101s.DataStoreInfoBase) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -2822,7 +2822,7 @@ func (base *DataStoreInfoBase_STATUS) PopulateFromARM(owner genruntime.Arbitrary } // AssignProperties_From_DataStoreInfoBase_STATUS populates our DataStoreInfoBase_STATUS from the provided source DataStoreInfoBase_STATUS -func (base *DataStoreInfoBase_STATUS) AssignProperties_From_DataStoreInfoBase_STATUS(source *v20231201s.DataStoreInfoBase_STATUS) error { +func (base *DataStoreInfoBase_STATUS) AssignProperties_From_DataStoreInfoBase_STATUS(source *v20231101s.DataStoreInfoBase_STATUS) error { // DataStoreType if source.DataStoreType != nil { @@ -2840,7 +2840,7 @@ func (base *DataStoreInfoBase_STATUS) AssignProperties_From_DataStoreInfoBase_ST } // AssignProperties_To_DataStoreInfoBase_STATUS populates the provided destination DataStoreInfoBase_STATUS from our DataStoreInfoBase_STATUS -func (base *DataStoreInfoBase_STATUS) AssignProperties_To_DataStoreInfoBase_STATUS(destination *v20231201s.DataStoreInfoBase_STATUS) error { +func (base *DataStoreInfoBase_STATUS) AssignProperties_To_DataStoreInfoBase_STATUS(destination *v20231101s.DataStoreInfoBase_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -2966,7 +2966,7 @@ func (cycle *SourceLifeCycle) PopulateFromARM(owner genruntime.ArbitraryOwnerRef } // AssignProperties_From_SourceLifeCycle populates our SourceLifeCycle from the provided source SourceLifeCycle -func (cycle *SourceLifeCycle) AssignProperties_From_SourceLifeCycle(source *v20231201s.SourceLifeCycle) error { +func (cycle *SourceLifeCycle) AssignProperties_From_SourceLifeCycle(source *v20231101s.SourceLifeCycle) error { // DeleteAfter if source.DeleteAfter != nil { @@ -3015,13 +3015,13 @@ func (cycle *SourceLifeCycle) AssignProperties_From_SourceLifeCycle(source *v202 } // AssignProperties_To_SourceLifeCycle populates the provided destination SourceLifeCycle from our SourceLifeCycle -func (cycle *SourceLifeCycle) AssignProperties_To_SourceLifeCycle(destination *v20231201s.SourceLifeCycle) error { +func (cycle *SourceLifeCycle) AssignProperties_To_SourceLifeCycle(destination *v20231101s.SourceLifeCycle) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // DeleteAfter if cycle.DeleteAfter != nil { - var deleteAfter v20231201s.DeleteOption + var deleteAfter v20231101s.DeleteOption err := cycle.DeleteAfter.AssignProperties_To_DeleteOption(&deleteAfter) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DeleteOption() to populate field DeleteAfter") @@ -3033,7 +3033,7 @@ func (cycle *SourceLifeCycle) AssignProperties_To_SourceLifeCycle(destination *v // SourceDataStore if cycle.SourceDataStore != nil { - var sourceDataStore v20231201s.DataStoreInfoBase + var sourceDataStore v20231101s.DataStoreInfoBase err := cycle.SourceDataStore.AssignProperties_To_DataStoreInfoBase(&sourceDataStore) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DataStoreInfoBase() to populate field SourceDataStore") @@ -3045,11 +3045,11 @@ func (cycle *SourceLifeCycle) AssignProperties_To_SourceLifeCycle(destination *v // TargetDataStoreCopySettings if cycle.TargetDataStoreCopySettings != nil { - targetDataStoreCopySettingList := make([]v20231201s.TargetCopySetting, len(cycle.TargetDataStoreCopySettings)) + targetDataStoreCopySettingList := make([]v20231101s.TargetCopySetting, len(cycle.TargetDataStoreCopySettings)) for targetDataStoreCopySettingIndex, targetDataStoreCopySettingItem := range cycle.TargetDataStoreCopySettings { // Shadow the loop variable to avoid aliasing targetDataStoreCopySettingItem := targetDataStoreCopySettingItem - var targetDataStoreCopySetting v20231201s.TargetCopySetting + var targetDataStoreCopySetting v20231101s.TargetCopySetting err := targetDataStoreCopySettingItem.AssignProperties_To_TargetCopySetting(&targetDataStoreCopySetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_TargetCopySetting() to populate field TargetDataStoreCopySettings") @@ -3181,7 +3181,7 @@ func (cycle *SourceLifeCycle_STATUS) PopulateFromARM(owner genruntime.ArbitraryO } // AssignProperties_From_SourceLifeCycle_STATUS populates our SourceLifeCycle_STATUS from the provided source SourceLifeCycle_STATUS -func (cycle *SourceLifeCycle_STATUS) AssignProperties_From_SourceLifeCycle_STATUS(source *v20231201s.SourceLifeCycle_STATUS) error { +func (cycle *SourceLifeCycle_STATUS) AssignProperties_From_SourceLifeCycle_STATUS(source *v20231101s.SourceLifeCycle_STATUS) error { // DeleteAfter if source.DeleteAfter != nil { @@ -3230,13 +3230,13 @@ func (cycle *SourceLifeCycle_STATUS) AssignProperties_From_SourceLifeCycle_STATU } // AssignProperties_To_SourceLifeCycle_STATUS populates the provided destination SourceLifeCycle_STATUS from our SourceLifeCycle_STATUS -func (cycle *SourceLifeCycle_STATUS) AssignProperties_To_SourceLifeCycle_STATUS(destination *v20231201s.SourceLifeCycle_STATUS) error { +func (cycle *SourceLifeCycle_STATUS) AssignProperties_To_SourceLifeCycle_STATUS(destination *v20231101s.SourceLifeCycle_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // DeleteAfter if cycle.DeleteAfter != nil { - var deleteAfter v20231201s.DeleteOption_STATUS + var deleteAfter v20231101s.DeleteOption_STATUS err := cycle.DeleteAfter.AssignProperties_To_DeleteOption_STATUS(&deleteAfter) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DeleteOption_STATUS() to populate field DeleteAfter") @@ -3248,7 +3248,7 @@ func (cycle *SourceLifeCycle_STATUS) AssignProperties_To_SourceLifeCycle_STATUS( // SourceDataStore if cycle.SourceDataStore != nil { - var sourceDataStore v20231201s.DataStoreInfoBase_STATUS + var sourceDataStore v20231101s.DataStoreInfoBase_STATUS err := cycle.SourceDataStore.AssignProperties_To_DataStoreInfoBase_STATUS(&sourceDataStore) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DataStoreInfoBase_STATUS() to populate field SourceDataStore") @@ -3260,11 +3260,11 @@ func (cycle *SourceLifeCycle_STATUS) AssignProperties_To_SourceLifeCycle_STATUS( // TargetDataStoreCopySettings if cycle.TargetDataStoreCopySettings != nil { - targetDataStoreCopySettingList := make([]v20231201s.TargetCopySetting_STATUS, len(cycle.TargetDataStoreCopySettings)) + targetDataStoreCopySettingList := make([]v20231101s.TargetCopySetting_STATUS, len(cycle.TargetDataStoreCopySettings)) for targetDataStoreCopySettingIndex, targetDataStoreCopySettingItem := range cycle.TargetDataStoreCopySettings { // Shadow the loop variable to avoid aliasing targetDataStoreCopySettingItem := targetDataStoreCopySettingItem - var targetDataStoreCopySetting v20231201s.TargetCopySetting_STATUS + var targetDataStoreCopySetting v20231101s.TargetCopySetting_STATUS err := targetDataStoreCopySettingItem.AssignProperties_To_TargetCopySetting_STATUS(&targetDataStoreCopySetting) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_TargetCopySetting_STATUS() to populate field TargetDataStoreCopySettings") @@ -3365,7 +3365,7 @@ func (context *TriggerContext) PopulateFromARM(owner genruntime.ArbitraryOwnerRe } // AssignProperties_From_TriggerContext populates our TriggerContext from the provided source TriggerContext -func (context *TriggerContext) AssignProperties_From_TriggerContext(source *v20231201s.TriggerContext) error { +func (context *TriggerContext) AssignProperties_From_TriggerContext(source *v20231101s.TriggerContext) error { // Adhoc if source.Adhoc != nil { @@ -3396,13 +3396,13 @@ func (context *TriggerContext) AssignProperties_From_TriggerContext(source *v202 } // AssignProperties_To_TriggerContext populates the provided destination TriggerContext from our TriggerContext -func (context *TriggerContext) AssignProperties_To_TriggerContext(destination *v20231201s.TriggerContext) error { +func (context *TriggerContext) AssignProperties_To_TriggerContext(destination *v20231101s.TriggerContext) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // Adhoc if context.Adhoc != nil { - var adhoc v20231201s.AdhocBasedTriggerContext + var adhoc v20231101s.AdhocBasedTriggerContext err := context.Adhoc.AssignProperties_To_AdhocBasedTriggerContext(&adhoc) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AdhocBasedTriggerContext() to populate field Adhoc") @@ -3414,7 +3414,7 @@ func (context *TriggerContext) AssignProperties_To_TriggerContext(destination *v // Schedule if context.Schedule != nil { - var schedule v20231201s.ScheduleBasedTriggerContext + var schedule v20231101s.ScheduleBasedTriggerContext err := context.Schedule.AssignProperties_To_ScheduleBasedTriggerContext(&schedule) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ScheduleBasedTriggerContext() to populate field Schedule") @@ -3515,7 +3515,7 @@ func (context *TriggerContext_STATUS) PopulateFromARM(owner genruntime.Arbitrary } // AssignProperties_From_TriggerContext_STATUS populates our TriggerContext_STATUS from the provided source TriggerContext_STATUS -func (context *TriggerContext_STATUS) AssignProperties_From_TriggerContext_STATUS(source *v20231201s.TriggerContext_STATUS) error { +func (context *TriggerContext_STATUS) AssignProperties_From_TriggerContext_STATUS(source *v20231101s.TriggerContext_STATUS) error { // Adhoc if source.Adhoc != nil { @@ -3546,13 +3546,13 @@ func (context *TriggerContext_STATUS) AssignProperties_From_TriggerContext_STATU } // AssignProperties_To_TriggerContext_STATUS populates the provided destination TriggerContext_STATUS from our TriggerContext_STATUS -func (context *TriggerContext_STATUS) AssignProperties_To_TriggerContext_STATUS(destination *v20231201s.TriggerContext_STATUS) error { +func (context *TriggerContext_STATUS) AssignProperties_To_TriggerContext_STATUS(destination *v20231101s.TriggerContext_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // Adhoc if context.Adhoc != nil { - var adhoc v20231201s.AdhocBasedTriggerContext_STATUS + var adhoc v20231101s.AdhocBasedTriggerContext_STATUS err := context.Adhoc.AssignProperties_To_AdhocBasedTriggerContext_STATUS(&adhoc) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AdhocBasedTriggerContext_STATUS() to populate field Adhoc") @@ -3564,7 +3564,7 @@ func (context *TriggerContext_STATUS) AssignProperties_To_TriggerContext_STATUS( // Schedule if context.Schedule != nil { - var schedule v20231201s.ScheduleBasedTriggerContext_STATUS + var schedule v20231101s.ScheduleBasedTriggerContext_STATUS err := context.Schedule.AssignProperties_To_ScheduleBasedTriggerContext_STATUS(&schedule) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ScheduleBasedTriggerContext_STATUS() to populate field Schedule") @@ -3652,7 +3652,7 @@ func (context *AdhocBasedTriggerContext) PopulateFromARM(owner genruntime.Arbitr } // AssignProperties_From_AdhocBasedTriggerContext populates our AdhocBasedTriggerContext from the provided source AdhocBasedTriggerContext -func (context *AdhocBasedTriggerContext) AssignProperties_From_AdhocBasedTriggerContext(source *v20231201s.AdhocBasedTriggerContext) error { +func (context *AdhocBasedTriggerContext) AssignProperties_From_AdhocBasedTriggerContext(source *v20231101s.AdhocBasedTriggerContext) error { // ObjectType if source.ObjectType != nil { @@ -3679,7 +3679,7 @@ func (context *AdhocBasedTriggerContext) AssignProperties_From_AdhocBasedTrigger } // AssignProperties_To_AdhocBasedTriggerContext populates the provided destination AdhocBasedTriggerContext from our AdhocBasedTriggerContext -func (context *AdhocBasedTriggerContext) AssignProperties_To_AdhocBasedTriggerContext(destination *v20231201s.AdhocBasedTriggerContext) error { +func (context *AdhocBasedTriggerContext) AssignProperties_To_AdhocBasedTriggerContext(destination *v20231101s.AdhocBasedTriggerContext) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -3693,7 +3693,7 @@ func (context *AdhocBasedTriggerContext) AssignProperties_To_AdhocBasedTriggerCo // TaggingCriteria if context.TaggingCriteria != nil { - var taggingCriterion v20231201s.AdhocBasedTaggingCriteria + var taggingCriterion v20231101s.AdhocBasedTaggingCriteria err := context.TaggingCriteria.AssignProperties_To_AdhocBasedTaggingCriteria(&taggingCriterion) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AdhocBasedTaggingCriteria() to populate field TaggingCriteria") @@ -3782,7 +3782,7 @@ func (context *AdhocBasedTriggerContext_STATUS) PopulateFromARM(owner genruntime } // AssignProperties_From_AdhocBasedTriggerContext_STATUS populates our AdhocBasedTriggerContext_STATUS from the provided source AdhocBasedTriggerContext_STATUS -func (context *AdhocBasedTriggerContext_STATUS) AssignProperties_From_AdhocBasedTriggerContext_STATUS(source *v20231201s.AdhocBasedTriggerContext_STATUS) error { +func (context *AdhocBasedTriggerContext_STATUS) AssignProperties_From_AdhocBasedTriggerContext_STATUS(source *v20231101s.AdhocBasedTriggerContext_STATUS) error { // ObjectType if source.ObjectType != nil { @@ -3809,7 +3809,7 @@ func (context *AdhocBasedTriggerContext_STATUS) AssignProperties_From_AdhocBased } // AssignProperties_To_AdhocBasedTriggerContext_STATUS populates the provided destination AdhocBasedTriggerContext_STATUS from our AdhocBasedTriggerContext_STATUS -func (context *AdhocBasedTriggerContext_STATUS) AssignProperties_To_AdhocBasedTriggerContext_STATUS(destination *v20231201s.AdhocBasedTriggerContext_STATUS) error { +func (context *AdhocBasedTriggerContext_STATUS) AssignProperties_To_AdhocBasedTriggerContext_STATUS(destination *v20231101s.AdhocBasedTriggerContext_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -3823,7 +3823,7 @@ func (context *AdhocBasedTriggerContext_STATUS) AssignProperties_To_AdhocBasedTr // TaggingCriteria if context.TaggingCriteria != nil { - var taggingCriterion v20231201s.AdhocBasedTaggingCriteria_STATUS + var taggingCriterion v20231101s.AdhocBasedTaggingCriteria_STATUS err := context.TaggingCriteria.AssignProperties_To_AdhocBasedTaggingCriteria_STATUS(&taggingCriterion) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AdhocBasedTaggingCriteria_STATUS() to populate field TaggingCriteria") @@ -3902,7 +3902,7 @@ func (params *AzureBackupParams) PopulateFromARM(owner genruntime.ArbitraryOwner } // AssignProperties_From_AzureBackupParams populates our AzureBackupParams from the provided source AzureBackupParams -func (params *AzureBackupParams) AssignProperties_From_AzureBackupParams(source *v20231201s.AzureBackupParams) error { +func (params *AzureBackupParams) AssignProperties_From_AzureBackupParams(source *v20231101s.AzureBackupParams) error { // BackupType params.BackupType = genruntime.ClonePointerToString(source.BackupType) @@ -3920,7 +3920,7 @@ func (params *AzureBackupParams) AssignProperties_From_AzureBackupParams(source } // AssignProperties_To_AzureBackupParams populates the provided destination AzureBackupParams from our AzureBackupParams -func (params *AzureBackupParams) AssignProperties_To_AzureBackupParams(destination *v20231201s.AzureBackupParams) error { +func (params *AzureBackupParams) AssignProperties_To_AzureBackupParams(destination *v20231101s.AzureBackupParams) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -4000,7 +4000,7 @@ func (params *AzureBackupParams_STATUS) PopulateFromARM(owner genruntime.Arbitra } // AssignProperties_From_AzureBackupParams_STATUS populates our AzureBackupParams_STATUS from the provided source AzureBackupParams_STATUS -func (params *AzureBackupParams_STATUS) AssignProperties_From_AzureBackupParams_STATUS(source *v20231201s.AzureBackupParams_STATUS) error { +func (params *AzureBackupParams_STATUS) AssignProperties_From_AzureBackupParams_STATUS(source *v20231101s.AzureBackupParams_STATUS) error { // BackupType params.BackupType = genruntime.ClonePointerToString(source.BackupType) @@ -4018,7 +4018,7 @@ func (params *AzureBackupParams_STATUS) AssignProperties_From_AzureBackupParams_ } // AssignProperties_To_AzureBackupParams_STATUS populates the provided destination AzureBackupParams_STATUS from our AzureBackupParams_STATUS -func (params *AzureBackupParams_STATUS) AssignProperties_To_AzureBackupParams_STATUS(destination *v20231201s.AzureBackupParams_STATUS) error { +func (params *AzureBackupParams_STATUS) AssignProperties_To_AzureBackupParams_STATUS(destination *v20231101s.AzureBackupParams_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -4098,7 +4098,7 @@ func (option *DeleteOption) PopulateFromARM(owner genruntime.ArbitraryOwnerRefer } // AssignProperties_From_DeleteOption populates our DeleteOption from the provided source DeleteOption -func (option *DeleteOption) AssignProperties_From_DeleteOption(source *v20231201s.DeleteOption) error { +func (option *DeleteOption) AssignProperties_From_DeleteOption(source *v20231101s.DeleteOption) error { // AbsoluteDeleteOption if source.AbsoluteDeleteOption != nil { @@ -4117,13 +4117,13 @@ func (option *DeleteOption) AssignProperties_From_DeleteOption(source *v20231201 } // AssignProperties_To_DeleteOption populates the provided destination DeleteOption from our DeleteOption -func (option *DeleteOption) AssignProperties_To_DeleteOption(destination *v20231201s.DeleteOption) error { +func (option *DeleteOption) AssignProperties_To_DeleteOption(destination *v20231101s.DeleteOption) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // AbsoluteDeleteOption if option.AbsoluteDeleteOption != nil { - var absoluteDeleteOption v20231201s.AbsoluteDeleteOption + var absoluteDeleteOption v20231101s.AbsoluteDeleteOption err := option.AbsoluteDeleteOption.AssignProperties_To_AbsoluteDeleteOption(&absoluteDeleteOption) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AbsoluteDeleteOption() to populate field AbsoluteDeleteOption") @@ -4198,7 +4198,7 @@ func (option *DeleteOption_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwn } // AssignProperties_From_DeleteOption_STATUS populates our DeleteOption_STATUS from the provided source DeleteOption_STATUS -func (option *DeleteOption_STATUS) AssignProperties_From_DeleteOption_STATUS(source *v20231201s.DeleteOption_STATUS) error { +func (option *DeleteOption_STATUS) AssignProperties_From_DeleteOption_STATUS(source *v20231101s.DeleteOption_STATUS) error { // AbsoluteDeleteOption if source.AbsoluteDeleteOption != nil { @@ -4217,13 +4217,13 @@ func (option *DeleteOption_STATUS) AssignProperties_From_DeleteOption_STATUS(sou } // AssignProperties_To_DeleteOption_STATUS populates the provided destination DeleteOption_STATUS from our DeleteOption_STATUS -func (option *DeleteOption_STATUS) AssignProperties_To_DeleteOption_STATUS(destination *v20231201s.DeleteOption_STATUS) error { +func (option *DeleteOption_STATUS) AssignProperties_To_DeleteOption_STATUS(destination *v20231101s.DeleteOption_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // AbsoluteDeleteOption if option.AbsoluteDeleteOption != nil { - var absoluteDeleteOption v20231201s.AbsoluteDeleteOption_STATUS + var absoluteDeleteOption v20231101s.AbsoluteDeleteOption_STATUS err := option.AbsoluteDeleteOption.AssignProperties_To_AbsoluteDeleteOption_STATUS(&absoluteDeleteOption) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_AbsoluteDeleteOption_STATUS() to populate field AbsoluteDeleteOption") @@ -4334,7 +4334,7 @@ func (context *ScheduleBasedTriggerContext) PopulateFromARM(owner genruntime.Arb } // AssignProperties_From_ScheduleBasedTriggerContext populates our ScheduleBasedTriggerContext from the provided source ScheduleBasedTriggerContext -func (context *ScheduleBasedTriggerContext) AssignProperties_From_ScheduleBasedTriggerContext(source *v20231201s.ScheduleBasedTriggerContext) error { +func (context *ScheduleBasedTriggerContext) AssignProperties_From_ScheduleBasedTriggerContext(source *v20231101s.ScheduleBasedTriggerContext) error { // ObjectType if source.ObjectType != nil { @@ -4379,7 +4379,7 @@ func (context *ScheduleBasedTriggerContext) AssignProperties_From_ScheduleBasedT } // AssignProperties_To_ScheduleBasedTriggerContext populates the provided destination ScheduleBasedTriggerContext from our ScheduleBasedTriggerContext -func (context *ScheduleBasedTriggerContext) AssignProperties_To_ScheduleBasedTriggerContext(destination *v20231201s.ScheduleBasedTriggerContext) error { +func (context *ScheduleBasedTriggerContext) AssignProperties_To_ScheduleBasedTriggerContext(destination *v20231101s.ScheduleBasedTriggerContext) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -4393,7 +4393,7 @@ func (context *ScheduleBasedTriggerContext) AssignProperties_To_ScheduleBasedTri // Schedule if context.Schedule != nil { - var schedule v20231201s.BackupSchedule + var schedule v20231101s.BackupSchedule err := context.Schedule.AssignProperties_To_BackupSchedule(&schedule) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupSchedule() to populate field Schedule") @@ -4405,11 +4405,11 @@ func (context *ScheduleBasedTriggerContext) AssignProperties_To_ScheduleBasedTri // TaggingCriteria if context.TaggingCriteria != nil { - taggingCriterionList := make([]v20231201s.TaggingCriteria, len(context.TaggingCriteria)) + taggingCriterionList := make([]v20231101s.TaggingCriteria, len(context.TaggingCriteria)) for taggingCriterionIndex, taggingCriterionItem := range context.TaggingCriteria { // Shadow the loop variable to avoid aliasing taggingCriterionItem := taggingCriterionItem - var taggingCriterion v20231201s.TaggingCriteria + var taggingCriterion v20231101s.TaggingCriteria err := taggingCriterionItem.AssignProperties_To_TaggingCriteria(&taggingCriterion) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_TaggingCriteria() to populate field TaggingCriteria") @@ -4531,7 +4531,7 @@ func (context *ScheduleBasedTriggerContext_STATUS) PopulateFromARM(owner genrunt } // AssignProperties_From_ScheduleBasedTriggerContext_STATUS populates our ScheduleBasedTriggerContext_STATUS from the provided source ScheduleBasedTriggerContext_STATUS -func (context *ScheduleBasedTriggerContext_STATUS) AssignProperties_From_ScheduleBasedTriggerContext_STATUS(source *v20231201s.ScheduleBasedTriggerContext_STATUS) error { +func (context *ScheduleBasedTriggerContext_STATUS) AssignProperties_From_ScheduleBasedTriggerContext_STATUS(source *v20231101s.ScheduleBasedTriggerContext_STATUS) error { // ObjectType if source.ObjectType != nil { @@ -4576,7 +4576,7 @@ func (context *ScheduleBasedTriggerContext_STATUS) AssignProperties_From_Schedul } // AssignProperties_To_ScheduleBasedTriggerContext_STATUS populates the provided destination ScheduleBasedTriggerContext_STATUS from our ScheduleBasedTriggerContext_STATUS -func (context *ScheduleBasedTriggerContext_STATUS) AssignProperties_To_ScheduleBasedTriggerContext_STATUS(destination *v20231201s.ScheduleBasedTriggerContext_STATUS) error { +func (context *ScheduleBasedTriggerContext_STATUS) AssignProperties_To_ScheduleBasedTriggerContext_STATUS(destination *v20231101s.ScheduleBasedTriggerContext_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -4590,7 +4590,7 @@ func (context *ScheduleBasedTriggerContext_STATUS) AssignProperties_To_ScheduleB // Schedule if context.Schedule != nil { - var schedule v20231201s.BackupSchedule_STATUS + var schedule v20231101s.BackupSchedule_STATUS err := context.Schedule.AssignProperties_To_BackupSchedule_STATUS(&schedule) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupSchedule_STATUS() to populate field Schedule") @@ -4602,11 +4602,11 @@ func (context *ScheduleBasedTriggerContext_STATUS) AssignProperties_To_ScheduleB // TaggingCriteria if context.TaggingCriteria != nil { - taggingCriterionList := make([]v20231201s.TaggingCriteria_STATUS, len(context.TaggingCriteria)) + taggingCriterionList := make([]v20231101s.TaggingCriteria_STATUS, len(context.TaggingCriteria)) for taggingCriterionIndex, taggingCriterionItem := range context.TaggingCriteria { // Shadow the loop variable to avoid aliasing taggingCriterionItem := taggingCriterionItem - var taggingCriterion v20231201s.TaggingCriteria_STATUS + var taggingCriterion v20231101s.TaggingCriteria_STATUS err := taggingCriterionItem.AssignProperties_To_TaggingCriteria_STATUS(&taggingCriterion) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_TaggingCriteria_STATUS() to populate field TaggingCriteria") @@ -4710,7 +4710,7 @@ func (setting *TargetCopySetting) PopulateFromARM(owner genruntime.ArbitraryOwne } // AssignProperties_From_TargetCopySetting populates our TargetCopySetting from the provided source TargetCopySetting -func (setting *TargetCopySetting) AssignProperties_From_TargetCopySetting(source *v20231201s.TargetCopySetting) error { +func (setting *TargetCopySetting) AssignProperties_From_TargetCopySetting(source *v20231101s.TargetCopySetting) error { // CopyAfter if source.CopyAfter != nil { @@ -4741,13 +4741,13 @@ func (setting *TargetCopySetting) AssignProperties_From_TargetCopySetting(source } // AssignProperties_To_TargetCopySetting populates the provided destination TargetCopySetting from our TargetCopySetting -func (setting *TargetCopySetting) AssignProperties_To_TargetCopySetting(destination *v20231201s.TargetCopySetting) error { +func (setting *TargetCopySetting) AssignProperties_To_TargetCopySetting(destination *v20231101s.TargetCopySetting) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // CopyAfter if setting.CopyAfter != nil { - var copyAfter v20231201s.CopyOption + var copyAfter v20231101s.CopyOption err := setting.CopyAfter.AssignProperties_To_CopyOption(©After) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CopyOption() to populate field CopyAfter") @@ -4759,7 +4759,7 @@ func (setting *TargetCopySetting) AssignProperties_To_TargetCopySetting(destinat // DataStore if setting.DataStore != nil { - var dataStore v20231201s.DataStoreInfoBase + var dataStore v20231101s.DataStoreInfoBase err := setting.DataStore.AssignProperties_To_DataStoreInfoBase(&dataStore) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DataStoreInfoBase() to populate field DataStore") @@ -4861,7 +4861,7 @@ func (setting *TargetCopySetting_STATUS) PopulateFromARM(owner genruntime.Arbitr } // AssignProperties_From_TargetCopySetting_STATUS populates our TargetCopySetting_STATUS from the provided source TargetCopySetting_STATUS -func (setting *TargetCopySetting_STATUS) AssignProperties_From_TargetCopySetting_STATUS(source *v20231201s.TargetCopySetting_STATUS) error { +func (setting *TargetCopySetting_STATUS) AssignProperties_From_TargetCopySetting_STATUS(source *v20231101s.TargetCopySetting_STATUS) error { // CopyAfter if source.CopyAfter != nil { @@ -4892,13 +4892,13 @@ func (setting *TargetCopySetting_STATUS) AssignProperties_From_TargetCopySetting } // AssignProperties_To_TargetCopySetting_STATUS populates the provided destination TargetCopySetting_STATUS from our TargetCopySetting_STATUS -func (setting *TargetCopySetting_STATUS) AssignProperties_To_TargetCopySetting_STATUS(destination *v20231201s.TargetCopySetting_STATUS) error { +func (setting *TargetCopySetting_STATUS) AssignProperties_To_TargetCopySetting_STATUS(destination *v20231101s.TargetCopySetting_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // CopyAfter if setting.CopyAfter != nil { - var copyAfter v20231201s.CopyOption_STATUS + var copyAfter v20231101s.CopyOption_STATUS err := setting.CopyAfter.AssignProperties_To_CopyOption_STATUS(©After) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CopyOption_STATUS() to populate field CopyAfter") @@ -4910,7 +4910,7 @@ func (setting *TargetCopySetting_STATUS) AssignProperties_To_TargetCopySetting_S // DataStore if setting.DataStore != nil { - var dataStore v20231201s.DataStoreInfoBase_STATUS + var dataStore v20231101s.DataStoreInfoBase_STATUS err := setting.DataStore.AssignProperties_To_DataStoreInfoBase_STATUS(&dataStore) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_DataStoreInfoBase_STATUS() to populate field DataStore") @@ -4989,7 +4989,7 @@ func (option *AbsoluteDeleteOption) PopulateFromARM(owner genruntime.ArbitraryOw } // AssignProperties_From_AbsoluteDeleteOption populates our AbsoluteDeleteOption from the provided source AbsoluteDeleteOption -func (option *AbsoluteDeleteOption) AssignProperties_From_AbsoluteDeleteOption(source *v20231201s.AbsoluteDeleteOption) error { +func (option *AbsoluteDeleteOption) AssignProperties_From_AbsoluteDeleteOption(source *v20231101s.AbsoluteDeleteOption) error { // Duration option.Duration = genruntime.ClonePointerToString(source.Duration) @@ -5007,7 +5007,7 @@ func (option *AbsoluteDeleteOption) AssignProperties_From_AbsoluteDeleteOption(s } // AssignProperties_To_AbsoluteDeleteOption populates the provided destination AbsoluteDeleteOption from our AbsoluteDeleteOption -func (option *AbsoluteDeleteOption) AssignProperties_To_AbsoluteDeleteOption(destination *v20231201s.AbsoluteDeleteOption) error { +func (option *AbsoluteDeleteOption) AssignProperties_To_AbsoluteDeleteOption(destination *v20231101s.AbsoluteDeleteOption) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -5087,7 +5087,7 @@ func (option *AbsoluteDeleteOption_STATUS) PopulateFromARM(owner genruntime.Arbi } // AssignProperties_From_AbsoluteDeleteOption_STATUS populates our AbsoluteDeleteOption_STATUS from the provided source AbsoluteDeleteOption_STATUS -func (option *AbsoluteDeleteOption_STATUS) AssignProperties_From_AbsoluteDeleteOption_STATUS(source *v20231201s.AbsoluteDeleteOption_STATUS) error { +func (option *AbsoluteDeleteOption_STATUS) AssignProperties_From_AbsoluteDeleteOption_STATUS(source *v20231101s.AbsoluteDeleteOption_STATUS) error { // Duration option.Duration = genruntime.ClonePointerToString(source.Duration) @@ -5105,7 +5105,7 @@ func (option *AbsoluteDeleteOption_STATUS) AssignProperties_From_AbsoluteDeleteO } // AssignProperties_To_AbsoluteDeleteOption_STATUS populates the provided destination AbsoluteDeleteOption_STATUS from our AbsoluteDeleteOption_STATUS -func (option *AbsoluteDeleteOption_STATUS) AssignProperties_To_AbsoluteDeleteOption_STATUS(destination *v20231201s.AbsoluteDeleteOption_STATUS) error { +func (option *AbsoluteDeleteOption_STATUS) AssignProperties_To_AbsoluteDeleteOption_STATUS(destination *v20231101s.AbsoluteDeleteOption_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -5186,7 +5186,7 @@ func (criteria *AdhocBasedTaggingCriteria) PopulateFromARM(owner genruntime.Arbi } // AssignProperties_From_AdhocBasedTaggingCriteria populates our AdhocBasedTaggingCriteria from the provided source AdhocBasedTaggingCriteria -func (criteria *AdhocBasedTaggingCriteria) AssignProperties_From_AdhocBasedTaggingCriteria(source *v20231201s.AdhocBasedTaggingCriteria) error { +func (criteria *AdhocBasedTaggingCriteria) AssignProperties_From_AdhocBasedTaggingCriteria(source *v20231101s.AdhocBasedTaggingCriteria) error { // TagInfo if source.TagInfo != nil { @@ -5205,13 +5205,13 @@ func (criteria *AdhocBasedTaggingCriteria) AssignProperties_From_AdhocBasedTaggi } // AssignProperties_To_AdhocBasedTaggingCriteria populates the provided destination AdhocBasedTaggingCriteria from our AdhocBasedTaggingCriteria -func (criteria *AdhocBasedTaggingCriteria) AssignProperties_To_AdhocBasedTaggingCriteria(destination *v20231201s.AdhocBasedTaggingCriteria) error { +func (criteria *AdhocBasedTaggingCriteria) AssignProperties_To_AdhocBasedTaggingCriteria(destination *v20231101s.AdhocBasedTaggingCriteria) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // TagInfo if criteria.TagInfo != nil { - var tagInfo v20231201s.RetentionTag + var tagInfo v20231101s.RetentionTag err := criteria.TagInfo.AssignProperties_To_RetentionTag(&tagInfo) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_RetentionTag() to populate field TagInfo") @@ -5287,7 +5287,7 @@ func (criteria *AdhocBasedTaggingCriteria_STATUS) PopulateFromARM(owner genrunti } // AssignProperties_From_AdhocBasedTaggingCriteria_STATUS populates our AdhocBasedTaggingCriteria_STATUS from the provided source AdhocBasedTaggingCriteria_STATUS -func (criteria *AdhocBasedTaggingCriteria_STATUS) AssignProperties_From_AdhocBasedTaggingCriteria_STATUS(source *v20231201s.AdhocBasedTaggingCriteria_STATUS) error { +func (criteria *AdhocBasedTaggingCriteria_STATUS) AssignProperties_From_AdhocBasedTaggingCriteria_STATUS(source *v20231101s.AdhocBasedTaggingCriteria_STATUS) error { // TagInfo if source.TagInfo != nil { @@ -5306,13 +5306,13 @@ func (criteria *AdhocBasedTaggingCriteria_STATUS) AssignProperties_From_AdhocBas } // AssignProperties_To_AdhocBasedTaggingCriteria_STATUS populates the provided destination AdhocBasedTaggingCriteria_STATUS from our AdhocBasedTaggingCriteria_STATUS -func (criteria *AdhocBasedTaggingCriteria_STATUS) AssignProperties_To_AdhocBasedTaggingCriteria_STATUS(destination *v20231201s.AdhocBasedTaggingCriteria_STATUS) error { +func (criteria *AdhocBasedTaggingCriteria_STATUS) AssignProperties_To_AdhocBasedTaggingCriteria_STATUS(destination *v20231101s.AdhocBasedTaggingCriteria_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // TagInfo if criteria.TagInfo != nil { - var tagInfo v20231201s.RetentionTag_STATUS + var tagInfo v20231101s.RetentionTag_STATUS err := criteria.TagInfo.AssignProperties_To_RetentionTag_STATUS(&tagInfo) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_RetentionTag_STATUS() to populate field TagInfo") @@ -5393,7 +5393,7 @@ func (schedule *BackupSchedule) PopulateFromARM(owner genruntime.ArbitraryOwnerR } // AssignProperties_From_BackupSchedule populates our BackupSchedule from the provided source BackupSchedule -func (schedule *BackupSchedule) AssignProperties_From_BackupSchedule(source *v20231201s.BackupSchedule) error { +func (schedule *BackupSchedule) AssignProperties_From_BackupSchedule(source *v20231101s.BackupSchedule) error { // RepeatingTimeIntervals schedule.RepeatingTimeIntervals = genruntime.CloneSliceOfString(source.RepeatingTimeIntervals) @@ -5406,7 +5406,7 @@ func (schedule *BackupSchedule) AssignProperties_From_BackupSchedule(source *v20 } // AssignProperties_To_BackupSchedule populates the provided destination BackupSchedule from our BackupSchedule -func (schedule *BackupSchedule) AssignProperties_To_BackupSchedule(destination *v20231201s.BackupSchedule) error { +func (schedule *BackupSchedule) AssignProperties_To_BackupSchedule(destination *v20231101s.BackupSchedule) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -5479,7 +5479,7 @@ func (schedule *BackupSchedule_STATUS) PopulateFromARM(owner genruntime.Arbitrar } // AssignProperties_From_BackupSchedule_STATUS populates our BackupSchedule_STATUS from the provided source BackupSchedule_STATUS -func (schedule *BackupSchedule_STATUS) AssignProperties_From_BackupSchedule_STATUS(source *v20231201s.BackupSchedule_STATUS) error { +func (schedule *BackupSchedule_STATUS) AssignProperties_From_BackupSchedule_STATUS(source *v20231101s.BackupSchedule_STATUS) error { // RepeatingTimeIntervals schedule.RepeatingTimeIntervals = genruntime.CloneSliceOfString(source.RepeatingTimeIntervals) @@ -5492,7 +5492,7 @@ func (schedule *BackupSchedule_STATUS) AssignProperties_From_BackupSchedule_STAT } // AssignProperties_To_BackupSchedule_STATUS populates the provided destination BackupSchedule_STATUS from our BackupSchedule_STATUS -func (schedule *BackupSchedule_STATUS) AssignProperties_To_BackupSchedule_STATUS(destination *v20231201s.BackupSchedule_STATUS) error { +func (schedule *BackupSchedule_STATUS) AssignProperties_To_BackupSchedule_STATUS(destination *v20231101s.BackupSchedule_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -5615,7 +5615,7 @@ func (option *CopyOption) PopulateFromARM(owner genruntime.ArbitraryOwnerReferen } // AssignProperties_From_CopyOption populates our CopyOption from the provided source CopyOption -func (option *CopyOption) AssignProperties_From_CopyOption(source *v20231201s.CopyOption) error { +func (option *CopyOption) AssignProperties_From_CopyOption(source *v20231101s.CopyOption) error { // CopyOnExpiry if source.CopyOnExpiry != nil { @@ -5658,13 +5658,13 @@ func (option *CopyOption) AssignProperties_From_CopyOption(source *v20231201s.Co } // AssignProperties_To_CopyOption populates the provided destination CopyOption from our CopyOption -func (option *CopyOption) AssignProperties_To_CopyOption(destination *v20231201s.CopyOption) error { +func (option *CopyOption) AssignProperties_To_CopyOption(destination *v20231101s.CopyOption) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // CopyOnExpiry if option.CopyOnExpiry != nil { - var copyOnExpiry v20231201s.CopyOnExpiryOption + var copyOnExpiry v20231101s.CopyOnExpiryOption err := option.CopyOnExpiry.AssignProperties_To_CopyOnExpiryOption(©OnExpiry) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CopyOnExpiryOption() to populate field CopyOnExpiry") @@ -5676,7 +5676,7 @@ func (option *CopyOption) AssignProperties_To_CopyOption(destination *v20231201s // CustomCopy if option.CustomCopy != nil { - var customCopy v20231201s.CustomCopyOption + var customCopy v20231101s.CustomCopyOption err := option.CustomCopy.AssignProperties_To_CustomCopyOption(&customCopy) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CustomCopyOption() to populate field CustomCopy") @@ -5688,7 +5688,7 @@ func (option *CopyOption) AssignProperties_To_CopyOption(destination *v20231201s // ImmediateCopy if option.ImmediateCopy != nil { - var immediateCopy v20231201s.ImmediateCopyOption + var immediateCopy v20231101s.ImmediateCopyOption err := option.ImmediateCopy.AssignProperties_To_ImmediateCopyOption(&immediateCopy) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ImmediateCopyOption() to populate field ImmediateCopy") @@ -5815,7 +5815,7 @@ func (option *CopyOption_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwner } // AssignProperties_From_CopyOption_STATUS populates our CopyOption_STATUS from the provided source CopyOption_STATUS -func (option *CopyOption_STATUS) AssignProperties_From_CopyOption_STATUS(source *v20231201s.CopyOption_STATUS) error { +func (option *CopyOption_STATUS) AssignProperties_From_CopyOption_STATUS(source *v20231101s.CopyOption_STATUS) error { // CopyOnExpiry if source.CopyOnExpiry != nil { @@ -5858,13 +5858,13 @@ func (option *CopyOption_STATUS) AssignProperties_From_CopyOption_STATUS(source } // AssignProperties_To_CopyOption_STATUS populates the provided destination CopyOption_STATUS from our CopyOption_STATUS -func (option *CopyOption_STATUS) AssignProperties_To_CopyOption_STATUS(destination *v20231201s.CopyOption_STATUS) error { +func (option *CopyOption_STATUS) AssignProperties_To_CopyOption_STATUS(destination *v20231101s.CopyOption_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // CopyOnExpiry if option.CopyOnExpiry != nil { - var copyOnExpiry v20231201s.CopyOnExpiryOption_STATUS + var copyOnExpiry v20231101s.CopyOnExpiryOption_STATUS err := option.CopyOnExpiry.AssignProperties_To_CopyOnExpiryOption_STATUS(©OnExpiry) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CopyOnExpiryOption_STATUS() to populate field CopyOnExpiry") @@ -5876,7 +5876,7 @@ func (option *CopyOption_STATUS) AssignProperties_To_CopyOption_STATUS(destinati // CustomCopy if option.CustomCopy != nil { - var customCopy v20231201s.CustomCopyOption_STATUS + var customCopy v20231101s.CustomCopyOption_STATUS err := option.CustomCopy.AssignProperties_To_CustomCopyOption_STATUS(&customCopy) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_CustomCopyOption_STATUS() to populate field CustomCopy") @@ -5888,7 +5888,7 @@ func (option *CopyOption_STATUS) AssignProperties_To_CopyOption_STATUS(destinati // ImmediateCopy if option.ImmediateCopy != nil { - var immediateCopy v20231201s.ImmediateCopyOption_STATUS + var immediateCopy v20231101s.ImmediateCopyOption_STATUS err := option.ImmediateCopy.AssignProperties_To_ImmediateCopyOption_STATUS(&immediateCopy) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ImmediateCopyOption_STATUS() to populate field ImmediateCopy") @@ -6019,7 +6019,7 @@ func (criteria *TaggingCriteria) PopulateFromARM(owner genruntime.ArbitraryOwner } // AssignProperties_From_TaggingCriteria populates our TaggingCriteria from the provided source TaggingCriteria -func (criteria *TaggingCriteria) AssignProperties_From_TaggingCriteria(source *v20231201s.TaggingCriteria) error { +func (criteria *TaggingCriteria) AssignProperties_From_TaggingCriteria(source *v20231101s.TaggingCriteria) error { // Criteria if source.Criteria != nil { @@ -6067,17 +6067,17 @@ func (criteria *TaggingCriteria) AssignProperties_From_TaggingCriteria(source *v } // AssignProperties_To_TaggingCriteria populates the provided destination TaggingCriteria from our TaggingCriteria -func (criteria *TaggingCriteria) AssignProperties_To_TaggingCriteria(destination *v20231201s.TaggingCriteria) error { +func (criteria *TaggingCriteria) AssignProperties_To_TaggingCriteria(destination *v20231101s.TaggingCriteria) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // Criteria if criteria.Criteria != nil { - criterionList := make([]v20231201s.BackupCriteria, len(criteria.Criteria)) + criterionList := make([]v20231101s.BackupCriteria, len(criteria.Criteria)) for criterionIndex, criterionItem := range criteria.Criteria { // Shadow the loop variable to avoid aliasing criterionItem := criterionItem - var criterion v20231201s.BackupCriteria + var criterion v20231101s.BackupCriteria err := criterionItem.AssignProperties_To_BackupCriteria(&criterion) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupCriteria() to populate field Criteria") @@ -6099,7 +6099,7 @@ func (criteria *TaggingCriteria) AssignProperties_To_TaggingCriteria(destination // TagInfo if criteria.TagInfo != nil { - var tagInfo v20231201s.RetentionTag + var tagInfo v20231101s.RetentionTag err := criteria.TagInfo.AssignProperties_To_RetentionTag(&tagInfo) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_RetentionTag() to populate field TagInfo") @@ -6238,7 +6238,7 @@ func (criteria *TaggingCriteria_STATUS) PopulateFromARM(owner genruntime.Arbitra } // AssignProperties_From_TaggingCriteria_STATUS populates our TaggingCriteria_STATUS from the provided source TaggingCriteria_STATUS -func (criteria *TaggingCriteria_STATUS) AssignProperties_From_TaggingCriteria_STATUS(source *v20231201s.TaggingCriteria_STATUS) error { +func (criteria *TaggingCriteria_STATUS) AssignProperties_From_TaggingCriteria_STATUS(source *v20231101s.TaggingCriteria_STATUS) error { // Criteria if source.Criteria != nil { @@ -6286,17 +6286,17 @@ func (criteria *TaggingCriteria_STATUS) AssignProperties_From_TaggingCriteria_ST } // AssignProperties_To_TaggingCriteria_STATUS populates the provided destination TaggingCriteria_STATUS from our TaggingCriteria_STATUS -func (criteria *TaggingCriteria_STATUS) AssignProperties_To_TaggingCriteria_STATUS(destination *v20231201s.TaggingCriteria_STATUS) error { +func (criteria *TaggingCriteria_STATUS) AssignProperties_To_TaggingCriteria_STATUS(destination *v20231101s.TaggingCriteria_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // Criteria if criteria.Criteria != nil { - criterionList := make([]v20231201s.BackupCriteria_STATUS, len(criteria.Criteria)) + criterionList := make([]v20231101s.BackupCriteria_STATUS, len(criteria.Criteria)) for criterionIndex, criterionItem := range criteria.Criteria { // Shadow the loop variable to avoid aliasing criterionItem := criterionItem - var criterion v20231201s.BackupCriteria_STATUS + var criterion v20231101s.BackupCriteria_STATUS err := criterionItem.AssignProperties_To_BackupCriteria_STATUS(&criterion) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_BackupCriteria_STATUS() to populate field Criteria") @@ -6318,7 +6318,7 @@ func (criteria *TaggingCriteria_STATUS) AssignProperties_To_TaggingCriteria_STAT // TagInfo if criteria.TagInfo != nil { - var tagInfo v20231201s.RetentionTag_STATUS + var tagInfo v20231101s.RetentionTag_STATUS err := criteria.TagInfo.AssignProperties_To_RetentionTag_STATUS(&tagInfo) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_RetentionTag_STATUS() to populate field TagInfo") @@ -6396,7 +6396,7 @@ func (criteria *BackupCriteria) PopulateFromARM(owner genruntime.ArbitraryOwnerR } // AssignProperties_From_BackupCriteria populates our BackupCriteria from the provided source BackupCriteria -func (criteria *BackupCriteria) AssignProperties_From_BackupCriteria(source *v20231201s.BackupCriteria) error { +func (criteria *BackupCriteria) AssignProperties_From_BackupCriteria(source *v20231101s.BackupCriteria) error { // ScheduleBasedBackupCriteria if source.ScheduleBasedBackupCriteria != nil { @@ -6415,13 +6415,13 @@ func (criteria *BackupCriteria) AssignProperties_From_BackupCriteria(source *v20 } // AssignProperties_To_BackupCriteria populates the provided destination BackupCriteria from our BackupCriteria -func (criteria *BackupCriteria) AssignProperties_To_BackupCriteria(destination *v20231201s.BackupCriteria) error { +func (criteria *BackupCriteria) AssignProperties_To_BackupCriteria(destination *v20231101s.BackupCriteria) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // ScheduleBasedBackupCriteria if criteria.ScheduleBasedBackupCriteria != nil { - var scheduleBasedBackupCriterion v20231201s.ScheduleBasedBackupCriteria + var scheduleBasedBackupCriterion v20231101s.ScheduleBasedBackupCriteria err := criteria.ScheduleBasedBackupCriteria.AssignProperties_To_ScheduleBasedBackupCriteria(&scheduleBasedBackupCriterion) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ScheduleBasedBackupCriteria() to populate field ScheduleBasedBackupCriteria") @@ -6496,7 +6496,7 @@ func (criteria *BackupCriteria_STATUS) PopulateFromARM(owner genruntime.Arbitrar } // AssignProperties_From_BackupCriteria_STATUS populates our BackupCriteria_STATUS from the provided source BackupCriteria_STATUS -func (criteria *BackupCriteria_STATUS) AssignProperties_From_BackupCriteria_STATUS(source *v20231201s.BackupCriteria_STATUS) error { +func (criteria *BackupCriteria_STATUS) AssignProperties_From_BackupCriteria_STATUS(source *v20231101s.BackupCriteria_STATUS) error { // ScheduleBasedBackupCriteria if source.ScheduleBasedBackupCriteria != nil { @@ -6515,13 +6515,13 @@ func (criteria *BackupCriteria_STATUS) AssignProperties_From_BackupCriteria_STAT } // AssignProperties_To_BackupCriteria_STATUS populates the provided destination BackupCriteria_STATUS from our BackupCriteria_STATUS -func (criteria *BackupCriteria_STATUS) AssignProperties_To_BackupCriteria_STATUS(destination *v20231201s.BackupCriteria_STATUS) error { +func (criteria *BackupCriteria_STATUS) AssignProperties_To_BackupCriteria_STATUS(destination *v20231101s.BackupCriteria_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() // ScheduleBasedBackupCriteria if criteria.ScheduleBasedBackupCriteria != nil { - var scheduleBasedBackupCriterion v20231201s.ScheduleBasedBackupCriteria_STATUS + var scheduleBasedBackupCriterion v20231101s.ScheduleBasedBackupCriteria_STATUS err := criteria.ScheduleBasedBackupCriteria.AssignProperties_To_ScheduleBasedBackupCriteria_STATUS(&scheduleBasedBackupCriterion) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_ScheduleBasedBackupCriteria_STATUS() to populate field ScheduleBasedBackupCriteria") @@ -6584,7 +6584,7 @@ func (option *CopyOnExpiryOption) PopulateFromARM(owner genruntime.ArbitraryOwne } // AssignProperties_From_CopyOnExpiryOption populates our CopyOnExpiryOption from the provided source CopyOnExpiryOption -func (option *CopyOnExpiryOption) AssignProperties_From_CopyOnExpiryOption(source *v20231201s.CopyOnExpiryOption) error { +func (option *CopyOnExpiryOption) AssignProperties_From_CopyOnExpiryOption(source *v20231101s.CopyOnExpiryOption) error { // ObjectType if source.ObjectType != nil { @@ -6599,7 +6599,7 @@ func (option *CopyOnExpiryOption) AssignProperties_From_CopyOnExpiryOption(sourc } // AssignProperties_To_CopyOnExpiryOption populates the provided destination CopyOnExpiryOption from our CopyOnExpiryOption -func (option *CopyOnExpiryOption) AssignProperties_To_CopyOnExpiryOption(destination *v20231201s.CopyOnExpiryOption) error { +func (option *CopyOnExpiryOption) AssignProperties_To_CopyOnExpiryOption(destination *v20231101s.CopyOnExpiryOption) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -6664,7 +6664,7 @@ func (option *CopyOnExpiryOption_STATUS) PopulateFromARM(owner genruntime.Arbitr } // AssignProperties_From_CopyOnExpiryOption_STATUS populates our CopyOnExpiryOption_STATUS from the provided source CopyOnExpiryOption_STATUS -func (option *CopyOnExpiryOption_STATUS) AssignProperties_From_CopyOnExpiryOption_STATUS(source *v20231201s.CopyOnExpiryOption_STATUS) error { +func (option *CopyOnExpiryOption_STATUS) AssignProperties_From_CopyOnExpiryOption_STATUS(source *v20231101s.CopyOnExpiryOption_STATUS) error { // ObjectType if source.ObjectType != nil { @@ -6679,7 +6679,7 @@ func (option *CopyOnExpiryOption_STATUS) AssignProperties_From_CopyOnExpiryOptio } // AssignProperties_To_CopyOnExpiryOption_STATUS populates the provided destination CopyOnExpiryOption_STATUS from our CopyOnExpiryOption_STATUS -func (option *CopyOnExpiryOption_STATUS) AssignProperties_To_CopyOnExpiryOption_STATUS(destination *v20231201s.CopyOnExpiryOption_STATUS) error { +func (option *CopyOnExpiryOption_STATUS) AssignProperties_To_CopyOnExpiryOption_STATUS(destination *v20231101s.CopyOnExpiryOption_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -6759,7 +6759,7 @@ func (option *CustomCopyOption) PopulateFromARM(owner genruntime.ArbitraryOwnerR } // AssignProperties_From_CustomCopyOption populates our CustomCopyOption from the provided source CustomCopyOption -func (option *CustomCopyOption) AssignProperties_From_CustomCopyOption(source *v20231201s.CustomCopyOption) error { +func (option *CustomCopyOption) AssignProperties_From_CustomCopyOption(source *v20231101s.CustomCopyOption) error { // Duration option.Duration = genruntime.ClonePointerToString(source.Duration) @@ -6777,7 +6777,7 @@ func (option *CustomCopyOption) AssignProperties_From_CustomCopyOption(source *v } // AssignProperties_To_CustomCopyOption populates the provided destination CustomCopyOption from our CustomCopyOption -func (option *CustomCopyOption) AssignProperties_To_CustomCopyOption(destination *v20231201s.CustomCopyOption) error { +func (option *CustomCopyOption) AssignProperties_To_CustomCopyOption(destination *v20231101s.CustomCopyOption) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -6857,7 +6857,7 @@ func (option *CustomCopyOption_STATUS) PopulateFromARM(owner genruntime.Arbitrar } // AssignProperties_From_CustomCopyOption_STATUS populates our CustomCopyOption_STATUS from the provided source CustomCopyOption_STATUS -func (option *CustomCopyOption_STATUS) AssignProperties_From_CustomCopyOption_STATUS(source *v20231201s.CustomCopyOption_STATUS) error { +func (option *CustomCopyOption_STATUS) AssignProperties_From_CustomCopyOption_STATUS(source *v20231101s.CustomCopyOption_STATUS) error { // Duration option.Duration = genruntime.ClonePointerToString(source.Duration) @@ -6875,7 +6875,7 @@ func (option *CustomCopyOption_STATUS) AssignProperties_From_CustomCopyOption_ST } // AssignProperties_To_CustomCopyOption_STATUS populates the provided destination CustomCopyOption_STATUS from our CustomCopyOption_STATUS -func (option *CustomCopyOption_STATUS) AssignProperties_To_CustomCopyOption_STATUS(destination *v20231201s.CustomCopyOption_STATUS) error { +func (option *CustomCopyOption_STATUS) AssignProperties_To_CustomCopyOption_STATUS(destination *v20231101s.CustomCopyOption_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -6943,7 +6943,7 @@ func (option *ImmediateCopyOption) PopulateFromARM(owner genruntime.ArbitraryOwn } // AssignProperties_From_ImmediateCopyOption populates our ImmediateCopyOption from the provided source ImmediateCopyOption -func (option *ImmediateCopyOption) AssignProperties_From_ImmediateCopyOption(source *v20231201s.ImmediateCopyOption) error { +func (option *ImmediateCopyOption) AssignProperties_From_ImmediateCopyOption(source *v20231101s.ImmediateCopyOption) error { // ObjectType if source.ObjectType != nil { @@ -6958,7 +6958,7 @@ func (option *ImmediateCopyOption) AssignProperties_From_ImmediateCopyOption(sou } // AssignProperties_To_ImmediateCopyOption populates the provided destination ImmediateCopyOption from our ImmediateCopyOption -func (option *ImmediateCopyOption) AssignProperties_To_ImmediateCopyOption(destination *v20231201s.ImmediateCopyOption) error { +func (option *ImmediateCopyOption) AssignProperties_To_ImmediateCopyOption(destination *v20231101s.ImmediateCopyOption) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -7023,7 +7023,7 @@ func (option *ImmediateCopyOption_STATUS) PopulateFromARM(owner genruntime.Arbit } // AssignProperties_From_ImmediateCopyOption_STATUS populates our ImmediateCopyOption_STATUS from the provided source ImmediateCopyOption_STATUS -func (option *ImmediateCopyOption_STATUS) AssignProperties_From_ImmediateCopyOption_STATUS(source *v20231201s.ImmediateCopyOption_STATUS) error { +func (option *ImmediateCopyOption_STATUS) AssignProperties_From_ImmediateCopyOption_STATUS(source *v20231101s.ImmediateCopyOption_STATUS) error { // ObjectType if source.ObjectType != nil { @@ -7038,7 +7038,7 @@ func (option *ImmediateCopyOption_STATUS) AssignProperties_From_ImmediateCopyOpt } // AssignProperties_To_ImmediateCopyOption_STATUS populates the provided destination ImmediateCopyOption_STATUS from our ImmediateCopyOption_STATUS -func (option *ImmediateCopyOption_STATUS) AssignProperties_To_ImmediateCopyOption_STATUS(destination *v20231201s.ImmediateCopyOption_STATUS) error { +func (option *ImmediateCopyOption_STATUS) AssignProperties_To_ImmediateCopyOption_STATUS(destination *v20231101s.ImmediateCopyOption_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -7108,7 +7108,7 @@ func (retentionTag *RetentionTag) PopulateFromARM(owner genruntime.ArbitraryOwne } // AssignProperties_From_RetentionTag populates our RetentionTag from the provided source RetentionTag -func (retentionTag *RetentionTag) AssignProperties_From_RetentionTag(source *v20231201s.RetentionTag) error { +func (retentionTag *RetentionTag) AssignProperties_From_RetentionTag(source *v20231101s.RetentionTag) error { // TagName retentionTag.TagName = genruntime.ClonePointerToString(source.TagName) @@ -7118,7 +7118,7 @@ func (retentionTag *RetentionTag) AssignProperties_From_RetentionTag(source *v20 } // AssignProperties_To_RetentionTag populates the provided destination RetentionTag from our RetentionTag -func (retentionTag *RetentionTag) AssignProperties_To_RetentionTag(destination *v20231201s.RetentionTag) error { +func (retentionTag *RetentionTag) AssignProperties_To_RetentionTag(destination *v20231101s.RetentionTag) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -7195,7 +7195,7 @@ func (retentionTag *RetentionTag_STATUS) PopulateFromARM(owner genruntime.Arbitr } // AssignProperties_From_RetentionTag_STATUS populates our RetentionTag_STATUS from the provided source RetentionTag_STATUS -func (retentionTag *RetentionTag_STATUS) AssignProperties_From_RetentionTag_STATUS(source *v20231201s.RetentionTag_STATUS) error { +func (retentionTag *RetentionTag_STATUS) AssignProperties_From_RetentionTag_STATUS(source *v20231101s.RetentionTag_STATUS) error { // ETag retentionTag.ETag = genruntime.ClonePointerToString(source.ETag) @@ -7211,7 +7211,7 @@ func (retentionTag *RetentionTag_STATUS) AssignProperties_From_RetentionTag_STAT } // AssignProperties_To_RetentionTag_STATUS populates the provided destination RetentionTag_STATUS from our RetentionTag_STATUS -func (retentionTag *RetentionTag_STATUS) AssignProperties_To_RetentionTag_STATUS(destination *v20231201s.RetentionTag_STATUS) error { +func (retentionTag *RetentionTag_STATUS) AssignProperties_To_RetentionTag_STATUS(destination *v20231101s.RetentionTag_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -7365,7 +7365,7 @@ func (criteria *ScheduleBasedBackupCriteria) PopulateFromARM(owner genruntime.Ar } // AssignProperties_From_ScheduleBasedBackupCriteria populates our ScheduleBasedBackupCriteria from the provided source ScheduleBasedBackupCriteria -func (criteria *ScheduleBasedBackupCriteria) AssignProperties_From_ScheduleBasedBackupCriteria(source *v20231201s.ScheduleBasedBackupCriteria) error { +func (criteria *ScheduleBasedBackupCriteria) AssignProperties_From_ScheduleBasedBackupCriteria(source *v20231101s.ScheduleBasedBackupCriteria) error { // AbsoluteCriteria if source.AbsoluteCriteria != nil { @@ -7453,7 +7453,7 @@ func (criteria *ScheduleBasedBackupCriteria) AssignProperties_From_ScheduleBased } // AssignProperties_To_ScheduleBasedBackupCriteria populates the provided destination ScheduleBasedBackupCriteria from our ScheduleBasedBackupCriteria -func (criteria *ScheduleBasedBackupCriteria) AssignProperties_To_ScheduleBasedBackupCriteria(destination *v20231201s.ScheduleBasedBackupCriteria) error { +func (criteria *ScheduleBasedBackupCriteria) AssignProperties_To_ScheduleBasedBackupCriteria(destination *v20231101s.ScheduleBasedBackupCriteria) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -7472,11 +7472,11 @@ func (criteria *ScheduleBasedBackupCriteria) AssignProperties_To_ScheduleBasedBa // DaysOfMonth if criteria.DaysOfMonth != nil { - daysOfMonthList := make([]v20231201s.Day, len(criteria.DaysOfMonth)) + daysOfMonthList := make([]v20231101s.Day, len(criteria.DaysOfMonth)) for daysOfMonthIndex, daysOfMonthItem := range criteria.DaysOfMonth { // Shadow the loop variable to avoid aliasing daysOfMonthItem := daysOfMonthItem - var daysOfMonth v20231201s.Day + var daysOfMonth v20231101s.Day err := daysOfMonthItem.AssignProperties_To_Day(&daysOfMonth) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_Day() to populate field DaysOfMonth") @@ -7722,7 +7722,7 @@ func (criteria *ScheduleBasedBackupCriteria_STATUS) PopulateFromARM(owner genrun } // AssignProperties_From_ScheduleBasedBackupCriteria_STATUS populates our ScheduleBasedBackupCriteria_STATUS from the provided source ScheduleBasedBackupCriteria_STATUS -func (criteria *ScheduleBasedBackupCriteria_STATUS) AssignProperties_From_ScheduleBasedBackupCriteria_STATUS(source *v20231201s.ScheduleBasedBackupCriteria_STATUS) error { +func (criteria *ScheduleBasedBackupCriteria_STATUS) AssignProperties_From_ScheduleBasedBackupCriteria_STATUS(source *v20231101s.ScheduleBasedBackupCriteria_STATUS) error { // AbsoluteCriteria if source.AbsoluteCriteria != nil { @@ -7810,7 +7810,7 @@ func (criteria *ScheduleBasedBackupCriteria_STATUS) AssignProperties_From_Schedu } // AssignProperties_To_ScheduleBasedBackupCriteria_STATUS populates the provided destination ScheduleBasedBackupCriteria_STATUS from our ScheduleBasedBackupCriteria_STATUS -func (criteria *ScheduleBasedBackupCriteria_STATUS) AssignProperties_To_ScheduleBasedBackupCriteria_STATUS(destination *v20231201s.ScheduleBasedBackupCriteria_STATUS) error { +func (criteria *ScheduleBasedBackupCriteria_STATUS) AssignProperties_To_ScheduleBasedBackupCriteria_STATUS(destination *v20231101s.ScheduleBasedBackupCriteria_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -7829,11 +7829,11 @@ func (criteria *ScheduleBasedBackupCriteria_STATUS) AssignProperties_To_Schedule // DaysOfMonth if criteria.DaysOfMonth != nil { - daysOfMonthList := make([]v20231201s.Day_STATUS, len(criteria.DaysOfMonth)) + daysOfMonthList := make([]v20231101s.Day_STATUS, len(criteria.DaysOfMonth)) for daysOfMonthIndex, daysOfMonthItem := range criteria.DaysOfMonth { // Shadow the loop variable to avoid aliasing daysOfMonthItem := daysOfMonthItem - var daysOfMonth v20231201s.Day_STATUS + var daysOfMonth v20231101s.Day_STATUS err := daysOfMonthItem.AssignProperties_To_Day_STATUS(&daysOfMonth) if err != nil { return errors.Wrap(err, "calling AssignProperties_To_Day_STATUS() to populate field DaysOfMonth") @@ -7967,7 +7967,7 @@ func (day *Day) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, armInp } // AssignProperties_From_Day populates our Day from the provided source Day -func (day *Day) AssignProperties_From_Day(source *v20231201s.Day) error { +func (day *Day) AssignProperties_From_Day(source *v20231101s.Day) error { // Date day.Date = genruntime.ClonePointerToInt(source.Date) @@ -7985,7 +7985,7 @@ func (day *Day) AssignProperties_From_Day(source *v20231201s.Day) error { } // AssignProperties_To_Day populates the provided destination Day from our Day -func (day *Day) AssignProperties_To_Day(destination *v20231201s.Day) error { +func (day *Day) AssignProperties_To_Day(destination *v20231101s.Day) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() @@ -8069,7 +8069,7 @@ func (day *Day_STATUS) PopulateFromARM(owner genruntime.ArbitraryOwnerReference, } // AssignProperties_From_Day_STATUS populates our Day_STATUS from the provided source Day_STATUS -func (day *Day_STATUS) AssignProperties_From_Day_STATUS(source *v20231201s.Day_STATUS) error { +func (day *Day_STATUS) AssignProperties_From_Day_STATUS(source *v20231101s.Day_STATUS) error { // Date day.Date = genruntime.ClonePointerToInt(source.Date) @@ -8087,7 +8087,7 @@ func (day *Day_STATUS) AssignProperties_From_Day_STATUS(source *v20231201s.Day_S } // AssignProperties_To_Day_STATUS populates the provided destination Day_STATUS from our Day_STATUS -func (day *Day_STATUS) AssignProperties_To_Day_STATUS(destination *v20231201s.Day_STATUS) error { +func (day *Day_STATUS) AssignProperties_To_Day_STATUS(destination *v20231101s.Day_STATUS) error { // Create a new property bag propertyBag := genruntime.NewPropertyBag() diff --git a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_types_gen_test.go b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_types_gen_test.go similarity index 98% rename from v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_types_gen_test.go rename to v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_types_gen_test.go index eb6ef581164..c3fe0c2d1a5 100644 --- a/v2/api/dataprotection/v1api20231201/backup_vaults_backup_policy_types_gen_test.go +++ b/v2/api/dataprotection/v1api20231101/backup_vaults_backup_policy_types_gen_test.go @@ -1,11 +1,11 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -package v1api20231201 +package v1api20231101 import ( "encoding/json" - v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" + v20231101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage" "github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp/cmpopts" "github.com/kr/pretty" @@ -36,7 +36,7 @@ func RunResourceConversionTestForBackupVaultsBackupPolicy(subject BackupVaultsBa copied := subject.DeepCopy() // Convert to our hub version - var hub v20231201s.BackupVaultsBackupPolicy + var hub v20231101s.BackupVaultsBackupPolicy err := copied.ConvertTo(&hub) if err != nil { return err.Error() @@ -78,7 +78,7 @@ func RunPropertyAssignmentTestForBackupVaultsBackupPolicy(subject BackupVaultsBa copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaultsBackupPolicy + var other v20231101s.BackupVaultsBackupPolicy err := copied.AssignProperties_To_BackupVaultsBackupPolicy(&other) if err != nil { return err.Error() @@ -182,7 +182,7 @@ func RunPropertyAssignmentTestForBackupVaults_BackupPolicy_Spec(subject BackupVa copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaults_BackupPolicy_Spec + var other v20231101s.BackupVaults_BackupPolicy_Spec err := copied.AssignProperties_To_BackupVaults_BackupPolicy_Spec(&other) if err != nil { return err.Error() @@ -299,7 +299,7 @@ func RunPropertyAssignmentTestForBackupVaults_BackupPolicy_STATUS(subject Backup copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupVaults_BackupPolicy_STATUS + var other v20231101s.BackupVaults_BackupPolicy_STATUS err := copied.AssignProperties_To_BackupVaults_BackupPolicy_STATUS(&other) if err != nil { return err.Error() @@ -419,7 +419,7 @@ func RunPropertyAssignmentTestForBaseBackupPolicy(subject BaseBackupPolicy) stri copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BaseBackupPolicy + var other v20231101s.BaseBackupPolicy err := copied.AssignProperties_To_BaseBackupPolicy(&other) if err != nil { return err.Error() @@ -529,7 +529,7 @@ func RunPropertyAssignmentTestForBaseBackupPolicy_STATUS(subject BaseBackupPolic copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BaseBackupPolicy_STATUS + var other v20231101s.BaseBackupPolicy_STATUS err := copied.AssignProperties_To_BaseBackupPolicy_STATUS(&other) if err != nil { return err.Error() @@ -640,7 +640,7 @@ func RunPropertyAssignmentTestForBackupPolicy(subject BackupPolicy) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupPolicy + var other v20231101s.BackupPolicy err := copied.AssignProperties_To_BackupPolicy(&other) if err != nil { return err.Error() @@ -757,7 +757,7 @@ func RunPropertyAssignmentTestForBackupPolicy_STATUS(subject BackupPolicy_STATUS copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupPolicy_STATUS + var other v20231101s.BackupPolicy_STATUS err := copied.AssignProperties_To_BackupPolicy_STATUS(&other) if err != nil { return err.Error() @@ -875,7 +875,7 @@ func RunPropertyAssignmentTestForBasePolicyRule(subject BasePolicyRule) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BasePolicyRule + var other v20231101s.BasePolicyRule err := copied.AssignProperties_To_BasePolicyRule(&other) if err != nil { return err.Error() @@ -988,7 +988,7 @@ func RunPropertyAssignmentTestForBasePolicyRule_STATUS(subject BasePolicyRule_ST copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BasePolicyRule_STATUS + var other v20231101s.BasePolicyRule_STATUS err := copied.AssignProperties_To_BasePolicyRule_STATUS(&other) if err != nil { return err.Error() @@ -1102,7 +1102,7 @@ func RunPropertyAssignmentTestForAzureBackupRule(subject AzureBackupRule) string copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureBackupRule + var other v20231101s.AzureBackupRule err := copied.AssignProperties_To_AzureBackupRule(&other) if err != nil { return err.Error() @@ -1221,7 +1221,7 @@ func RunPropertyAssignmentTestForAzureBackupRule_STATUS(subject AzureBackupRule_ copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureBackupRule_STATUS + var other v20231101s.AzureBackupRule_STATUS err := copied.AssignProperties_To_AzureBackupRule_STATUS(&other) if err != nil { return err.Error() @@ -1341,7 +1341,7 @@ func RunPropertyAssignmentTestForAzureRetentionRule(subject AzureRetentionRule) copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureRetentionRule + var other v20231101s.AzureRetentionRule err := copied.AssignProperties_To_AzureRetentionRule(&other) if err != nil { return err.Error() @@ -1459,7 +1459,7 @@ func RunPropertyAssignmentTestForAzureRetentionRule_STATUS(subject AzureRetentio copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureRetentionRule_STATUS + var other v20231101s.AzureRetentionRule_STATUS err := copied.AssignProperties_To_AzureRetentionRule_STATUS(&other) if err != nil { return err.Error() @@ -1578,7 +1578,7 @@ func RunPropertyAssignmentTestForBackupParameters(subject BackupParameters) stri copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupParameters + var other v20231101s.BackupParameters err := copied.AssignProperties_To_BackupParameters(&other) if err != nil { return err.Error() @@ -1688,7 +1688,7 @@ func RunPropertyAssignmentTestForBackupParameters_STATUS(subject BackupParameter copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupParameters_STATUS + var other v20231101s.BackupParameters_STATUS err := copied.AssignProperties_To_BackupParameters_STATUS(&other) if err != nil { return err.Error() @@ -1799,7 +1799,7 @@ func RunPropertyAssignmentTestForDataStoreInfoBase(subject DataStoreInfoBase) st copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DataStoreInfoBase + var other v20231101s.DataStoreInfoBase err := copied.AssignProperties_To_DataStoreInfoBase(&other) if err != nil { return err.Error() @@ -1902,7 +1902,7 @@ func RunPropertyAssignmentTestForDataStoreInfoBase_STATUS(subject DataStoreInfoB copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DataStoreInfoBase_STATUS + var other v20231101s.DataStoreInfoBase_STATUS err := copied.AssignProperties_To_DataStoreInfoBase_STATUS(&other) if err != nil { return err.Error() @@ -2006,7 +2006,7 @@ func RunPropertyAssignmentTestForSourceLifeCycle(subject SourceLifeCycle) string copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SourceLifeCycle + var other v20231101s.SourceLifeCycle err := copied.AssignProperties_To_SourceLifeCycle(&other) if err != nil { return err.Error() @@ -2110,7 +2110,7 @@ func RunPropertyAssignmentTestForSourceLifeCycle_STATUS(subject SourceLifeCycle_ copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.SourceLifeCycle_STATUS + var other v20231101s.SourceLifeCycle_STATUS err := copied.AssignProperties_To_SourceLifeCycle_STATUS(&other) if err != nil { return err.Error() @@ -2215,7 +2215,7 @@ func RunPropertyAssignmentTestForTriggerContext(subject TriggerContext) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.TriggerContext + var other v20231101s.TriggerContext err := copied.AssignProperties_To_TriggerContext(&other) if err != nil { return err.Error() @@ -2328,7 +2328,7 @@ func RunPropertyAssignmentTestForTriggerContext_STATUS(subject TriggerContext_ST copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.TriggerContext_STATUS + var other v20231101s.TriggerContext_STATUS err := copied.AssignProperties_To_TriggerContext_STATUS(&other) if err != nil { return err.Error() @@ -2442,7 +2442,7 @@ func RunPropertyAssignmentTestForAdhocBasedTriggerContext(subject AdhocBasedTrig copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AdhocBasedTriggerContext + var other v20231101s.AdhocBasedTriggerContext err := copied.AssignProperties_To_AdhocBasedTriggerContext(&other) if err != nil { return err.Error() @@ -2559,7 +2559,7 @@ func RunPropertyAssignmentTestForAdhocBasedTriggerContext_STATUS(subject AdhocBa copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AdhocBasedTriggerContext_STATUS + var other v20231101s.AdhocBasedTriggerContext_STATUS err := copied.AssignProperties_To_AdhocBasedTriggerContext_STATUS(&other) if err != nil { return err.Error() @@ -2676,7 +2676,7 @@ func RunPropertyAssignmentTestForAzureBackupParams(subject AzureBackupParams) st copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureBackupParams + var other v20231101s.AzureBackupParams err := copied.AssignProperties_To_AzureBackupParams(&other) if err != nil { return err.Error() @@ -2779,7 +2779,7 @@ func RunPropertyAssignmentTestForAzureBackupParams_STATUS(subject AzureBackupPar copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AzureBackupParams_STATUS + var other v20231101s.AzureBackupParams_STATUS err := copied.AssignProperties_To_AzureBackupParams_STATUS(&other) if err != nil { return err.Error() @@ -2883,7 +2883,7 @@ func RunPropertyAssignmentTestForDeleteOption(subject DeleteOption) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DeleteOption + var other v20231101s.DeleteOption err := copied.AssignProperties_To_DeleteOption(&other) if err != nil { return err.Error() @@ -2993,7 +2993,7 @@ func RunPropertyAssignmentTestForDeleteOption_STATUS(subject DeleteOption_STATUS copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.DeleteOption_STATUS + var other v20231101s.DeleteOption_STATUS err := copied.AssignProperties_To_DeleteOption_STATUS(&other) if err != nil { return err.Error() @@ -3104,7 +3104,7 @@ func RunPropertyAssignmentTestForScheduleBasedTriggerContext(subject ScheduleBas copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ScheduleBasedTriggerContext + var other v20231101s.ScheduleBasedTriggerContext err := copied.AssignProperties_To_ScheduleBasedTriggerContext(&other) if err != nil { return err.Error() @@ -3222,7 +3222,7 @@ func RunPropertyAssignmentTestForScheduleBasedTriggerContext_STATUS(subject Sche copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ScheduleBasedTriggerContext_STATUS + var other v20231101s.ScheduleBasedTriggerContext_STATUS err := copied.AssignProperties_To_ScheduleBasedTriggerContext_STATUS(&other) if err != nil { return err.Error() @@ -3340,7 +3340,7 @@ func RunPropertyAssignmentTestForTargetCopySetting(subject TargetCopySetting) st copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.TargetCopySetting + var other v20231101s.TargetCopySetting err := copied.AssignProperties_To_TargetCopySetting(&other) if err != nil { return err.Error() @@ -3443,7 +3443,7 @@ func RunPropertyAssignmentTestForTargetCopySetting_STATUS(subject TargetCopySett copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.TargetCopySetting_STATUS + var other v20231101s.TargetCopySetting_STATUS err := copied.AssignProperties_To_TargetCopySetting_STATUS(&other) if err != nil { return err.Error() @@ -3547,7 +3547,7 @@ func RunPropertyAssignmentTestForAbsoluteDeleteOption(subject AbsoluteDeleteOpti copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AbsoluteDeleteOption + var other v20231101s.AbsoluteDeleteOption err := copied.AssignProperties_To_AbsoluteDeleteOption(&other) if err != nil { return err.Error() @@ -3651,7 +3651,7 @@ func RunPropertyAssignmentTestForAbsoluteDeleteOption_STATUS(subject AbsoluteDel copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AbsoluteDeleteOption_STATUS + var other v20231101s.AbsoluteDeleteOption_STATUS err := copied.AssignProperties_To_AbsoluteDeleteOption_STATUS(&other) if err != nil { return err.Error() @@ -3755,7 +3755,7 @@ func RunPropertyAssignmentTestForAdhocBasedTaggingCriteria(subject AdhocBasedTag copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AdhocBasedTaggingCriteria + var other v20231101s.AdhocBasedTaggingCriteria err := copied.AssignProperties_To_AdhocBasedTaggingCriteria(&other) if err != nil { return err.Error() @@ -3858,7 +3858,7 @@ func RunPropertyAssignmentTestForAdhocBasedTaggingCriteria_STATUS(subject AdhocB copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.AdhocBasedTaggingCriteria_STATUS + var other v20231101s.AdhocBasedTaggingCriteria_STATUS err := copied.AssignProperties_To_AdhocBasedTaggingCriteria_STATUS(&other) if err != nil { return err.Error() @@ -3961,7 +3961,7 @@ func RunPropertyAssignmentTestForBackupSchedule(subject BackupSchedule) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupSchedule + var other v20231101s.BackupSchedule err := copied.AssignProperties_To_BackupSchedule(&other) if err != nil { return err.Error() @@ -4064,7 +4064,7 @@ func RunPropertyAssignmentTestForBackupSchedule_STATUS(subject BackupSchedule_ST copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupSchedule_STATUS + var other v20231101s.BackupSchedule_STATUS err := copied.AssignProperties_To_BackupSchedule_STATUS(&other) if err != nil { return err.Error() @@ -4168,7 +4168,7 @@ func RunPropertyAssignmentTestForCopyOption(subject CopyOption) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CopyOption + var other v20231101s.CopyOption err := copied.AssignProperties_To_CopyOption(&other) if err != nil { return err.Error() @@ -4284,7 +4284,7 @@ func RunPropertyAssignmentTestForCopyOption_STATUS(subject CopyOption_STATUS) st copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CopyOption_STATUS + var other v20231101s.CopyOption_STATUS err := copied.AssignProperties_To_CopyOption_STATUS(&other) if err != nil { return err.Error() @@ -4400,7 +4400,7 @@ func RunPropertyAssignmentTestForTaggingCriteria(subject TaggingCriteria) string copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.TaggingCriteria + var other v20231101s.TaggingCriteria err := copied.AssignProperties_To_TaggingCriteria(&other) if err != nil { return err.Error() @@ -4518,7 +4518,7 @@ func RunPropertyAssignmentTestForTaggingCriteria_STATUS(subject TaggingCriteria_ copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.TaggingCriteria_STATUS + var other v20231101s.TaggingCriteria_STATUS err := copied.AssignProperties_To_TaggingCriteria_STATUS(&other) if err != nil { return err.Error() @@ -4637,7 +4637,7 @@ func RunPropertyAssignmentTestForBackupCriteria(subject BackupCriteria) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupCriteria + var other v20231101s.BackupCriteria err := copied.AssignProperties_To_BackupCriteria(&other) if err != nil { return err.Error() @@ -4747,7 +4747,7 @@ func RunPropertyAssignmentTestForBackupCriteria_STATUS(subject BackupCriteria_ST copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.BackupCriteria_STATUS + var other v20231101s.BackupCriteria_STATUS err := copied.AssignProperties_To_BackupCriteria_STATUS(&other) if err != nil { return err.Error() @@ -4858,7 +4858,7 @@ func RunPropertyAssignmentTestForCopyOnExpiryOption(subject CopyOnExpiryOption) copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CopyOnExpiryOption + var other v20231101s.CopyOnExpiryOption err := copied.AssignProperties_To_CopyOnExpiryOption(&other) if err != nil { return err.Error() @@ -4960,7 +4960,7 @@ func RunPropertyAssignmentTestForCopyOnExpiryOption_STATUS(subject CopyOnExpiryO copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CopyOnExpiryOption_STATUS + var other v20231101s.CopyOnExpiryOption_STATUS err := copied.AssignProperties_To_CopyOnExpiryOption_STATUS(&other) if err != nil { return err.Error() @@ -5063,7 +5063,7 @@ func RunPropertyAssignmentTestForCustomCopyOption(subject CustomCopyOption) stri copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CustomCopyOption + var other v20231101s.CustomCopyOption err := copied.AssignProperties_To_CustomCopyOption(&other) if err != nil { return err.Error() @@ -5166,7 +5166,7 @@ func RunPropertyAssignmentTestForCustomCopyOption_STATUS(subject CustomCopyOptio copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.CustomCopyOption_STATUS + var other v20231101s.CustomCopyOption_STATUS err := copied.AssignProperties_To_CustomCopyOption_STATUS(&other) if err != nil { return err.Error() @@ -5270,7 +5270,7 @@ func RunPropertyAssignmentTestForImmediateCopyOption(subject ImmediateCopyOption copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ImmediateCopyOption + var other v20231101s.ImmediateCopyOption err := copied.AssignProperties_To_ImmediateCopyOption(&other) if err != nil { return err.Error() @@ -5373,7 +5373,7 @@ func RunPropertyAssignmentTestForImmediateCopyOption_STATUS(subject ImmediateCop copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ImmediateCopyOption_STATUS + var other v20231101s.ImmediateCopyOption_STATUS err := copied.AssignProperties_To_ImmediateCopyOption_STATUS(&other) if err != nil { return err.Error() @@ -5476,7 +5476,7 @@ func RunPropertyAssignmentTestForRetentionTag(subject RetentionTag) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.RetentionTag + var other v20231101s.RetentionTag err := copied.AssignProperties_To_RetentionTag(&other) if err != nil { return err.Error() @@ -5578,7 +5578,7 @@ func RunPropertyAssignmentTestForRetentionTag_STATUS(subject RetentionTag_STATUS copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.RetentionTag_STATUS + var other v20231101s.RetentionTag_STATUS err := copied.AssignProperties_To_RetentionTag_STATUS(&other) if err != nil { return err.Error() @@ -5683,7 +5683,7 @@ func RunPropertyAssignmentTestForScheduleBasedBackupCriteria(subject ScheduleBas copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ScheduleBasedBackupCriteria + var other v20231101s.ScheduleBasedBackupCriteria err := copied.AssignProperties_To_ScheduleBasedBackupCriteria(&other) if err != nil { return err.Error() @@ -5834,7 +5834,7 @@ func RunPropertyAssignmentTestForScheduleBasedBackupCriteria_STATUS(subject Sche copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.ScheduleBasedBackupCriteria_STATUS + var other v20231101s.ScheduleBasedBackupCriteria_STATUS err := copied.AssignProperties_To_ScheduleBasedBackupCriteria_STATUS(&other) if err != nil { return err.Error() @@ -5985,7 +5985,7 @@ func RunPropertyAssignmentTestForDay(subject Day) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.Day + var other v20231101s.Day err := copied.AssignProperties_To_Day(&other) if err != nil { return err.Error() @@ -6088,7 +6088,7 @@ func RunPropertyAssignmentTestForDay_STATUS(subject Day_STATUS) string { copied := subject.DeepCopy() // Use AssignPropertiesTo() for the first stage of conversion - var other v20231201s.Day_STATUS + var other v20231101s.Day_STATUS err := copied.AssignProperties_To_Day_STATUS(&other) if err != nil { return err.Error() diff --git a/v2/api/dataprotection/v1api20231201/doc.go b/v2/api/dataprotection/v1api20231101/doc.go similarity index 59% rename from v2/api/dataprotection/v1api20231201/doc.go rename to v2/api/dataprotection/v1api20231101/doc.go index 84ccaa23ef1..33acef1e08e 100644 --- a/v2/api/dataprotection/v1api20231201/doc.go +++ b/v2/api/dataprotection/v1api20231101/doc.go @@ -5,6 +5,6 @@ Licensed under the MIT license. // Code generated by azure-service-operator-codegen. DO NOT EDIT. -// Package v1api20231201 contains API Schema definitions for the dataprotection v1api20231201 API group +// Package v1api20231101 contains API Schema definitions for the dataprotection v1api20231101 API group // +groupName=dataprotection.azure.com -package v1api20231201 +package v1api20231101 diff --git a/v2/api/dataprotection/v1api20231201/groupversion_info_gen.go b/v2/api/dataprotection/v1api20231101/groupversion_info_gen.go similarity index 82% rename from v2/api/dataprotection/v1api20231201/groupversion_info_gen.go rename to v2/api/dataprotection/v1api20231101/groupversion_info_gen.go index 5abbd2eab38..4e824ec6667 100644 --- a/v2/api/dataprotection/v1api20231201/groupversion_info_gen.go +++ b/v2/api/dataprotection/v1api20231101/groupversion_info_gen.go @@ -5,13 +5,13 @@ Licensed under the MIT license. // Code generated by azure-service-operator-codegen. DO NOT EDIT. -// Package v1api20231201 contains API Schema definitions for the dataprotection v1api20231201 API group +// Package v1api20231101 contains API Schema definitions for the dataprotection v1api20231101 API group // +kubebuilder:object:generate=true // All object properties are optional by default, this will be overridden when needed: // +kubebuilder:validation:Optional // +groupName=dataprotection.azure.com -// +versionName=v1api20231201 -package v1api20231201 +// +versionName=v1api20231101 +package v1api20231101 import ( "k8s.io/apimachinery/pkg/runtime/schema" @@ -20,7 +20,7 @@ import ( var ( // GroupVersion is group version used to register these objects - GroupVersion = schema.GroupVersion{Group: "dataprotection.azure.com", Version: "v1api20231201"} + GroupVersion = schema.GroupVersion{Group: "dataprotection.azure.com", Version: "v1api20231101"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} diff --git a/v2/api/dataprotection/v1api20231201/storage/backup_vault_types_gen.go b/v2/api/dataprotection/v1api20231101/storage/backup_vault_types_gen.go similarity index 90% rename from v2/api/dataprotection/v1api20231201/storage/backup_vault_types_gen.go rename to v2/api/dataprotection/v1api20231101/storage/backup_vault_types_gen.go index d9ae9bf8baf..04b56b66ad8 100644 --- a/v2/api/dataprotection/v1api20231201/storage/backup_vault_types_gen.go +++ b/v2/api/dataprotection/v1api20231101/storage/backup_vault_types_gen.go @@ -26,9 +26,9 @@ import ( // +kubebuilder:printcolumn:name="Severity",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].severity" // +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason" // +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message" -// Storage version of v1api20231201.BackupVault +// Storage version of v1api20231101.BackupVault // Generator information: -// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-12-01/dataprotection.json +// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-11-01/dataprotection.json // - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName} type BackupVault struct { metav1.TypeMeta `json:",inline"` @@ -75,7 +75,7 @@ func (vault *BackupVault) AzureName() string { return vault.Spec.AzureName } -// GetAPIVersion returns the ARM API version of the resource. This is always "2023-12-01" +// GetAPIVersion returns the ARM API version of the resource. This is always "2023-11-01" func (vault BackupVault) GetAPIVersion() string { return string(APIVersion_Value) } @@ -152,9 +152,9 @@ func (vault *BackupVault) OriginalGVK() *schema.GroupVersionKind { } // +kubebuilder:object:root=true -// Storage version of v1api20231201.BackupVault +// Storage version of v1api20231101.BackupVault // Generator information: -// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-12-01/dataprotection.json +// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-11-01/dataprotection.json // - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName} type BackupVaultList struct { metav1.TypeMeta `json:",inline"` @@ -162,13 +162,13 @@ type BackupVaultList struct { Items []BackupVault `json:"items"` } -// Storage version of v1api20231201.APIVersion -// +kubebuilder:validation:Enum={"2023-12-01"} +// Storage version of v1api20231101.APIVersion +// +kubebuilder:validation:Enum={"2023-11-01"} type APIVersion string -const APIVersion_Value = APIVersion("2023-12-01") +const APIVersion_Value = APIVersion("2023-11-01") -// Storage version of v1api20231201.BackupVault_Spec +// Storage version of v1api20231101.BackupVault_Spec type BackupVault_Spec struct { // AzureName: The name of the resource in Azure. This is often the same as the name of the resource in Kubernetes but it // doesn't have to be. @@ -208,7 +208,7 @@ func (vault *BackupVault_Spec) ConvertSpecTo(destination genruntime.ConvertibleS return destination.ConvertSpecFrom(vault) } -// Storage version of v1api20231201.BackupVaultResource_STATUS +// Storage version of v1api20231101.BackupVaultResource_STATUS // Backup Vault Resource type BackupVaultResource_STATUS struct { Conditions []conditions.Condition `json:"conditions,omitempty"` @@ -244,7 +244,7 @@ func (resource *BackupVaultResource_STATUS) ConvertStatusTo(destination genrunti return destination.ConvertStatusFrom(resource) } -// Storage version of v1api20231201.BackupVault_STATUS +// Storage version of v1api20231101.BackupVault_STATUS // Backup Vault type BackupVault_STATUS struct { FeatureSettings *FeatureSettings_STATUS `json:"featureSettings,omitempty"` @@ -260,14 +260,14 @@ type BackupVault_STATUS struct { StorageSettings []StorageSetting_STATUS `json:"storageSettings,omitempty"` } -// Storage version of v1api20231201.BackupVaultOperatorSpec +// Storage version of v1api20231101.BackupVaultOperatorSpec // Details for configuring operator behavior. Fields in this struct are interpreted by the operator directly rather than being passed to Azure type BackupVaultOperatorSpec struct { ConfigMaps *BackupVaultOperatorConfigMaps `json:"configMaps,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.BackupVaultSpec +// Storage version of v1api20231101.BackupVaultSpec // Backup Vault type BackupVaultSpec struct { FeatureSettings *FeatureSettings `json:"featureSettings,omitempty"` @@ -278,7 +278,7 @@ type BackupVaultSpec struct { StorageSettings []StorageSetting `json:"storageSettings,omitempty"` } -// Storage version of v1api20231201.DppIdentityDetails +// Storage version of v1api20231101.DppIdentityDetails // Identity details type DppIdentityDetails struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` @@ -286,7 +286,7 @@ type DppIdentityDetails struct { UserAssignedIdentities []UserAssignedIdentityDetails `json:"userAssignedIdentities,omitempty"` } -// Storage version of v1api20231201.DppIdentityDetails_STATUS +// Storage version of v1api20231101.DppIdentityDetails_STATUS // Identity details type DppIdentityDetails_STATUS struct { PrincipalId *string `json:"principalId,omitempty"` @@ -296,7 +296,7 @@ type DppIdentityDetails_STATUS struct { UserAssignedIdentities map[string]UserAssignedIdentity_STATUS `json:"userAssignedIdentities,omitempty"` } -// Storage version of v1api20231201.SystemData_STATUS +// Storage version of v1api20231101.SystemData_STATUS // Metadata pertaining to creation and last modification of the resource. type SystemData_STATUS struct { CreatedAt *string `json:"createdAt,omitempty"` @@ -308,13 +308,13 @@ type SystemData_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.BackupVaultOperatorConfigMaps +// Storage version of v1api20231101.BackupVaultOperatorConfigMaps type BackupVaultOperatorConfigMaps struct { PrincipalId *genruntime.ConfigMapDestination `json:"principalId,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.FeatureSettings +// Storage version of v1api20231101.FeatureSettings // Class containing feature settings of vault type FeatureSettings struct { CrossRegionRestoreSettings *CrossRegionRestoreSettings `json:"crossRegionRestoreSettings,omitempty"` @@ -322,7 +322,7 @@ type FeatureSettings struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.FeatureSettings_STATUS +// Storage version of v1api20231101.FeatureSettings_STATUS // Class containing feature settings of vault type FeatureSettings_STATUS struct { CrossRegionRestoreSettings *CrossRegionRestoreSettings_STATUS `json:"crossRegionRestoreSettings,omitempty"` @@ -330,21 +330,21 @@ type FeatureSettings_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.MonitoringSettings +// Storage version of v1api20231101.MonitoringSettings // Monitoring Settings type MonitoringSettings struct { AzureMonitorAlertSettings *AzureMonitorAlertSettings `json:"azureMonitorAlertSettings,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.MonitoringSettings_STATUS +// Storage version of v1api20231101.MonitoringSettings_STATUS // Monitoring Settings type MonitoringSettings_STATUS struct { AzureMonitorAlertSettings *AzureMonitorAlertSettings_STATUS `json:"azureMonitorAlertSettings,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.ResourceMoveDetails_STATUS +// Storage version of v1api20231101.ResourceMoveDetails_STATUS // ResourceMoveDetails will be returned in response to GetResource call from ARM type ResourceMoveDetails_STATUS struct { CompletionTimeUtc *string `json:"completionTimeUtc,omitempty"` @@ -355,7 +355,7 @@ type ResourceMoveDetails_STATUS struct { TargetResourcePath *string `json:"targetResourcePath,omitempty"` } -// Storage version of v1api20231201.SecuritySettings +// Storage version of v1api20231101.SecuritySettings // Class containing security settings of vault type SecuritySettings struct { ImmutabilitySettings *ImmutabilitySettings `json:"immutabilitySettings,omitempty"` @@ -363,7 +363,7 @@ type SecuritySettings struct { SoftDeleteSettings *SoftDeleteSettings `json:"softDeleteSettings,omitempty"` } -// Storage version of v1api20231201.SecuritySettings_STATUS +// Storage version of v1api20231101.SecuritySettings_STATUS // Class containing security settings of vault type SecuritySettings_STATUS struct { ImmutabilitySettings *ImmutabilitySettings_STATUS `json:"immutabilitySettings,omitempty"` @@ -371,7 +371,7 @@ type SecuritySettings_STATUS struct { SoftDeleteSettings *SoftDeleteSettings_STATUS `json:"softDeleteSettings,omitempty"` } -// Storage version of v1api20231201.StorageSetting +// Storage version of v1api20231101.StorageSetting // Storage setting type StorageSetting struct { DatastoreType *string `json:"datastoreType,omitempty"` @@ -379,7 +379,7 @@ type StorageSetting struct { Type *string `json:"type,omitempty"` } -// Storage version of v1api20231201.StorageSetting_STATUS +// Storage version of v1api20231101.StorageSetting_STATUS // Storage setting type StorageSetting_STATUS struct { DatastoreType *string `json:"datastoreType,omitempty"` @@ -387,7 +387,7 @@ type StorageSetting_STATUS struct { Type *string `json:"type,omitempty"` } -// Storage version of v1api20231201.UserAssignedIdentity_STATUS +// Storage version of v1api20231101.UserAssignedIdentity_STATUS // User assigned identity properties type UserAssignedIdentity_STATUS struct { ClientId *string `json:"clientId,omitempty"` @@ -395,68 +395,68 @@ type UserAssignedIdentity_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.UserAssignedIdentityDetails +// Storage version of v1api20231101.UserAssignedIdentityDetails // Information about the user assigned identity for the resource type UserAssignedIdentityDetails struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` Reference genruntime.ResourceReference `armReference:"Reference" json:"reference,omitempty"` } -// Storage version of v1api20231201.AzureMonitorAlertSettings +// Storage version of v1api20231101.AzureMonitorAlertSettings // Settings for Azure Monitor based alerts type AzureMonitorAlertSettings struct { AlertsForAllJobFailures *string `json:"alertsForAllJobFailures,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.AzureMonitorAlertSettings_STATUS +// Storage version of v1api20231101.AzureMonitorAlertSettings_STATUS // Settings for Azure Monitor based alerts type AzureMonitorAlertSettings_STATUS struct { AlertsForAllJobFailures *string `json:"alertsForAllJobFailures,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.CrossRegionRestoreSettings +// Storage version of v1api20231101.CrossRegionRestoreSettings type CrossRegionRestoreSettings struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` State *string `json:"state,omitempty"` } -// Storage version of v1api20231201.CrossRegionRestoreSettings_STATUS +// Storage version of v1api20231101.CrossRegionRestoreSettings_STATUS type CrossRegionRestoreSettings_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` State *string `json:"state,omitempty"` } -// Storage version of v1api20231201.CrossSubscriptionRestoreSettings +// Storage version of v1api20231101.CrossSubscriptionRestoreSettings // CrossSubscriptionRestore Settings type CrossSubscriptionRestoreSettings struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` State *string `json:"state,omitempty"` } -// Storage version of v1api20231201.CrossSubscriptionRestoreSettings_STATUS +// Storage version of v1api20231101.CrossSubscriptionRestoreSettings_STATUS // CrossSubscriptionRestore Settings type CrossSubscriptionRestoreSettings_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` State *string `json:"state,omitempty"` } -// Storage version of v1api20231201.ImmutabilitySettings +// Storage version of v1api20231101.ImmutabilitySettings // Immutability Settings at vault level type ImmutabilitySettings struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` State *string `json:"state,omitempty"` } -// Storage version of v1api20231201.ImmutabilitySettings_STATUS +// Storage version of v1api20231101.ImmutabilitySettings_STATUS // Immutability Settings at vault level type ImmutabilitySettings_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` State *string `json:"state,omitempty"` } -// Storage version of v1api20231201.SoftDeleteSettings +// Storage version of v1api20231101.SoftDeleteSettings // Soft delete related settings type SoftDeleteSettings struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` @@ -464,7 +464,7 @@ type SoftDeleteSettings struct { State *string `json:"state,omitempty"` } -// Storage version of v1api20231201.SoftDeleteSettings_STATUS +// Storage version of v1api20231101.SoftDeleteSettings_STATUS // Soft delete related settings type SoftDeleteSettings_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` diff --git a/v2/api/dataprotection/v1api20231201/storage/backup_vault_types_gen_test.go b/v2/api/dataprotection/v1api20231101/storage/backup_vault_types_gen_test.go similarity index 100% rename from v2/api/dataprotection/v1api20231201/storage/backup_vault_types_gen_test.go rename to v2/api/dataprotection/v1api20231101/storage/backup_vault_types_gen_test.go diff --git a/v2/api/dataprotection/v1api20231201/storage/backup_vaults_backup_instance_types_gen.go b/v2/api/dataprotection/v1api20231101/storage/backup_vaults_backup_instance_types_gen.go similarity index 91% rename from v2/api/dataprotection/v1api20231201/storage/backup_vaults_backup_instance_types_gen.go rename to v2/api/dataprotection/v1api20231101/storage/backup_vaults_backup_instance_types_gen.go index 25548cd347f..bb12bc5d0dc 100644 --- a/v2/api/dataprotection/v1api20231201/storage/backup_vaults_backup_instance_types_gen.go +++ b/v2/api/dataprotection/v1api20231101/storage/backup_vaults_backup_instance_types_gen.go @@ -21,9 +21,9 @@ import ( // +kubebuilder:printcolumn:name="Severity",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].severity" // +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason" // +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message" -// Storage version of v1api20231201.BackupVaultsBackupInstance +// Storage version of v1api20231101.BackupVaultsBackupInstance // Generator information: -// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-12-01/dataprotection.json +// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-11-01/dataprotection.json // - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName} type BackupVaultsBackupInstance struct { metav1.TypeMeta `json:",inline"` @@ -51,7 +51,7 @@ func (instance *BackupVaultsBackupInstance) AzureName() string { return instance.Spec.AzureName } -// GetAPIVersion returns the ARM API version of the resource. This is always "2023-12-01" +// GetAPIVersion returns the ARM API version of the resource. This is always "2023-11-01" func (instance BackupVaultsBackupInstance) GetAPIVersion() string { return string(APIVersion_Value) } @@ -128,9 +128,9 @@ func (instance *BackupVaultsBackupInstance) OriginalGVK() *schema.GroupVersionKi } // +kubebuilder:object:root=true -// Storage version of v1api20231201.BackupVaultsBackupInstance +// Storage version of v1api20231101.BackupVaultsBackupInstance // Generator information: -// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-12-01/dataprotection.json +// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-11-01/dataprotection.json // - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName} type BackupVaultsBackupInstanceList struct { metav1.TypeMeta `json:",inline"` @@ -138,7 +138,7 @@ type BackupVaultsBackupInstanceList struct { Items []BackupVaultsBackupInstance `json:"items"` } -// Storage version of v1api20231201.BackupVaults_BackupInstance_Spec +// Storage version of v1api20231101.BackupVaults_BackupInstance_Spec type BackupVaults_BackupInstance_Spec struct { // AzureName: The name of the resource in Azure. This is often the same as the name of the resource in Kubernetes but it // doesn't have to be. @@ -175,7 +175,7 @@ func (instance *BackupVaults_BackupInstance_Spec) ConvertSpecTo(destination genr return destination.ConvertSpecFrom(instance) } -// Storage version of v1api20231201.BackupVaults_BackupInstance_STATUS +// Storage version of v1api20231101.BackupVaults_BackupInstance_STATUS type BackupVaults_BackupInstance_STATUS struct { Conditions []conditions.Condition `json:"conditions,omitempty"` Id *string `json:"id,omitempty"` @@ -207,7 +207,7 @@ func (instance *BackupVaults_BackupInstance_STATUS) ConvertStatusTo(destination return destination.ConvertStatusFrom(instance) } -// Storage version of v1api20231201.BackupInstance +// Storage version of v1api20231101.BackupInstance // Backup Instance type BackupInstance struct { DataSourceInfo *Datasource `json:"dataSourceInfo,omitempty"` @@ -221,7 +221,7 @@ type BackupInstance struct { ValidationType *string `json:"validationType,omitempty"` } -// Storage version of v1api20231201.BackupInstance_STATUS +// Storage version of v1api20231101.BackupInstance_STATUS // Backup Instance type BackupInstance_STATUS struct { CurrentProtectionState *string `json:"currentProtectionState,omitempty"` @@ -239,19 +239,19 @@ type BackupInstance_STATUS struct { ValidationType *string `json:"validationType,omitempty"` } -// Storage version of v1api20231201.AuthCredentials +// Storage version of v1api20231101.AuthCredentials type AuthCredentials struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` SecretStoreBasedAuthCredentials *SecretStoreBasedAuthCredentials `json:"secretStoreBasedAuthCredentials,omitempty"` } -// Storage version of v1api20231201.AuthCredentials_STATUS +// Storage version of v1api20231101.AuthCredentials_STATUS type AuthCredentials_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` SecretStoreBasedAuthCredentials *SecretStoreBasedAuthCredentials_STATUS `json:"secretStoreBasedAuthCredentials,omitempty"` } -// Storage version of v1api20231201.Datasource +// Storage version of v1api20231101.Datasource // Datasource to be backed up type Datasource struct { DatasourceType *string `json:"datasourceType,omitempty"` @@ -269,7 +269,7 @@ type Datasource struct { ResourceUri *string `json:"resourceUri,omitempty"` } -// Storage version of v1api20231201.Datasource_STATUS +// Storage version of v1api20231101.Datasource_STATUS // Datasource to be backed up type Datasource_STATUS struct { DatasourceType *string `json:"datasourceType,omitempty"` @@ -283,7 +283,7 @@ type Datasource_STATUS struct { ResourceUri *string `json:"resourceUri,omitempty"` } -// Storage version of v1api20231201.DatasourceSet +// Storage version of v1api20231101.DatasourceSet // DatasourceSet details of datasource to be backed up type DatasourceSet struct { DatasourceType *string `json:"datasourceType,omitempty"` @@ -301,7 +301,7 @@ type DatasourceSet struct { ResourceUri *string `json:"resourceUri,omitempty"` } -// Storage version of v1api20231201.DatasourceSet_STATUS +// Storage version of v1api20231101.DatasourceSet_STATUS // DatasourceSet details of datasource to be backed up type DatasourceSet_STATUS struct { DatasourceType *string `json:"datasourceType,omitempty"` @@ -315,21 +315,21 @@ type DatasourceSet_STATUS struct { ResourceUri *string `json:"resourceUri,omitempty"` } -// Storage version of v1api20231201.IdentityDetails +// Storage version of v1api20231101.IdentityDetails type IdentityDetails struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` UseSystemAssignedIdentity *bool `json:"useSystemAssignedIdentity,omitempty"` UserAssignedIdentityArmUrl *string `json:"userAssignedIdentityArmUrl,omitempty"` } -// Storage version of v1api20231201.IdentityDetails_STATUS +// Storage version of v1api20231101.IdentityDetails_STATUS type IdentityDetails_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` UseSystemAssignedIdentity *bool `json:"useSystemAssignedIdentity,omitempty"` UserAssignedIdentityArmUrl *string `json:"userAssignedIdentityArmUrl,omitempty"` } -// Storage version of v1api20231201.PolicyInfo +// Storage version of v1api20231101.PolicyInfo // Policy Info in backupInstance type PolicyInfo struct { PolicyParameters *PolicyParameters `json:"policyParameters,omitempty"` @@ -339,7 +339,7 @@ type PolicyInfo struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.PolicyInfo_STATUS +// Storage version of v1api20231101.PolicyInfo_STATUS // Policy Info in backupInstance type PolicyInfo_STATUS struct { PolicyId *string `json:"policyId,omitempty"` @@ -348,7 +348,7 @@ type PolicyInfo_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.ProtectionStatusDetails_STATUS +// Storage version of v1api20231101.ProtectionStatusDetails_STATUS // Protection status details type ProtectionStatusDetails_STATUS struct { ErrorDetails *UserFacingError_STATUS `json:"errorDetails,omitempty"` @@ -356,7 +356,7 @@ type ProtectionStatusDetails_STATUS struct { Status *string `json:"status,omitempty"` } -// Storage version of v1api20231201.UserFacingError_STATUS +// Storage version of v1api20231101.UserFacingError_STATUS // Error object used by layers that have access to localized content, and propagate that to user type UserFacingError_STATUS struct { Code *string `json:"code,omitempty"` @@ -371,19 +371,19 @@ type UserFacingError_STATUS struct { Target *string `json:"target,omitempty"` } -// Storage version of v1api20231201.BaseResourceProperties +// Storage version of v1api20231101.BaseResourceProperties type BaseResourceProperties struct { DefaultResourceProperties *DefaultResourceProperties `json:"defaultResourceProperties,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.BaseResourceProperties_STATUS +// Storage version of v1api20231101.BaseResourceProperties_STATUS type BaseResourceProperties_STATUS struct { DefaultResourceProperties *DefaultResourceProperties_STATUS `json:"defaultResourceProperties,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.InnerError_STATUS +// Storage version of v1api20231101.InnerError_STATUS // Inner Error type InnerError_STATUS struct { AdditionalInfo map[string]string `json:"additionalInfo,omitempty"` @@ -392,7 +392,7 @@ type InnerError_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.PolicyParameters +// Storage version of v1api20231101.PolicyParameters // Parameters in Policy type PolicyParameters struct { BackupDatasourceParametersList []BackupDatasourceParameters `json:"backupDatasourceParametersList,omitempty"` @@ -400,7 +400,7 @@ type PolicyParameters struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.PolicyParameters_STATUS +// Storage version of v1api20231101.PolicyParameters_STATUS // Parameters in Policy type PolicyParameters_STATUS struct { BackupDatasourceParametersList []BackupDatasourceParameters_STATUS `json:"backupDatasourceParametersList,omitempty"` @@ -408,21 +408,21 @@ type PolicyParameters_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.SecretStoreBasedAuthCredentials +// Storage version of v1api20231101.SecretStoreBasedAuthCredentials type SecretStoreBasedAuthCredentials struct { ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` SecretStoreResource *SecretStoreResource `json:"secretStoreResource,omitempty"` } -// Storage version of v1api20231201.SecretStoreBasedAuthCredentials_STATUS +// Storage version of v1api20231101.SecretStoreBasedAuthCredentials_STATUS type SecretStoreBasedAuthCredentials_STATUS struct { ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` SecretStoreResource *SecretStoreResource_STATUS `json:"secretStoreResource,omitempty"` } -// Storage version of v1api20231201.UserFacingError_STATUS_Unrolled +// Storage version of v1api20231101.UserFacingError_STATUS_Unrolled type UserFacingError_STATUS_Unrolled struct { Code *string `json:"code,omitempty"` InnerError *InnerError_STATUS `json:"innerError,omitempty"` @@ -435,52 +435,52 @@ type UserFacingError_STATUS_Unrolled struct { Target *string `json:"target,omitempty"` } -// Storage version of v1api20231201.BackupDatasourceParameters +// Storage version of v1api20231101.BackupDatasourceParameters type BackupDatasourceParameters struct { Blob *BlobBackupDatasourceParameters `json:"blobBackupDatasourceParameters,omitempty"` KubernetesCluster *KubernetesClusterBackupDatasourceParameters `json:"kubernetesClusterBackupDatasourceParameters,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.BackupDatasourceParameters_STATUS +// Storage version of v1api20231101.BackupDatasourceParameters_STATUS type BackupDatasourceParameters_STATUS struct { Blob *BlobBackupDatasourceParameters_STATUS `json:"blobBackupDatasourceParameters,omitempty"` KubernetesCluster *KubernetesClusterBackupDatasourceParameters_STATUS `json:"kubernetesClusterBackupDatasourceParameters,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.DataStoreParameters +// Storage version of v1api20231101.DataStoreParameters type DataStoreParameters struct { AzureOperationalStoreParameters *AzureOperationalStoreParameters `json:"azureOperationalStoreParameters,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.DataStoreParameters_STATUS +// Storage version of v1api20231101.DataStoreParameters_STATUS type DataStoreParameters_STATUS struct { AzureOperationalStoreParameters *AzureOperationalStoreParameters_STATUS `json:"azureOperationalStoreParameters,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.DefaultResourceProperties +// Storage version of v1api20231101.DefaultResourceProperties type DefaultResourceProperties struct { ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.DefaultResourceProperties_STATUS +// Storage version of v1api20231101.DefaultResourceProperties_STATUS type DefaultResourceProperties_STATUS struct { ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.InnerError_STATUS_Unrolled +// Storage version of v1api20231101.InnerError_STATUS_Unrolled type InnerError_STATUS_Unrolled struct { AdditionalInfo map[string]string `json:"additionalInfo,omitempty"` Code *string `json:"code,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.SecretStoreResource +// Storage version of v1api20231101.SecretStoreResource // Class representing a secret store resource. type SecretStoreResource struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` @@ -489,7 +489,7 @@ type SecretStoreResource struct { Value *string `json:"value,omitempty"` } -// Storage version of v1api20231201.SecretStoreResource_STATUS +// Storage version of v1api20231101.SecretStoreResource_STATUS // Class representing a secret store resource. type SecretStoreResource_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` @@ -498,7 +498,7 @@ type SecretStoreResource_STATUS struct { Value *string `json:"value,omitempty"` } -// Storage version of v1api20231201.AzureOperationalStoreParameters +// Storage version of v1api20231101.AzureOperationalStoreParameters type AzureOperationalStoreParameters struct { DataStoreType *string `json:"dataStoreType,omitempty"` ObjectType *string `json:"objectType,omitempty"` @@ -506,7 +506,7 @@ type AzureOperationalStoreParameters struct { ResourceGroupId *string `json:"resourceGroupId,omitempty"` } -// Storage version of v1api20231201.AzureOperationalStoreParameters_STATUS +// Storage version of v1api20231101.AzureOperationalStoreParameters_STATUS type AzureOperationalStoreParameters_STATUS struct { DataStoreType *string `json:"dataStoreType,omitempty"` ObjectType *string `json:"objectType,omitempty"` @@ -514,21 +514,21 @@ type AzureOperationalStoreParameters_STATUS struct { ResourceGroupId *string `json:"resourceGroupId,omitempty"` } -// Storage version of v1api20231201.BlobBackupDatasourceParameters +// Storage version of v1api20231101.BlobBackupDatasourceParameters type BlobBackupDatasourceParameters struct { ContainersList []string `json:"containersList,omitempty"` ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.BlobBackupDatasourceParameters_STATUS +// Storage version of v1api20231101.BlobBackupDatasourceParameters_STATUS type BlobBackupDatasourceParameters_STATUS struct { ContainersList []string `json:"containersList,omitempty"` ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.KubernetesClusterBackupDatasourceParameters +// Storage version of v1api20231101.KubernetesClusterBackupDatasourceParameters type KubernetesClusterBackupDatasourceParameters struct { BackupHookReferences []NamespacedNameResource `json:"backupHookReferences,omitempty"` ExcludedNamespaces []string `json:"excludedNamespaces,omitempty"` @@ -542,7 +542,7 @@ type KubernetesClusterBackupDatasourceParameters struct { SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` } -// Storage version of v1api20231201.KubernetesClusterBackupDatasourceParameters_STATUS +// Storage version of v1api20231101.KubernetesClusterBackupDatasourceParameters_STATUS type KubernetesClusterBackupDatasourceParameters_STATUS struct { BackupHookReferences []NamespacedNameResource_STATUS `json:"backupHookReferences,omitempty"` ExcludedNamespaces []string `json:"excludedNamespaces,omitempty"` @@ -556,7 +556,7 @@ type KubernetesClusterBackupDatasourceParameters_STATUS struct { SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` } -// Storage version of v1api20231201.NamespacedNameResource +// Storage version of v1api20231101.NamespacedNameResource // Class to refer resources which contains namespace and name type NamespacedNameResource struct { Name *string `json:"name,omitempty"` @@ -564,7 +564,7 @@ type NamespacedNameResource struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.NamespacedNameResource_STATUS +// Storage version of v1api20231101.NamespacedNameResource_STATUS // Class to refer resources which contains namespace and name type NamespacedNameResource_STATUS struct { Name *string `json:"name,omitempty"` diff --git a/v2/api/dataprotection/v1api20231201/storage/backup_vaults_backup_instance_types_gen_test.go b/v2/api/dataprotection/v1api20231101/storage/backup_vaults_backup_instance_types_gen_test.go similarity index 100% rename from v2/api/dataprotection/v1api20231201/storage/backup_vaults_backup_instance_types_gen_test.go rename to v2/api/dataprotection/v1api20231101/storage/backup_vaults_backup_instance_types_gen_test.go diff --git a/v2/api/dataprotection/v1api20231201/storage/backup_vaults_backup_policy_types_gen.go b/v2/api/dataprotection/v1api20231101/storage/backup_vaults_backup_policy_types_gen.go similarity index 87% rename from v2/api/dataprotection/v1api20231201/storage/backup_vaults_backup_policy_types_gen.go rename to v2/api/dataprotection/v1api20231101/storage/backup_vaults_backup_policy_types_gen.go index 1093147122a..bc5323115cc 100644 --- a/v2/api/dataprotection/v1api20231201/storage/backup_vaults_backup_policy_types_gen.go +++ b/v2/api/dataprotection/v1api20231101/storage/backup_vaults_backup_policy_types_gen.go @@ -21,9 +21,9 @@ import ( // +kubebuilder:printcolumn:name="Severity",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].severity" // +kubebuilder:printcolumn:name="Reason",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].reason" // +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].message" -// Storage version of v1api20231201.BackupVaultsBackupPolicy +// Storage version of v1api20231101.BackupVaultsBackupPolicy // Generator information: -// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-12-01/dataprotection.json +// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-11-01/dataprotection.json // - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName} type BackupVaultsBackupPolicy struct { metav1.TypeMeta `json:",inline"` @@ -51,7 +51,7 @@ func (policy *BackupVaultsBackupPolicy) AzureName() string { return policy.Spec.AzureName } -// GetAPIVersion returns the ARM API version of the resource. This is always "2023-12-01" +// GetAPIVersion returns the ARM API version of the resource. This is always "2023-11-01" func (policy BackupVaultsBackupPolicy) GetAPIVersion() string { return string(APIVersion_Value) } @@ -128,9 +128,9 @@ func (policy *BackupVaultsBackupPolicy) OriginalGVK() *schema.GroupVersionKind { } // +kubebuilder:object:root=true -// Storage version of v1api20231201.BackupVaultsBackupPolicy +// Storage version of v1api20231101.BackupVaultsBackupPolicy // Generator information: -// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-12-01/dataprotection.json +// - Generated from: /dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-11-01/dataprotection.json // - ARM URI: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName} type BackupVaultsBackupPolicyList struct { metav1.TypeMeta `json:",inline"` @@ -138,7 +138,7 @@ type BackupVaultsBackupPolicyList struct { Items []BackupVaultsBackupPolicy `json:"items"` } -// Storage version of v1api20231201.BackupVaults_BackupPolicy_Spec +// Storage version of v1api20231101.BackupVaults_BackupPolicy_Spec type BackupVaults_BackupPolicy_Spec struct { // AzureName: The name of the resource in Azure. This is often the same as the name of the resource in Kubernetes but it // doesn't have to be. @@ -174,7 +174,7 @@ func (policy *BackupVaults_BackupPolicy_Spec) ConvertSpecTo(destination genrunti return destination.ConvertSpecFrom(policy) } -// Storage version of v1api20231201.BackupVaults_BackupPolicy_STATUS +// Storage version of v1api20231101.BackupVaults_BackupPolicy_STATUS type BackupVaults_BackupPolicy_STATUS struct { Conditions []conditions.Condition `json:"conditions,omitempty"` Id *string `json:"id,omitempty"` @@ -205,19 +205,19 @@ func (policy *BackupVaults_BackupPolicy_STATUS) ConvertStatusTo(destination genr return destination.ConvertStatusFrom(policy) } -// Storage version of v1api20231201.BaseBackupPolicy +// Storage version of v1api20231101.BaseBackupPolicy type BaseBackupPolicy struct { BackupPolicy *BackupPolicy `json:"backupPolicy,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.BaseBackupPolicy_STATUS +// Storage version of v1api20231101.BaseBackupPolicy_STATUS type BaseBackupPolicy_STATUS struct { BackupPolicy *BackupPolicy_STATUS `json:"backupPolicy,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.BackupPolicy +// Storage version of v1api20231101.BackupPolicy type BackupPolicy struct { DatasourceTypes []string `json:"datasourceTypes,omitempty"` ObjectType *string `json:"objectType,omitempty"` @@ -225,7 +225,7 @@ type BackupPolicy struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.BackupPolicy_STATUS +// Storage version of v1api20231101.BackupPolicy_STATUS type BackupPolicy_STATUS struct { DatasourceTypes []string `json:"datasourceTypes,omitempty"` ObjectType *string `json:"objectType,omitempty"` @@ -233,21 +233,21 @@ type BackupPolicy_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.BasePolicyRule +// Storage version of v1api20231101.BasePolicyRule type BasePolicyRule struct { AzureBackup *AzureBackupRule `json:"azureBackupRule,omitempty"` AzureRetention *AzureRetentionRule `json:"azureRetentionRule,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.BasePolicyRule_STATUS +// Storage version of v1api20231101.BasePolicyRule_STATUS type BasePolicyRule_STATUS struct { AzureBackup *AzureBackupRule_STATUS `json:"azureBackupRule,omitempty"` AzureRetention *AzureRetentionRule_STATUS `json:"azureRetentionRule,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.AzureBackupRule +// Storage version of v1api20231101.AzureBackupRule type AzureBackupRule struct { BackupParameters *BackupParameters `json:"backupParameters,omitempty"` DataStore *DataStoreInfoBase `json:"dataStore,omitempty"` @@ -257,7 +257,7 @@ type AzureBackupRule struct { Trigger *TriggerContext `json:"trigger,omitempty"` } -// Storage version of v1api20231201.AzureBackupRule_STATUS +// Storage version of v1api20231101.AzureBackupRule_STATUS type AzureBackupRule_STATUS struct { BackupParameters *BackupParameters_STATUS `json:"backupParameters,omitempty"` DataStore *DataStoreInfoBase_STATUS `json:"dataStore,omitempty"` @@ -267,7 +267,7 @@ type AzureBackupRule_STATUS struct { Trigger *TriggerContext_STATUS `json:"trigger,omitempty"` } -// Storage version of v1api20231201.AzureRetentionRule +// Storage version of v1api20231101.AzureRetentionRule type AzureRetentionRule struct { IsDefault *bool `json:"isDefault,omitempty"` Lifecycles []SourceLifeCycle `json:"lifecycles,omitempty"` @@ -276,7 +276,7 @@ type AzureRetentionRule struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.AzureRetentionRule_STATUS +// Storage version of v1api20231101.AzureRetentionRule_STATUS type AzureRetentionRule_STATUS struct { IsDefault *bool `json:"isDefault,omitempty"` Lifecycles []SourceLifeCycle_STATUS `json:"lifecycles,omitempty"` @@ -285,19 +285,19 @@ type AzureRetentionRule_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.BackupParameters +// Storage version of v1api20231101.BackupParameters type BackupParameters struct { AzureBackupParams *AzureBackupParams `json:"azureBackupParams,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.BackupParameters_STATUS +// Storage version of v1api20231101.BackupParameters_STATUS type BackupParameters_STATUS struct { AzureBackupParams *AzureBackupParams_STATUS `json:"azureBackupParams,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.DataStoreInfoBase +// Storage version of v1api20231101.DataStoreInfoBase // DataStoreInfo base type DataStoreInfoBase struct { DataStoreType *string `json:"dataStoreType,omitempty"` @@ -305,7 +305,7 @@ type DataStoreInfoBase struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.DataStoreInfoBase_STATUS +// Storage version of v1api20231101.DataStoreInfoBase_STATUS // DataStoreInfo base type DataStoreInfoBase_STATUS struct { DataStoreType *string `json:"dataStoreType,omitempty"` @@ -313,7 +313,7 @@ type DataStoreInfoBase_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.SourceLifeCycle +// Storage version of v1api20231101.SourceLifeCycle // Source LifeCycle type SourceLifeCycle struct { DeleteAfter *DeleteOption `json:"deleteAfter,omitempty"` @@ -322,7 +322,7 @@ type SourceLifeCycle struct { TargetDataStoreCopySettings []TargetCopySetting `json:"targetDataStoreCopySettings,omitempty"` } -// Storage version of v1api20231201.SourceLifeCycle_STATUS +// Storage version of v1api20231101.SourceLifeCycle_STATUS // Source LifeCycle type SourceLifeCycle_STATUS struct { DeleteAfter *DeleteOption_STATUS `json:"deleteAfter,omitempty"` @@ -331,61 +331,61 @@ type SourceLifeCycle_STATUS struct { TargetDataStoreCopySettings []TargetCopySetting_STATUS `json:"targetDataStoreCopySettings,omitempty"` } -// Storage version of v1api20231201.TriggerContext +// Storage version of v1api20231101.TriggerContext type TriggerContext struct { Adhoc *AdhocBasedTriggerContext `json:"adhocBasedTriggerContext,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` Schedule *ScheduleBasedTriggerContext `json:"scheduleBasedTriggerContext,omitempty"` } -// Storage version of v1api20231201.TriggerContext_STATUS +// Storage version of v1api20231101.TriggerContext_STATUS type TriggerContext_STATUS struct { Adhoc *AdhocBasedTriggerContext_STATUS `json:"adhocBasedTriggerContext,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` Schedule *ScheduleBasedTriggerContext_STATUS `json:"scheduleBasedTriggerContext,omitempty"` } -// Storage version of v1api20231201.AdhocBasedTriggerContext +// Storage version of v1api20231101.AdhocBasedTriggerContext type AdhocBasedTriggerContext struct { ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` TaggingCriteria *AdhocBasedTaggingCriteria `json:"taggingCriteria,omitempty"` } -// Storage version of v1api20231201.AdhocBasedTriggerContext_STATUS +// Storage version of v1api20231101.AdhocBasedTriggerContext_STATUS type AdhocBasedTriggerContext_STATUS struct { ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` TaggingCriteria *AdhocBasedTaggingCriteria_STATUS `json:"taggingCriteria,omitempty"` } -// Storage version of v1api20231201.AzureBackupParams +// Storage version of v1api20231101.AzureBackupParams type AzureBackupParams struct { BackupType *string `json:"backupType,omitempty"` ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.AzureBackupParams_STATUS +// Storage version of v1api20231101.AzureBackupParams_STATUS type AzureBackupParams_STATUS struct { BackupType *string `json:"backupType,omitempty"` ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.DeleteOption +// Storage version of v1api20231101.DeleteOption type DeleteOption struct { AbsoluteDeleteOption *AbsoluteDeleteOption `json:"absoluteDeleteOption,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.DeleteOption_STATUS +// Storage version of v1api20231101.DeleteOption_STATUS type DeleteOption_STATUS struct { AbsoluteDeleteOption *AbsoluteDeleteOption_STATUS `json:"absoluteDeleteOption,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.ScheduleBasedTriggerContext +// Storage version of v1api20231101.ScheduleBasedTriggerContext type ScheduleBasedTriggerContext struct { ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` @@ -393,7 +393,7 @@ type ScheduleBasedTriggerContext struct { TaggingCriteria []TaggingCriteria `json:"taggingCriteria,omitempty"` } -// Storage version of v1api20231201.ScheduleBasedTriggerContext_STATUS +// Storage version of v1api20231101.ScheduleBasedTriggerContext_STATUS type ScheduleBasedTriggerContext_STATUS struct { ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` @@ -401,7 +401,7 @@ type ScheduleBasedTriggerContext_STATUS struct { TaggingCriteria []TaggingCriteria_STATUS `json:"taggingCriteria,omitempty"` } -// Storage version of v1api20231201.TargetCopySetting +// Storage version of v1api20231101.TargetCopySetting // Target copy settings type TargetCopySetting struct { CopyAfter *CopyOption `json:"copyAfter,omitempty"` @@ -409,7 +409,7 @@ type TargetCopySetting struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.TargetCopySetting_STATUS +// Storage version of v1api20231101.TargetCopySetting_STATUS // Target copy settings type TargetCopySetting_STATUS struct { CopyAfter *CopyOption_STATUS `json:"copyAfter,omitempty"` @@ -417,35 +417,35 @@ type TargetCopySetting_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.AbsoluteDeleteOption +// Storage version of v1api20231101.AbsoluteDeleteOption type AbsoluteDeleteOption struct { Duration *string `json:"duration,omitempty"` ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.AbsoluteDeleteOption_STATUS +// Storage version of v1api20231101.AbsoluteDeleteOption_STATUS type AbsoluteDeleteOption_STATUS struct { Duration *string `json:"duration,omitempty"` ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.AdhocBasedTaggingCriteria +// Storage version of v1api20231101.AdhocBasedTaggingCriteria // Adhoc backup tagging criteria type AdhocBasedTaggingCriteria struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` TagInfo *RetentionTag `json:"tagInfo,omitempty"` } -// Storage version of v1api20231201.AdhocBasedTaggingCriteria_STATUS +// Storage version of v1api20231101.AdhocBasedTaggingCriteria_STATUS // Adhoc backup tagging criteria type AdhocBasedTaggingCriteria_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` TagInfo *RetentionTag_STATUS `json:"tagInfo,omitempty"` } -// Storage version of v1api20231201.BackupSchedule +// Storage version of v1api20231101.BackupSchedule // Schedule for backup type BackupSchedule struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` @@ -453,7 +453,7 @@ type BackupSchedule struct { TimeZone *string `json:"timeZone,omitempty"` } -// Storage version of v1api20231201.BackupSchedule_STATUS +// Storage version of v1api20231101.BackupSchedule_STATUS // Schedule for backup type BackupSchedule_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` @@ -461,7 +461,7 @@ type BackupSchedule_STATUS struct { TimeZone *string `json:"timeZone,omitempty"` } -// Storage version of v1api20231201.CopyOption +// Storage version of v1api20231101.CopyOption type CopyOption struct { CopyOnExpiry *CopyOnExpiryOption `json:"copyOnExpiryOption,omitempty"` CustomCopy *CustomCopyOption `json:"customCopyOption,omitempty"` @@ -469,7 +469,7 @@ type CopyOption struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.CopyOption_STATUS +// Storage version of v1api20231101.CopyOption_STATUS type CopyOption_STATUS struct { CopyOnExpiry *CopyOnExpiryOption_STATUS `json:"copyOnExpiryOption,omitempty"` CustomCopy *CustomCopyOption_STATUS `json:"customCopyOption,omitempty"` @@ -477,7 +477,7 @@ type CopyOption_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.TaggingCriteria +// Storage version of v1api20231101.TaggingCriteria // Tagging criteria type TaggingCriteria struct { Criteria []BackupCriteria `json:"criteria,omitempty"` @@ -487,7 +487,7 @@ type TaggingCriteria struct { TaggingPriority *int `json:"taggingPriority,omitempty"` } -// Storage version of v1api20231201.TaggingCriteria_STATUS +// Storage version of v1api20231101.TaggingCriteria_STATUS // Tagging criteria type TaggingCriteria_STATUS struct { Criteria []BackupCriteria_STATUS `json:"criteria,omitempty"` @@ -497,64 +497,64 @@ type TaggingCriteria_STATUS struct { TaggingPriority *int `json:"taggingPriority,omitempty"` } -// Storage version of v1api20231201.BackupCriteria +// Storage version of v1api20231101.BackupCriteria type BackupCriteria struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` ScheduleBasedBackupCriteria *ScheduleBasedBackupCriteria `json:"scheduleBasedBackupCriteria,omitempty"` } -// Storage version of v1api20231201.BackupCriteria_STATUS +// Storage version of v1api20231101.BackupCriteria_STATUS type BackupCriteria_STATUS struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` ScheduleBasedBackupCriteria *ScheduleBasedBackupCriteria_STATUS `json:"scheduleBasedBackupCriteria,omitempty"` } -// Storage version of v1api20231201.CopyOnExpiryOption +// Storage version of v1api20231101.CopyOnExpiryOption type CopyOnExpiryOption struct { ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.CopyOnExpiryOption_STATUS +// Storage version of v1api20231101.CopyOnExpiryOption_STATUS type CopyOnExpiryOption_STATUS struct { ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.CustomCopyOption +// Storage version of v1api20231101.CustomCopyOption type CustomCopyOption struct { Duration *string `json:"duration,omitempty"` ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.CustomCopyOption_STATUS +// Storage version of v1api20231101.CustomCopyOption_STATUS type CustomCopyOption_STATUS struct { Duration *string `json:"duration,omitempty"` ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.ImmediateCopyOption +// Storage version of v1api20231101.ImmediateCopyOption type ImmediateCopyOption struct { ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.ImmediateCopyOption_STATUS +// Storage version of v1api20231101.ImmediateCopyOption_STATUS type ImmediateCopyOption_STATUS struct { ObjectType *string `json:"objectType,omitempty"` PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.RetentionTag +// Storage version of v1api20231101.RetentionTag // Retention tag type RetentionTag struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` TagName *string `json:"tagName,omitempty"` } -// Storage version of v1api20231201.RetentionTag_STATUS +// Storage version of v1api20231101.RetentionTag_STATUS // Retention tag type RetentionTag_STATUS struct { ETag *string `json:"eTag,omitempty"` @@ -563,7 +563,7 @@ type RetentionTag_STATUS struct { TagName *string `json:"tagName,omitempty"` } -// Storage version of v1api20231201.ScheduleBasedBackupCriteria +// Storage version of v1api20231101.ScheduleBasedBackupCriteria type ScheduleBasedBackupCriteria struct { AbsoluteCriteria []string `json:"absoluteCriteria,omitempty"` DaysOfMonth []Day `json:"daysOfMonth,omitempty"` @@ -575,7 +575,7 @@ type ScheduleBasedBackupCriteria struct { WeeksOfTheMonth []string `json:"weeksOfTheMonth,omitempty"` } -// Storage version of v1api20231201.ScheduleBasedBackupCriteria_STATUS +// Storage version of v1api20231101.ScheduleBasedBackupCriteria_STATUS type ScheduleBasedBackupCriteria_STATUS struct { AbsoluteCriteria []string `json:"absoluteCriteria,omitempty"` DaysOfMonth []Day_STATUS `json:"daysOfMonth,omitempty"` @@ -587,7 +587,7 @@ type ScheduleBasedBackupCriteria_STATUS struct { WeeksOfTheMonth []string `json:"weeksOfTheMonth,omitempty"` } -// Storage version of v1api20231201.Day +// Storage version of v1api20231101.Day // Day of the week type Day struct { Date *int `json:"date,omitempty"` @@ -595,7 +595,7 @@ type Day struct { PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"` } -// Storage version of v1api20231201.Day_STATUS +// Storage version of v1api20231101.Day_STATUS // Day of the week type Day_STATUS struct { Date *int `json:"date,omitempty"` diff --git a/v2/api/dataprotection/v1api20231201/storage/backup_vaults_backup_policy_types_gen_test.go b/v2/api/dataprotection/v1api20231101/storage/backup_vaults_backup_policy_types_gen_test.go similarity index 100% rename from v2/api/dataprotection/v1api20231201/storage/backup_vaults_backup_policy_types_gen_test.go rename to v2/api/dataprotection/v1api20231101/storage/backup_vaults_backup_policy_types_gen_test.go diff --git a/v2/api/dataprotection/v1api20231201/storage/groupversion_info_gen.go b/v2/api/dataprotection/v1api20231101/storage/groupversion_info_gen.go similarity index 92% rename from v2/api/dataprotection/v1api20231201/storage/groupversion_info_gen.go rename to v2/api/dataprotection/v1api20231101/storage/groupversion_info_gen.go index 4bc3025a354..9f6c8daf491 100644 --- a/v2/api/dataprotection/v1api20231201/storage/groupversion_info_gen.go +++ b/v2/api/dataprotection/v1api20231101/storage/groupversion_info_gen.go @@ -10,7 +10,7 @@ Licensed under the MIT license. // All object properties are optional by default, this will be overridden when needed: // +kubebuilder:validation:Optional // +groupName=dataprotection.azure.com -// +versionName=v1api20231201storage +// +versionName=v1api20231101storage package storage import ( @@ -20,7 +20,7 @@ import ( var ( // GroupVersion is group version used to register these objects - GroupVersion = schema.GroupVersion{Group: "dataprotection.azure.com", Version: "v1api20231201storage"} + GroupVersion = schema.GroupVersion{Group: "dataprotection.azure.com", Version: "v1api20231101storage"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} diff --git a/v2/api/dataprotection/v1api20231201/storage/structure.txt b/v2/api/dataprotection/v1api20231101/storage/structure.txt similarity index 99% rename from v2/api/dataprotection/v1api20231201/storage/structure.txt rename to v2/api/dataprotection/v1api20231101/storage/structure.txt index 9cbf9da9bd9..6d372eb69a8 100644 --- a/v2/api/dataprotection/v1api20231201/storage/structure.txt +++ b/v2/api/dataprotection/v1api20231101/storage/structure.txt @@ -1,7 +1,7 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. -github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage +github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage ├── APIVersion: Enum (1 value) -│ └── "2023-12-01" +│ └── "2023-11-01" ├── BackupVault: Resource │ ├── Owner: resources/v1apiv20191001.ResourceGroup │ ├── Spec: Object (9 properties) @@ -118,7 +118,7 @@ github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/stor │ ├── Tags: map[string]string │ └── Type: *string ├── BackupVaultsBackupInstance: Resource -│ ├── Owner: dataprotection/v1api20231201.BackupVault +│ ├── Owner: dataprotection/v1api20231101.BackupVault │ ├── Spec: Object (6 properties) │ │ ├── AzureName: string │ │ ├── OriginalVersion: string @@ -373,7 +373,7 @@ github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/stor │ ├── Tags: map[string]string │ └── Type: *string └── BackupVaultsBackupPolicy: Resource - ├── Owner: dataprotection/v1api20231201.BackupVault + ├── Owner: dataprotection/v1api20231101.BackupVault ├── Spec: Object (5 properties) │ ├── AzureName: string │ ├── OriginalVersion: string diff --git a/v2/api/dataprotection/v1api20231201/storage/zz_generated.deepcopy.go b/v2/api/dataprotection/v1api20231101/storage/zz_generated.deepcopy.go similarity index 100% rename from v2/api/dataprotection/v1api20231201/storage/zz_generated.deepcopy.go rename to v2/api/dataprotection/v1api20231101/storage/zz_generated.deepcopy.go diff --git a/v2/api/dataprotection/v1api20231201/structure.txt b/v2/api/dataprotection/v1api20231101/structure.txt similarity index 99% rename from v2/api/dataprotection/v1api20231201/structure.txt rename to v2/api/dataprotection/v1api20231101/structure.txt index 74726843702..f3d858fc105 100644 --- a/v2/api/dataprotection/v1api20231201/structure.txt +++ b/v2/api/dataprotection/v1api20231101/structure.txt @@ -1,7 +1,7 @@ // Code generated by azure-service-operator-codegen. DO NOT EDIT. -github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201 +github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101 ├── APIVersion: Enum (1 value) -│ └── "2023-12-01" +│ └── "2023-11-01" ├── BackupVault: Resource │ ├── Owner: resources/v1apiv20191001.ResourceGroup │ ├── Spec: Object (7 properties) diff --git a/v2/api/dataprotection/v1api20231201/zz_generated.deepcopy.go b/v2/api/dataprotection/v1api20231101/zz_generated.deepcopy.go similarity index 99% rename from v2/api/dataprotection/v1api20231201/zz_generated.deepcopy.go rename to v2/api/dataprotection/v1api20231101/zz_generated.deepcopy.go index a12d85ccaf4..01793cbc299 100644 --- a/v2/api/dataprotection/v1api20231201/zz_generated.deepcopy.go +++ b/v2/api/dataprotection/v1api20231101/zz_generated.deepcopy.go @@ -7,7 +7,7 @@ Licensed under the MIT license. // Code generated by controller-gen. DO NOT EDIT. -package v1api20231201 +package v1api20231101 import ( "github.com/Azure/azure-service-operator/v2/pkg/genruntime" diff --git a/v2/api/dataprotection/versions_matrix.md b/v2/api/dataprotection/versions_matrix.md index 9c8a64f7d14..f2025d9833b 100644 --- a/v2/api/dataprotection/versions_matrix.md +++ b/v2/api/dataprotection/versions_matrix.md @@ -1,198 +1,198 @@ -| Type Definitions in package "dataprotection" | v1api20230101 | v1api20231201 | +| Type Definitions in package "dataprotection" | v1api20230101 | v1api20231101 | |---------------------------------------------------------------|---------------|---------------| -| APIVersion | v1api20230101 | v1api20231201 | -| AbsoluteDeleteOption | v1api20230101 | v1api20231201 | -| AbsoluteDeleteOption_ObjectType | v1api20230101 | v1api20231201 | -| AbsoluteDeleteOption_ObjectType_STATUS | v1api20230101 | v1api20231201 | -| AbsoluteDeleteOption_STATUS | v1api20230101 | v1api20231201 | -| AdhocBasedTaggingCriteria | v1api20230101 | v1api20231201 | -| AdhocBasedTaggingCriteria_STATUS | v1api20230101 | v1api20231201 | -| AdhocBasedTriggerContext | v1api20230101 | v1api20231201 | -| AdhocBasedTriggerContext_ObjectType | v1api20230101 | v1api20231201 | -| AdhocBasedTriggerContext_ObjectType_STATUS | v1api20230101 | v1api20231201 | -| AdhocBasedTriggerContext_STATUS | v1api20230101 | v1api20231201 | -| AuthCredentials | v1api20230101 | v1api20231201 | -| AuthCredentials_STATUS | v1api20230101 | v1api20231201 | -| AzureBackupParams | v1api20230101 | v1api20231201 | -| AzureBackupParams_ObjectType | v1api20230101 | v1api20231201 | -| AzureBackupParams_ObjectType_STATUS | v1api20230101 | v1api20231201 | -| AzureBackupParams_STATUS | v1api20230101 | v1api20231201 | -| AzureBackupRule | v1api20230101 | v1api20231201 | -| AzureBackupRule_ObjectType | v1api20230101 | v1api20231201 | -| AzureBackupRule_ObjectType_STATUS | v1api20230101 | v1api20231201 | -| AzureBackupRule_STATUS | v1api20230101 | v1api20231201 | -| AzureMonitorAlertSettings | v1api20230101 | v1api20231201 | -| AzureMonitorAlertSettings_AlertsForAllJobFailures | v1api20230101 | v1api20231201 | -| AzureMonitorAlertSettings_AlertsForAllJobFailures_STATUS | v1api20230101 | v1api20231201 | -| AzureMonitorAlertSettings_STATUS | v1api20230101 | v1api20231201 | -| AzureOperationalStoreParameters | v1api20230101 | v1api20231201 | -| AzureOperationalStoreParameters_DataStoreType | v1api20230101 | v1api20231201 | -| AzureOperationalStoreParameters_DataStoreType_STATUS | v1api20230101 | v1api20231201 | -| AzureOperationalStoreParameters_ObjectType | v1api20230101 | v1api20231201 | -| AzureOperationalStoreParameters_ObjectType_STATUS | v1api20230101 | v1api20231201 | -| AzureOperationalStoreParameters_STATUS | v1api20230101 | v1api20231201 | -| AzureRetentionRule | v1api20230101 | v1api20231201 | -| AzureRetentionRule_ObjectType | v1api20230101 | v1api20231201 | -| AzureRetentionRule_ObjectType_STATUS | v1api20230101 | v1api20231201 | -| AzureRetentionRule_STATUS | v1api20230101 | v1api20231201 | -| BackupCriteria | v1api20230101 | v1api20231201 | -| BackupCriteria_STATUS | v1api20230101 | v1api20231201 | -| BackupDatasourceParameters | v1api20230101 | v1api20231201 | -| BackupDatasourceParameters_STATUS | v1api20230101 | v1api20231201 | -| BackupInstance | v1api20230101 | v1api20231201 | -| BackupInstance_CurrentProtectionState_STATUS | v1api20230101 | v1api20231201 | -| BackupInstance_STATUS | v1api20230101 | v1api20231201 | -| BackupInstance_ValidationType | v1api20230101 | v1api20231201 | -| BackupInstance_ValidationType_STATUS | v1api20230101 | v1api20231201 | -| BackupParameters | v1api20230101 | v1api20231201 | -| BackupParameters_STATUS | v1api20230101 | v1api20231201 | -| BackupPolicy | v1api20230101 | v1api20231201 | -| BackupPolicy_ObjectType | v1api20230101 | v1api20231201 | -| BackupPolicy_ObjectType_STATUS | v1api20230101 | v1api20231201 | -| BackupPolicy_STATUS | v1api20230101 | v1api20231201 | -| BackupSchedule | v1api20230101 | v1api20231201 | -| BackupSchedule_STATUS | v1api20230101 | v1api20231201 | -| BackupVault | v1api20230101 | v1api20231201 | -| BackupVaultResource_STATUS | v1api20230101 | v1api20231201 | -| BackupVaultSpec | v1api20230101 | v1api20231201 | -| BackupVault_ProvisioningState_STATUS | v1api20230101 | v1api20231201 | -| BackupVault_ResourceMoveState_STATUS | v1api20230101 | v1api20231201 | -| BackupVault_STATUS | v1api20230101 | v1api20231201 | -| BackupVault_SecureScore_STATUS | | v1api20231201 | -| BackupVault_Spec | v1api20230101 | v1api20231201 | -| BackupVaultsBackupInstance | v1api20230101 | v1api20231201 | -| BackupVaultsBackupPolicy | v1api20230101 | v1api20231201 | -| BackupVaults_BackupInstance_STATUS | v1api20230101 | v1api20231201 | -| BackupVaults_BackupInstance_Spec | v1api20230101 | v1api20231201 | -| BackupVaults_BackupPolicy_STATUS | v1api20230101 | v1api20231201 | -| BackupVaults_BackupPolicy_Spec | v1api20230101 | v1api20231201 | -| BaseBackupPolicy | v1api20230101 | v1api20231201 | -| BaseBackupPolicy_STATUS | v1api20230101 | v1api20231201 | -| BasePolicyRule | v1api20230101 | v1api20231201 | -| BasePolicyRule_STATUS | v1api20230101 | v1api20231201 | -| BaseResourceProperties | | v1api20231201 | -| BaseResourceProperties_STATUS | | v1api20231201 | -| BlobBackupDatasourceParameters | v1api20230101 | v1api20231201 | -| BlobBackupDatasourceParameters_ObjectType | v1api20230101 | v1api20231201 | -| BlobBackupDatasourceParameters_ObjectType_STATUS | v1api20230101 | v1api20231201 | -| BlobBackupDatasourceParameters_STATUS | v1api20230101 | v1api20231201 | -| CopyOnExpiryOption | v1api20230101 | v1api20231201 | -| CopyOnExpiryOption_ObjectType | v1api20230101 | v1api20231201 | -| CopyOnExpiryOption_ObjectType_STATUS | v1api20230101 | v1api20231201 | -| CopyOnExpiryOption_STATUS | v1api20230101 | v1api20231201 | -| CopyOption | v1api20230101 | v1api20231201 | -| CopyOption_STATUS | v1api20230101 | v1api20231201 | -| CrossRegionRestoreSettings | | v1api20231201 | -| CrossRegionRestoreSettings_STATUS | | v1api20231201 | -| CrossRegionRestoreSettings_State | | v1api20231201 | -| CrossRegionRestoreSettings_State_STATUS | | v1api20231201 | -| CrossSubscriptionRestoreSettings | v1api20230101 | v1api20231201 | -| CrossSubscriptionRestoreSettings_STATUS | v1api20230101 | v1api20231201 | -| CrossSubscriptionRestoreSettings_State | v1api20230101 | v1api20231201 | -| CrossSubscriptionRestoreSettings_State_STATUS | v1api20230101 | v1api20231201 | -| CustomCopyOption | v1api20230101 | v1api20231201 | -| CustomCopyOption_ObjectType | v1api20230101 | v1api20231201 | -| CustomCopyOption_ObjectType_STATUS | v1api20230101 | v1api20231201 | -| CustomCopyOption_STATUS | v1api20230101 | v1api20231201 | -| DataStoreInfoBase | v1api20230101 | v1api20231201 | -| DataStoreInfoBase_DataStoreType | v1api20230101 | v1api20231201 | -| DataStoreInfoBase_DataStoreType_STATUS | v1api20230101 | v1api20231201 | -| DataStoreInfoBase_STATUS | v1api20230101 | v1api20231201 | -| DataStoreParameters | v1api20230101 | v1api20231201 | -| DataStoreParameters_STATUS | v1api20230101 | v1api20231201 | -| Datasource | v1api20230101 | v1api20231201 | -| DatasourceSet | v1api20230101 | v1api20231201 | -| DatasourceSet_STATUS | v1api20230101 | v1api20231201 | -| Datasource_STATUS | v1api20230101 | v1api20231201 | -| Day | v1api20230101 | v1api20231201 | -| Day_STATUS | v1api20230101 | v1api20231201 | -| DefaultResourceProperties | | v1api20231201 | -| DefaultResourceProperties_ObjectType | | v1api20231201 | -| DefaultResourceProperties_ObjectType_STATUS | | v1api20231201 | -| DefaultResourceProperties_STATUS | | v1api20231201 | -| DeleteOption | v1api20230101 | v1api20231201 | -| DeleteOption_STATUS | v1api20230101 | v1api20231201 | -| DppIdentityDetails | v1api20230101 | v1api20231201 | -| DppIdentityDetails_STATUS | v1api20230101 | v1api20231201 | -| FeatureSettings | v1api20230101 | v1api20231201 | -| FeatureSettings_STATUS | v1api20230101 | v1api20231201 | -| IdentityDetails | | v1api20231201 | -| IdentityDetails_STATUS | | v1api20231201 | -| ImmediateCopyOption | v1api20230101 | v1api20231201 | -| ImmediateCopyOption_ObjectType | v1api20230101 | v1api20231201 | -| ImmediateCopyOption_ObjectType_STATUS | v1api20230101 | v1api20231201 | -| ImmediateCopyOption_STATUS | v1api20230101 | v1api20231201 | -| ImmutabilitySettings | v1api20230101 | v1api20231201 | -| ImmutabilitySettings_STATUS | v1api20230101 | v1api20231201 | -| ImmutabilitySettings_State | v1api20230101 | v1api20231201 | -| ImmutabilitySettings_State_STATUS | v1api20230101 | v1api20231201 | -| InnerError_STATUS | v1api20230101 | v1api20231201 | -| InnerError_STATUS_Unrolled | v1api20230101 | v1api20231201 | -| KubernetesClusterBackupDatasourceParameters | v1api20230101 | v1api20231201 | -| KubernetesClusterBackupDatasourceParameters_ObjectType | v1api20230101 | v1api20231201 | -| KubernetesClusterBackupDatasourceParameters_ObjectType_STATUS | v1api20230101 | v1api20231201 | -| KubernetesClusterBackupDatasourceParameters_STATUS | v1api20230101 | v1api20231201 | -| MonitoringSettings | v1api20230101 | v1api20231201 | -| MonitoringSettings_STATUS | v1api20230101 | v1api20231201 | -| NamespacedNameResource | | v1api20231201 | -| NamespacedNameResource_STATUS | | v1api20231201 | -| PolicyInfo | v1api20230101 | v1api20231201 | -| PolicyInfo_STATUS | v1api20230101 | v1api20231201 | -| PolicyParameters | v1api20230101 | v1api20231201 | -| PolicyParameters_STATUS | v1api20230101 | v1api20231201 | -| ProtectionStatusDetails_STATUS | v1api20230101 | v1api20231201 | -| ProtectionStatusDetails_Status_STATUS | v1api20230101 | v1api20231201 | -| ResourceMoveDetails_STATUS | v1api20230101 | v1api20231201 | -| RetentionTag | v1api20230101 | v1api20231201 | -| RetentionTag_STATUS | v1api20230101 | v1api20231201 | -| ScheduleBasedBackupCriteria | v1api20230101 | v1api20231201 | -| ScheduleBasedBackupCriteria_AbsoluteCriteria | v1api20230101 | v1api20231201 | -| ScheduleBasedBackupCriteria_AbsoluteCriteria_STATUS | v1api20230101 | v1api20231201 | -| ScheduleBasedBackupCriteria_DaysOfTheWeek | v1api20230101 | v1api20231201 | -| ScheduleBasedBackupCriteria_DaysOfTheWeek_STATUS | v1api20230101 | v1api20231201 | -| ScheduleBasedBackupCriteria_MonthsOfYear | v1api20230101 | v1api20231201 | -| ScheduleBasedBackupCriteria_MonthsOfYear_STATUS | v1api20230101 | v1api20231201 | -| ScheduleBasedBackupCriteria_ObjectType | v1api20230101 | v1api20231201 | -| ScheduleBasedBackupCriteria_ObjectType_STATUS | v1api20230101 | v1api20231201 | -| ScheduleBasedBackupCriteria_STATUS | v1api20230101 | v1api20231201 | -| ScheduleBasedBackupCriteria_WeeksOfTheMonth | v1api20230101 | v1api20231201 | -| ScheduleBasedBackupCriteria_WeeksOfTheMonth_STATUS | v1api20230101 | v1api20231201 | -| ScheduleBasedTriggerContext | v1api20230101 | v1api20231201 | -| ScheduleBasedTriggerContext_ObjectType | v1api20230101 | v1api20231201 | -| ScheduleBasedTriggerContext_ObjectType_STATUS | v1api20230101 | v1api20231201 | -| ScheduleBasedTriggerContext_STATUS | v1api20230101 | v1api20231201 | -| SecretStoreBasedAuthCredentials | v1api20230101 | v1api20231201 | -| SecretStoreBasedAuthCredentials_ObjectType | v1api20230101 | v1api20231201 | -| SecretStoreBasedAuthCredentials_ObjectType_STATUS | v1api20230101 | v1api20231201 | -| SecretStoreBasedAuthCredentials_STATUS | v1api20230101 | v1api20231201 | -| SecretStoreResource | v1api20230101 | v1api20231201 | -| SecretStoreResource_STATUS | v1api20230101 | v1api20231201 | -| SecretStoreResource_SecretStoreType | v1api20230101 | v1api20231201 | -| SecretStoreResource_SecretStoreType_STATUS | v1api20230101 | v1api20231201 | -| SecuritySettings | v1api20230101 | v1api20231201 | -| SecuritySettings_STATUS | v1api20230101 | v1api20231201 | -| SoftDeleteSettings | v1api20230101 | v1api20231201 | -| SoftDeleteSettings_STATUS | v1api20230101 | v1api20231201 | -| SoftDeleteSettings_State | v1api20230101 | v1api20231201 | -| SoftDeleteSettings_State_STATUS | v1api20230101 | v1api20231201 | -| SourceLifeCycle | v1api20230101 | v1api20231201 | -| SourceLifeCycle_STATUS | v1api20230101 | v1api20231201 | -| StorageSetting | v1api20230101 | v1api20231201 | -| StorageSetting_DatastoreType | v1api20230101 | v1api20231201 | -| StorageSetting_DatastoreType_STATUS | v1api20230101 | v1api20231201 | -| StorageSetting_STATUS | v1api20230101 | v1api20231201 | -| StorageSetting_Type | v1api20230101 | v1api20231201 | -| StorageSetting_Type_STATUS | v1api20230101 | v1api20231201 | -| SystemData_CreatedByType_STATUS | v1api20230101 | v1api20231201 | -| SystemData_LastModifiedByType_STATUS | v1api20230101 | v1api20231201 | -| SystemData_STATUS | v1api20230101 | v1api20231201 | -| TaggingCriteria | v1api20230101 | v1api20231201 | -| TaggingCriteria_STATUS | v1api20230101 | v1api20231201 | -| TargetCopySetting | v1api20230101 | v1api20231201 | -| TargetCopySetting_STATUS | v1api20230101 | v1api20231201 | -| TriggerContext | v1api20230101 | v1api20231201 | -| TriggerContext_STATUS | v1api20230101 | v1api20231201 | -| UserAssignedIdentityDetails | | v1api20231201 | -| UserAssignedIdentity_STATUS | | v1api20231201 | -| UserFacingError_STATUS | v1api20230101 | v1api20231201 | -| UserFacingError_STATUS_Unrolled | v1api20230101 | v1api20231201 | +| APIVersion | v1api20230101 | v1api20231101 | +| AbsoluteDeleteOption | v1api20230101 | v1api20231101 | +| AbsoluteDeleteOption_ObjectType | v1api20230101 | v1api20231101 | +| AbsoluteDeleteOption_ObjectType_STATUS | v1api20230101 | v1api20231101 | +| AbsoluteDeleteOption_STATUS | v1api20230101 | v1api20231101 | +| AdhocBasedTaggingCriteria | v1api20230101 | v1api20231101 | +| AdhocBasedTaggingCriteria_STATUS | v1api20230101 | v1api20231101 | +| AdhocBasedTriggerContext | v1api20230101 | v1api20231101 | +| AdhocBasedTriggerContext_ObjectType | v1api20230101 | v1api20231101 | +| AdhocBasedTriggerContext_ObjectType_STATUS | v1api20230101 | v1api20231101 | +| AdhocBasedTriggerContext_STATUS | v1api20230101 | v1api20231101 | +| AuthCredentials | | v1api20231101 | +| AuthCredentials_STATUS | | v1api20231101 | +| AzureBackupParams | v1api20230101 | v1api20231101 | +| AzureBackupParams_ObjectType | v1api20230101 | v1api20231101 | +| AzureBackupParams_ObjectType_STATUS | v1api20230101 | v1api20231101 | +| AzureBackupParams_STATUS | v1api20230101 | v1api20231101 | +| AzureBackupRule | v1api20230101 | v1api20231101 | +| AzureBackupRule_ObjectType | v1api20230101 | v1api20231101 | +| AzureBackupRule_ObjectType_STATUS | v1api20230101 | v1api20231101 | +| AzureBackupRule_STATUS | v1api20230101 | v1api20231101 | +| AzureMonitorAlertSettings | v1api20230101 | v1api20231101 | +| AzureMonitorAlertSettings_AlertsForAllJobFailures | v1api20230101 | v1api20231101 | +| AzureMonitorAlertSettings_AlertsForAllJobFailures_STATUS | v1api20230101 | v1api20231101 | +| AzureMonitorAlertSettings_STATUS | v1api20230101 | v1api20231101 | +| AzureOperationalStoreParameters | | v1api20231101 | +| AzureOperationalStoreParameters_DataStoreType | | v1api20231101 | +| AzureOperationalStoreParameters_DataStoreType_STATUS | | v1api20231101 | +| AzureOperationalStoreParameters_ObjectType | | v1api20231101 | +| AzureOperationalStoreParameters_ObjectType_STATUS | | v1api20231101 | +| AzureOperationalStoreParameters_STATUS | | v1api20231101 | +| AzureRetentionRule | v1api20230101 | v1api20231101 | +| AzureRetentionRule_ObjectType | v1api20230101 | v1api20231101 | +| AzureRetentionRule_ObjectType_STATUS | v1api20230101 | v1api20231101 | +| AzureRetentionRule_STATUS | v1api20230101 | v1api20231101 | +| BackupCriteria | v1api20230101 | v1api20231101 | +| BackupCriteria_STATUS | v1api20230101 | v1api20231101 | +| BackupDatasourceParameters | | v1api20231101 | +| BackupDatasourceParameters_STATUS | | v1api20231101 | +| BackupInstance | | v1api20231101 | +| BackupInstance_CurrentProtectionState_STATUS | | v1api20231101 | +| BackupInstance_STATUS | | v1api20231101 | +| BackupInstance_ValidationType | | v1api20231101 | +| BackupInstance_ValidationType_STATUS | | v1api20231101 | +| BackupParameters | v1api20230101 | v1api20231101 | +| BackupParameters_STATUS | v1api20230101 | v1api20231101 | +| BackupPolicy | v1api20230101 | v1api20231101 | +| BackupPolicy_ObjectType | v1api20230101 | v1api20231101 | +| BackupPolicy_ObjectType_STATUS | v1api20230101 | v1api20231101 | +| BackupPolicy_STATUS | v1api20230101 | v1api20231101 | +| BackupSchedule | v1api20230101 | v1api20231101 | +| BackupSchedule_STATUS | v1api20230101 | v1api20231101 | +| BackupVault | v1api20230101 | v1api20231101 | +| BackupVaultResource_STATUS | v1api20230101 | v1api20231101 | +| BackupVaultSpec | v1api20230101 | v1api20231101 | +| BackupVault_ProvisioningState_STATUS | v1api20230101 | v1api20231101 | +| BackupVault_ResourceMoveState_STATUS | v1api20230101 | v1api20231101 | +| BackupVault_STATUS | v1api20230101 | v1api20231101 | +| BackupVault_SecureScore_STATUS | | v1api20231101 | +| BackupVault_Spec | v1api20230101 | v1api20231101 | +| BackupVaultsBackupInstance | | v1api20231101 | +| BackupVaultsBackupPolicy | v1api20230101 | v1api20231101 | +| BackupVaults_BackupInstance_STATUS | | v1api20231101 | +| BackupVaults_BackupInstance_Spec | | v1api20231101 | +| BackupVaults_BackupPolicy_STATUS | v1api20230101 | v1api20231101 | +| BackupVaults_BackupPolicy_Spec | v1api20230101 | v1api20231101 | +| BaseBackupPolicy | v1api20230101 | v1api20231101 | +| BaseBackupPolicy_STATUS | v1api20230101 | v1api20231101 | +| BasePolicyRule | v1api20230101 | v1api20231101 | +| BasePolicyRule_STATUS | v1api20230101 | v1api20231101 | +| BaseResourceProperties | | v1api20231101 | +| BaseResourceProperties_STATUS | | v1api20231101 | +| BlobBackupDatasourceParameters | | v1api20231101 | +| BlobBackupDatasourceParameters_ObjectType | | v1api20231101 | +| BlobBackupDatasourceParameters_ObjectType_STATUS | | v1api20231101 | +| BlobBackupDatasourceParameters_STATUS | | v1api20231101 | +| CopyOnExpiryOption | v1api20230101 | v1api20231101 | +| CopyOnExpiryOption_ObjectType | v1api20230101 | v1api20231101 | +| CopyOnExpiryOption_ObjectType_STATUS | v1api20230101 | v1api20231101 | +| CopyOnExpiryOption_STATUS | v1api20230101 | v1api20231101 | +| CopyOption | v1api20230101 | v1api20231101 | +| CopyOption_STATUS | v1api20230101 | v1api20231101 | +| CrossRegionRestoreSettings | | v1api20231101 | +| CrossRegionRestoreSettings_STATUS | | v1api20231101 | +| CrossRegionRestoreSettings_State | | v1api20231101 | +| CrossRegionRestoreSettings_State_STATUS | | v1api20231101 | +| CrossSubscriptionRestoreSettings | v1api20230101 | v1api20231101 | +| CrossSubscriptionRestoreSettings_STATUS | v1api20230101 | v1api20231101 | +| CrossSubscriptionRestoreSettings_State | v1api20230101 | v1api20231101 | +| CrossSubscriptionRestoreSettings_State_STATUS | v1api20230101 | v1api20231101 | +| CustomCopyOption | v1api20230101 | v1api20231101 | +| CustomCopyOption_ObjectType | v1api20230101 | v1api20231101 | +| CustomCopyOption_ObjectType_STATUS | v1api20230101 | v1api20231101 | +| CustomCopyOption_STATUS | v1api20230101 | v1api20231101 | +| DataStoreInfoBase | v1api20230101 | v1api20231101 | +| DataStoreInfoBase_DataStoreType | v1api20230101 | v1api20231101 | +| DataStoreInfoBase_DataStoreType_STATUS | v1api20230101 | v1api20231101 | +| DataStoreInfoBase_STATUS | v1api20230101 | v1api20231101 | +| DataStoreParameters | | v1api20231101 | +| DataStoreParameters_STATUS | | v1api20231101 | +| Datasource | | v1api20231101 | +| DatasourceSet | | v1api20231101 | +| DatasourceSet_STATUS | | v1api20231101 | +| Datasource_STATUS | | v1api20231101 | +| Day | v1api20230101 | v1api20231101 | +| Day_STATUS | v1api20230101 | v1api20231101 | +| DefaultResourceProperties | | v1api20231101 | +| DefaultResourceProperties_ObjectType | | v1api20231101 | +| DefaultResourceProperties_ObjectType_STATUS | | v1api20231101 | +| DefaultResourceProperties_STATUS | | v1api20231101 | +| DeleteOption | v1api20230101 | v1api20231101 | +| DeleteOption_STATUS | v1api20230101 | v1api20231101 | +| DppIdentityDetails | v1api20230101 | v1api20231101 | +| DppIdentityDetails_STATUS | v1api20230101 | v1api20231101 | +| FeatureSettings | v1api20230101 | v1api20231101 | +| FeatureSettings_STATUS | v1api20230101 | v1api20231101 | +| IdentityDetails | | v1api20231101 | +| IdentityDetails_STATUS | | v1api20231101 | +| ImmediateCopyOption | v1api20230101 | v1api20231101 | +| ImmediateCopyOption_ObjectType | v1api20230101 | v1api20231101 | +| ImmediateCopyOption_ObjectType_STATUS | v1api20230101 | v1api20231101 | +| ImmediateCopyOption_STATUS | v1api20230101 | v1api20231101 | +| ImmutabilitySettings | v1api20230101 | v1api20231101 | +| ImmutabilitySettings_STATUS | v1api20230101 | v1api20231101 | +| ImmutabilitySettings_State | v1api20230101 | v1api20231101 | +| ImmutabilitySettings_State_STATUS | v1api20230101 | v1api20231101 | +| InnerError_STATUS | | v1api20231101 | +| InnerError_STATUS_Unrolled | | v1api20231101 | +| KubernetesClusterBackupDatasourceParameters | | v1api20231101 | +| KubernetesClusterBackupDatasourceParameters_ObjectType | | v1api20231101 | +| KubernetesClusterBackupDatasourceParameters_ObjectType_STATUS | | v1api20231101 | +| KubernetesClusterBackupDatasourceParameters_STATUS | | v1api20231101 | +| MonitoringSettings | v1api20230101 | v1api20231101 | +| MonitoringSettings_STATUS | v1api20230101 | v1api20231101 | +| NamespacedNameResource | | v1api20231101 | +| NamespacedNameResource_STATUS | | v1api20231101 | +| PolicyInfo | | v1api20231101 | +| PolicyInfo_STATUS | | v1api20231101 | +| PolicyParameters | | v1api20231101 | +| PolicyParameters_STATUS | | v1api20231101 | +| ProtectionStatusDetails_STATUS | | v1api20231101 | +| ProtectionStatusDetails_Status_STATUS | | v1api20231101 | +| ResourceMoveDetails_STATUS | v1api20230101 | v1api20231101 | +| RetentionTag | v1api20230101 | v1api20231101 | +| RetentionTag_STATUS | v1api20230101 | v1api20231101 | +| ScheduleBasedBackupCriteria | v1api20230101 | v1api20231101 | +| ScheduleBasedBackupCriteria_AbsoluteCriteria | v1api20230101 | v1api20231101 | +| ScheduleBasedBackupCriteria_AbsoluteCriteria_STATUS | v1api20230101 | v1api20231101 | +| ScheduleBasedBackupCriteria_DaysOfTheWeek | v1api20230101 | v1api20231101 | +| ScheduleBasedBackupCriteria_DaysOfTheWeek_STATUS | v1api20230101 | v1api20231101 | +| ScheduleBasedBackupCriteria_MonthsOfYear | v1api20230101 | v1api20231101 | +| ScheduleBasedBackupCriteria_MonthsOfYear_STATUS | v1api20230101 | v1api20231101 | +| ScheduleBasedBackupCriteria_ObjectType | v1api20230101 | v1api20231101 | +| ScheduleBasedBackupCriteria_ObjectType_STATUS | v1api20230101 | v1api20231101 | +| ScheduleBasedBackupCriteria_STATUS | v1api20230101 | v1api20231101 | +| ScheduleBasedBackupCriteria_WeeksOfTheMonth | v1api20230101 | v1api20231101 | +| ScheduleBasedBackupCriteria_WeeksOfTheMonth_STATUS | v1api20230101 | v1api20231101 | +| ScheduleBasedTriggerContext | v1api20230101 | v1api20231101 | +| ScheduleBasedTriggerContext_ObjectType | v1api20230101 | v1api20231101 | +| ScheduleBasedTriggerContext_ObjectType_STATUS | v1api20230101 | v1api20231101 | +| ScheduleBasedTriggerContext_STATUS | v1api20230101 | v1api20231101 | +| SecretStoreBasedAuthCredentials | | v1api20231101 | +| SecretStoreBasedAuthCredentials_ObjectType | | v1api20231101 | +| SecretStoreBasedAuthCredentials_ObjectType_STATUS | | v1api20231101 | +| SecretStoreBasedAuthCredentials_STATUS | | v1api20231101 | +| SecretStoreResource | | v1api20231101 | +| SecretStoreResource_STATUS | | v1api20231101 | +| SecretStoreResource_SecretStoreType | | v1api20231101 | +| SecretStoreResource_SecretStoreType_STATUS | | v1api20231101 | +| SecuritySettings | v1api20230101 | v1api20231101 | +| SecuritySettings_STATUS | v1api20230101 | v1api20231101 | +| SoftDeleteSettings | v1api20230101 | v1api20231101 | +| SoftDeleteSettings_STATUS | v1api20230101 | v1api20231101 | +| SoftDeleteSettings_State | v1api20230101 | v1api20231101 | +| SoftDeleteSettings_State_STATUS | v1api20230101 | v1api20231101 | +| SourceLifeCycle | v1api20230101 | v1api20231101 | +| SourceLifeCycle_STATUS | v1api20230101 | v1api20231101 | +| StorageSetting | v1api20230101 | v1api20231101 | +| StorageSetting_DatastoreType | v1api20230101 | v1api20231101 | +| StorageSetting_DatastoreType_STATUS | v1api20230101 | v1api20231101 | +| StorageSetting_STATUS | v1api20230101 | v1api20231101 | +| StorageSetting_Type | v1api20230101 | v1api20231101 | +| StorageSetting_Type_STATUS | v1api20230101 | v1api20231101 | +| SystemData_CreatedByType_STATUS | v1api20230101 | v1api20231101 | +| SystemData_LastModifiedByType_STATUS | v1api20230101 | v1api20231101 | +| SystemData_STATUS | v1api20230101 | v1api20231101 | +| TaggingCriteria | v1api20230101 | v1api20231101 | +| TaggingCriteria_STATUS | v1api20230101 | v1api20231101 | +| TargetCopySetting | v1api20230101 | v1api20231101 | +| TargetCopySetting_STATUS | v1api20230101 | v1api20231101 | +| TriggerContext | v1api20230101 | v1api20231101 | +| TriggerContext_STATUS | v1api20230101 | v1api20231101 | +| UserAssignedIdentityDetails | | v1api20231101 | +| UserAssignedIdentity_STATUS | | v1api20231101 | +| UserFacingError_STATUS | | v1api20231101 | +| UserFacingError_STATUS_Unrolled | | v1api20231101 | diff --git a/v2/azure-arm.yaml b/v2/azure-arm.yaml index ac158b1ee81..1593ef65eb2 100644 --- a/v2/azure-arm.yaml +++ b/v2/azure-arm.yaml @@ -1485,20 +1485,8 @@ objectModelConfiguration: PrincipalId: $.Status.Identity.PrincipalId BackupVaults_BackupPolicy: $exportAs: BackupVaultsBackupPolicy - $supportedFrom: v2.2.0 - BackupVaults_BackupInstance: - $exportAs: BackupVaultsBackupInstance - $supportedFrom: v2.5.0 - DatasourceSet: - ResourceID: - $armReference: true - Datasource: - ResourceID: - $armReference: true - PolicyInfo: - PolicyId: - $armReference: true - 2023-12-01: + $supportedFrom: v2.2.0 + 2023-11-01: BackupVault: $export: true $supportedFrom: v2.2.0 diff --git a/v2/internal/controllers/controller_resources_gen.go b/v2/internal/controllers/controller_resources_gen.go index 00b2bf101a5..77a9c42f060 100644 --- a/v2/internal/controllers/controller_resources_gen.go +++ b/v2/internal/controllers/controller_resources_gen.go @@ -66,8 +66,8 @@ import ( dataprotection_customizations "github.com/Azure/azure-service-operator/v2/api/dataprotection/customizations" dataprotection_v20230101 "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101" dataprotection_v20230101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20230101/storage" - dataprotection_v20231201 "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201" - dataprotection_v20231201s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201/storage" + dataprotection_v20231101 "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101" + dataprotection_v20231101s "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101/storage" dbformariadb_customizations "github.com/Azure/azure-service-operator/v2/api/dbformariadb/customizations" dbformariadb_v20180601 "github.com/Azure/azure-service-operator/v2/api/dbformariadb/v1api20180601" dbformariadb_v20180601s "github.com/Azure/azure-service-operator/v2/api/dbformariadb/v1api20180601/storage" @@ -423,9 +423,9 @@ func getKnownStorageTypes() []*registration.StorageType { }) result = append(result, ®istration.StorageType{Obj: new(containerservice_v20231001s.ManagedClustersAgentPool)}) result = append(result, ®istration.StorageType{Obj: new(datafactory_v20180601s.Factory)}) - result = append(result, ®istration.StorageType{Obj: new(dataprotection_v20231201s.BackupVault)}) - result = append(result, ®istration.StorageType{Obj: new(dataprotection_v20231201s.BackupVaultsBackupInstance)}) - result = append(result, ®istration.StorageType{Obj: new(dataprotection_v20231201s.BackupVaultsBackupPolicy)}) + result = append(result, ®istration.StorageType{Obj: new(dataprotection_v20231101s.BackupVault)}) + result = append(result, ®istration.StorageType{Obj: new(dataprotection_v20231101s.BackupVaultsBackupInstance)}) + result = append(result, ®istration.StorageType{Obj: new(dataprotection_v20231101s.BackupVaultsBackupPolicy)}) result = append(result, ®istration.StorageType{Obj: new(dbformariadb_v20180601s.Configuration)}) result = append(result, ®istration.StorageType{Obj: new(dbformariadb_v20180601s.Database)}) result = append(result, ®istration.StorageType{ @@ -1130,26 +1130,18 @@ func getKnownTypes() []client.Object { result = append(result, new(containerservice_v20231001s.ManagedCluster), new(containerservice_v20231001s.ManagedClustersAgentPool)) result = append(result, new(datafactory_v20180601.Factory)) result = append(result, new(datafactory_v20180601s.Factory)) + result = append(result, new(dataprotection_v20230101.BackupVault), new(dataprotection_v20230101.BackupVaultsBackupPolicy)) + result = append(result, new(dataprotection_v20230101s.BackupVault), new(dataprotection_v20230101s.BackupVaultsBackupPolicy)) result = append( result, - new(dataprotection_v20230101.BackupVault), - new(dataprotection_v20230101.BackupVaultsBackupInstance), - new(dataprotection_v20230101.BackupVaultsBackupPolicy)) + new(dataprotection_v20231101.BackupVault), + new(dataprotection_v20231101.BackupVaultsBackupInstance), + new(dataprotection_v20231101.BackupVaultsBackupPolicy)) result = append( result, - new(dataprotection_v20230101s.BackupVault), - new(dataprotection_v20230101s.BackupVaultsBackupInstance), - new(dataprotection_v20230101s.BackupVaultsBackupPolicy)) - result = append( - result, - new(dataprotection_v20231201.BackupVault), - new(dataprotection_v20231201.BackupVaultsBackupInstance), - new(dataprotection_v20231201.BackupVaultsBackupPolicy)) - result = append( - result, - new(dataprotection_v20231201s.BackupVault), - new(dataprotection_v20231201s.BackupVaultsBackupInstance), - new(dataprotection_v20231201s.BackupVaultsBackupPolicy)) + new(dataprotection_v20231101s.BackupVault), + new(dataprotection_v20231101s.BackupVaultsBackupInstance), + new(dataprotection_v20231101s.BackupVaultsBackupPolicy)) result = append( result, new(dbformariadb_v20180601.Configuration), @@ -1657,8 +1649,8 @@ func createScheme() *runtime.Scheme { _ = datafactory_v20180601s.AddToScheme(scheme) _ = dataprotection_v20230101.AddToScheme(scheme) _ = dataprotection_v20230101s.AddToScheme(scheme) - _ = dataprotection_v20231201.AddToScheme(scheme) - _ = dataprotection_v20231201s.AddToScheme(scheme) + _ = dataprotection_v20231101.AddToScheme(scheme) + _ = dataprotection_v20231101s.AddToScheme(scheme) _ = dbformariadb_v20180601.AddToScheme(scheme) _ = dbformariadb_v20180601s.AddToScheme(scheme) _ = dbformysql_v20210501.AddToScheme(scheme) diff --git a/v2/internal/controllers/crd_dataprotection_backupinstance_test.go b/v2/internal/controllers/crd_dataprotection_backupinstance_test.go index 674b5d1f914..18690044b66 100644 --- a/v2/internal/controllers/crd_dataprotection_backupinstance_test.go +++ b/v2/internal/controllers/crd_dataprotection_backupinstance_test.go @@ -17,7 +17,7 @@ import ( authorization "github.com/Azure/azure-service-operator/v2/api/authorization/v1api20220401" aks "github.com/Azure/azure-service-operator/v2/api/containerservice/v1api20230202preview" akscluster "github.com/Azure/azure-service-operator/v2/api/containerservice/v1api20231001" - dataprotection "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201" + dataprotection "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101" kubernetesconfiguration "github.com/Azure/azure-service-operator/v2/api/kubernetesconfiguration/v1api20230501" storage "github.com/Azure/azure-service-operator/v2/api/storage/v1api20230101" ) diff --git a/v2/internal/controllers/crd_dataprotection_backuppolicy_test.go b/v2/internal/controllers/crd_dataprotection_backuppolicy_test.go index ea2989b5e3a..f9d9b874dbb 100644 --- a/v2/internal/controllers/crd_dataprotection_backuppolicy_test.go +++ b/v2/internal/controllers/crd_dataprotection_backuppolicy_test.go @@ -13,7 +13,7 @@ import ( . "github.com/onsi/gomega" // The dataprotection package contains types and functions related to dataprotection resources. - dataprotection "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201" + dataprotection "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101" // The testcommon package includes common testing utilities. "github.com/Azure/azure-service-operator/v2/internal/testcommon" // The to package includes utilities for converting values to pointers. diff --git a/v2/internal/controllers/crd_dataprotection_backupvault_test.go b/v2/internal/controllers/crd_dataprotection_backupvault_test.go index 707d4df5757..30e20f97c1d 100644 --- a/v2/internal/controllers/crd_dataprotection_backupvault_test.go +++ b/v2/internal/controllers/crd_dataprotection_backupvault_test.go @@ -13,7 +13,7 @@ import ( . "github.com/onsi/gomega" // The dataprotection package contains types and functions related to dataprotection resources. - dataprotection "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231201" + dataprotection "github.com/Azure/azure-service-operator/v2/api/dataprotection/v1api20231101" resources "github.com/Azure/azure-service-operator/v2/api/resources/v1api20200601" // The testcommon package includes common testing utilities. "github.com/Azure/azure-service-operator/v2/internal/testcommon" diff --git a/v2/samples/dataprotection/v1api20231201/refs/v1api20220401_clustersnapshotrgroleassignment.yaml b/v2/samples/dataprotection/v1api20231101/refs/v1api20220401_clustersnapshotrgroleassignment.yaml similarity index 100% rename from v2/samples/dataprotection/v1api20231201/refs/v1api20220401_clustersnapshotrgroleassignment.yaml rename to v2/samples/dataprotection/v1api20231101/refs/v1api20220401_clustersnapshotrgroleassignment.yaml diff --git a/v2/samples/dataprotection/v1api20231201/refs/v1api20220401_extensionsaroleassignment.yaml b/v2/samples/dataprotection/v1api20231101/refs/v1api20220401_extensionsaroleassignment.yaml similarity index 100% rename from v2/samples/dataprotection/v1api20231201/refs/v1api20220401_extensionsaroleassignment.yaml rename to v2/samples/dataprotection/v1api20231101/refs/v1api20220401_extensionsaroleassignment.yaml diff --git a/v2/samples/dataprotection/v1api20231201/refs/v1api20220401_vaultclusterroleassignment.yaml b/v2/samples/dataprotection/v1api20231101/refs/v1api20220401_vaultclusterroleassignment.yaml similarity index 100% rename from v2/samples/dataprotection/v1api20231201/refs/v1api20220401_vaultclusterroleassignment.yaml rename to v2/samples/dataprotection/v1api20231101/refs/v1api20220401_vaultclusterroleassignment.yaml diff --git a/v2/samples/dataprotection/v1api20231201/refs/v1api20220401_vaultsnapshotrgroleassignment.yaml b/v2/samples/dataprotection/v1api20231101/refs/v1api20220401_vaultsnapshotrgroleassignment.yaml similarity index 100% rename from v2/samples/dataprotection/v1api20231201/refs/v1api20220401_vaultsnapshotrgroleassignment.yaml rename to v2/samples/dataprotection/v1api20231101/refs/v1api20220401_vaultsnapshotrgroleassignment.yaml diff --git a/v2/samples/dataprotection/v1api20231201/refs/v1api20230101_storageaccount.yaml b/v2/samples/dataprotection/v1api20231101/refs/v1api20230101_storageaccount.yaml similarity index 100% rename from v2/samples/dataprotection/v1api20231201/refs/v1api20230101_storageaccount.yaml rename to v2/samples/dataprotection/v1api20231101/refs/v1api20230101_storageaccount.yaml diff --git a/v2/samples/dataprotection/v1api20231201/refs/v1api20230101_storageaccountsblobservice.yaml b/v2/samples/dataprotection/v1api20231101/refs/v1api20230101_storageaccountsblobservice.yaml similarity index 100% rename from v2/samples/dataprotection/v1api20231201/refs/v1api20230101_storageaccountsblobservice.yaml rename to v2/samples/dataprotection/v1api20231101/refs/v1api20230101_storageaccountsblobservice.yaml diff --git a/v2/samples/dataprotection/v1api20231201/refs/v1api20230101_storageaccountsblobservicescontainer.yaml b/v2/samples/dataprotection/v1api20231101/refs/v1api20230101_storageaccountsblobservicescontainer.yaml similarity index 100% rename from v2/samples/dataprotection/v1api20231201/refs/v1api20230101_storageaccountsblobservicescontainer.yaml rename to v2/samples/dataprotection/v1api20231101/refs/v1api20230101_storageaccountsblobservicescontainer.yaml diff --git a/v2/samples/dataprotection/v1api20231201/refs/v1api20230501_extension.yaml b/v2/samples/dataprotection/v1api20231101/refs/v1api20230501_extension.yaml similarity index 100% rename from v2/samples/dataprotection/v1api20231201/refs/v1api20230501_extension.yaml rename to v2/samples/dataprotection/v1api20231101/refs/v1api20230501_extension.yaml diff --git a/v2/samples/dataprotection/v1api20231201/refs/v1api20231001_managedcluster.yaml b/v2/samples/dataprotection/v1api20231101/refs/v1api20231001_managedcluster.yaml similarity index 100% rename from v2/samples/dataprotection/v1api20231201/refs/v1api20231001_managedcluster.yaml rename to v2/samples/dataprotection/v1api20231101/refs/v1api20231001_managedcluster.yaml diff --git a/v2/samples/dataprotection/v1api20231201/v1api20231201_backupvault.yaml b/v2/samples/dataprotection/v1api20231101/v1api20231101_backupvault.yaml similarity index 100% rename from v2/samples/dataprotection/v1api20231201/v1api20231201_backupvault.yaml rename to v2/samples/dataprotection/v1api20231101/v1api20231101_backupvault.yaml diff --git a/v2/samples/dataprotection/v1api20230101/v1api20230101_backupvaultsbackupinstance.yaml b/v2/samples/dataprotection/v1api20231101/v1api20231101_backupvaultsbackupinstance.yaml similarity index 100% rename from v2/samples/dataprotection/v1api20230101/v1api20230101_backupvaultsbackupinstance.yaml rename to v2/samples/dataprotection/v1api20231101/v1api20231101_backupvaultsbackupinstance.yaml diff --git a/v2/samples/dataprotection/v1api20231201/v1api20231201_backupvaultsbackuppolicy.yaml b/v2/samples/dataprotection/v1api20231101/v1api20231101_backupvaultsbackuppolicy.yaml similarity index 100% rename from v2/samples/dataprotection/v1api20231201/v1api20231201_backupvaultsbackuppolicy.yaml rename to v2/samples/dataprotection/v1api20231101/v1api20231101_backupvaultsbackuppolicy.yaml diff --git a/v2/samples/dataprotection/v1api20231201/v1api20231201_backupvaultsbackupinstance.yaml b/v2/samples/dataprotection/v1api20231201/v1api20231201_backupvaultsbackupinstance.yaml deleted file mode 100644 index 37bbf5c5de0..00000000000 --- a/v2/samples/dataprotection/v1api20231201/v1api20231201_backupvaultsbackupinstance.yaml +++ /dev/null @@ -1,36 +0,0 @@ -apiVersion: dataprotection.azure.com/v1api20230101 -kind: BackupVaultsBackupInstance -metadata: - name: aso-sample-backupinstance - namespace: default -spec: - owner: - name: aso-sample-backupvault - properties: - objectType: BackupInstance - friendlyName: aso-sample-backupinstance - dataSourceInfo: - objectType: Datasource - datasourceType: Microsoft.ContainerService/managedClusters - resourceUri: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aso-sample-rg/providers/Microsoft.ContainerService/managedClusters/aso-sample-aks - resourceName: aso-sample-aks - resourceLocation: westus2 - resourceType: Microsoft.ContainerService/managedClusters - dataSourceSetInfo: - objectType: DatasourceSet - datasourceType: Microsoft.ContainerService/managedClusters - resourceUri: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aso-sample-rg/providers/Microsoft.ContainerService/managedClusters/aso-sample-aks - resourceName: aso-sample-aks - resourceLocation: westus2 - resourceType: Microsoft.ContainerService/managedClusters - policyInfo: - policyReference: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aso-sample-rg/providers/Microsoft.DataProtection/backupVaults/aso-sample-backupvault/backupPolicies/aso-sample-backuppolicy - policyParameters: - dataStoreParametersList: - - dataStoreType: OperationalStore - objectType: AzureOperationalStoreParameters - resourceGroupId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aso-sample-rg - backupDatasourceParametersList: - - objectType: KubernetesClusterBackupDatasourceParameters - snapshotVolumes: true - includeClusterScopeResources: true